Black Pearl

Cloning the menu bar - Black Pearl

Cloning the menu bar

by Welsh-80 » Mon Jan 24, 2011 4:49 pm

Could anyone give me some pointers on how to clone the menu bar?

i would like to have an exact copy of it for the view new posts, view unanswered post, view your posts etc etc

i have a banner below my menu bar and i would like this second menu bar to sit under my banner, so there is one above and one below the banner

Cheers :D
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Sat Jan 29, 2011 12:50 am

Copy the menu_block.html and name it menu_block2.html then use in overal header.html:

Code: Select all

<!-- INCLUDE menu_block2.html -->

but make sure it is placed above:

Code: Select all

<div id="wrapcentre">


Then try and edit in the links from breadcrumbs (the ones you want) keeping a close eye on the existing example links from menublock ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Sun Apr 03, 2011 12:35 pm

i did this as you said but its not showing on my forum
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Sun Apr 03, 2011 1:04 pm

Well that's kinda weird cause I remember that I tested this before posting it, do you have it like this on your site now?? can you maybe post the modified file so I can try and take a look?

I did notice a small error when viewing your site but I don't think that would interfere with what I posted above

Code: Select all

<a href="http://www.carpand.co.uk">Home</a>
      

</a>&nbsp;&nbsp;<img src="./styles/Yellow_Pearl/theme/images/menu_sep.png" alt="" />&nbsp;
      
      


<a href="http://www.carpand.co.uk/chatroom">Chatroom</a>


first of all it looks weird to me to begin with (all that empty space) but there is also one </a> to many in there (in the second line)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 7:37 am

OK this is the whole file, there may be problems as i'm not fluent in html whatsoever :oops:

Code: Select all

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
   <td class="forum-buttons" colspan="3" width="100%">
      
      


<a href="http://www.carpand.co.uk/forum/search.php?search_id=newposts">New Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
   
<a href="http://www.carpand.co.uk/forum/search.php?search_id=unanswered">Unanswered Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->

<a href="http://www.carpand.co.uk/forum/search.php?search_id=active_topics">Active Topics</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->

<a href="http://www.carpand.co.uk/forum/search.php?search_id=egosearch">Your Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->

<a href="http://www.carpand.co.uk/forum/search.php?search_id=unreadposts">Unread Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->


</td>
</tr>
</table>
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 7:52 am

ok seems as soon as i posted this, something had effect on my site, funny that as its been ok since yesterday afternoon

i removed the INCLUDE command from overall header and no change so i deleted menubar2 and still no change

my site is not working now HELP :oops:

edit: deleted it from cache and it works now PHEW

edit edit: as soon as i navigate it becomes re-cached :(
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Mon Apr 04, 2011 8:39 am

Can you be alittle more specific? I see no error at all at your forum.. aside from the </a> that i mentioned and only one menubar!

I promise to look at this all abit later today, got a meeting right now so I got to run ;)
Meanwhile ..Just don't panic and do something silly :D
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 8:42 am

i have managed to delete everything now and its running as per normal

i still have the files and i still would like to do this

is there any problem with the code i posted?

thanks :)
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Mon Apr 04, 2011 8:44 am

a fast look showed me something weird ... why do you use all the <-- ENDIF's if you don't use any <-- IF ...... ??
Take a close look at that!! (in the content you posted earlier)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 9:25 am

ahh those are a legacy from the original file

take it they are not needed then?

Does this look any better?

Code: Select all

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
   <td class="forum-buttons" colspan="3" width="100%">
      
      


<a href="http://www.carpand.co.uk/forum/search.php?search_id=newposts">New Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;
   
<a href="http://www.carpand.co.uk/forum/search.php?search_id=unanswered">Unanswered Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;

<a href="http://www.carpand.co.uk/forum/search.php?search_id=active_topics">Active Topics</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;

<a href="http://www.carpand.co.uk/forum/search.php?search_id=egosearch">Your Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;

<a href="http://www.carpand.co.uk/forum/search.php?search_id=unreadposts">Unread Posts</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;


</td>
</tr>
</table>







Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Mon Apr 04, 2011 12:52 pm

Note that I haven't tested any of the below but if it does not work there certainly are some good pointers in there ;)

Try it you may like it ..and let me know how it goes...

Code: Select all

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
   <td class="forum-buttons" colspan="3" width="100%">
      <!-- IF S_USER_LOGGED_IN --><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
      <!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->     
    <!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
    <!-- IF S_USER_LOGGED_IN --><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
    <!-- IF S_USER_LOGGED_IN or S_LOAD_UNREADS --><a href="U_SEARCH_UNREAD">{L_SEARCH_UNREAD}</a>&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
   </td>
</tr>
</table>


Don't edit this with notepad.. use PSpad or at least notepad++
GoodLuck,
...Joshua203
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Joshua203 » Mon Apr 04, 2011 12:58 pm

PS ...you use an ENDIF if you open something with a condition (an IF) ...you need these conditions because a guest may or may not need to see these links ...depending on your settings in acp

If you don't open with an IF ..you don't have to close it .. one IF or one ENDIF without the other will throw errors and cause bugs ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 3:13 pm

I have this working now, thank you very much!! :)

only prob now is that i have tried several ways to delete the links in breadcrumbs but to no avail

any ideas?
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm

Re: Cloning the menu bar

by Joshua203 » Mon Apr 04, 2011 4:55 pm

well deleted is deleted ..try purging the cache in acp and maybe even clear your browser

I don't see the second menubar yet btw?

EDIT:
I DO see it ..I just did not know where to look ..you may want to check logged out view and do something to the menu separator ..show one before or or unshow the one after with IF's and ENDIF's?
Have a nice little play with it, you ll figure it out ;) (back it up before starting)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: Cloning the menu bar

by Welsh-80 » Mon Apr 04, 2011 5:15 pm

yep i have checked the logged out view and i am happy with it

i just need to know how to totally remove the board index box with the time and date and the breadcrumbs links in it

thanks :)
Welsh-80
Registered User
Posts: 232
Joined: Wed Jun 24, 2009 6:06 pm