vForums Support > Programming & Coding :: Code Requests & Support :: > Menu splitter support

Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 30th Aug 08 at 5:00am
http://teenrevival.vforums.co.uk

So, basically the menu splitter isn't working with the Add Menu Buttons Code.... it was before, when I had the floating menu, but now it isn't.

Re: Menu splitter support - Posted By Ross (admin) on 30th Aug 08 at 7:49pm
I'm not familiar with that this "Menu Splitter" is supposed to do. Have you got a link to it / an example of what you would like to achieve? {Smile}

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 1st Sep 08 at 9:17am
http://support.virtualforums.co.uk/board/database/action/view_topic/topic/14868

the splitter isn't working before the Shop button as it is before the others.

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 8th Sep 08 at 8:19am
Bumpsies!

Re: Menu splitter support - Posted By Ross (admin) on 9th Sep 08 at 11:18pm
Use this in place of the add menu buttons code and ensure it is placed before the menu splitter code {Smile}

Code: JavaScript
 
  1. <script>
  2. /*Add Menu Buttons
  3. Created By Wrighty
  4. support.virtualforums.co.uk*/
  5.  
  6. var menu = document.getElementById('menu_buttons').getElementsByTagName('font')[0];
  7.  
  8. function do_menu(a_text,link){
  9. menu.innerHTML+= " :: <a href="+link+">"+a_text+"</a>";
  10. }
  11.  
  12. do_menu('Shop','http://teenrevival.vforums.co.uk');
  13. </script>
 

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 10th Sep 08 at 6:52am
Thanks Ross

+rep

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 12th Sep 08 at 11:30pm
HELPPPPPPP! {Tongue Out} As soon as I duplicate the last line {do_menu('Shop','http://teenrevival.vforums.co.uk');} to add a check pm's button it doesn't show either buttons.

Re: Menu splitter support - Posted By Ross (admin) on 14th Sep 08 at 9:51pm
Can you post exactly what you're trying to use as the second button? I just tried it out on your forum and it showed a second button fine for me {Smile}

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 16th Sep 08 at 8:45am
Just a check PM's button.

With Check PM's and the url.

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 18th Sep 08 at 10:05am
Bump!

Re: Menu splitter support - Posted By Marc (cr0w) on 18th Sep 08 at 9:13pm
I can only assume that the issue was cause by the apostrophe in "Check PM's". Be sure when using this code to escape apostrophes with a backslash (\). {Wink}

Code:
 
  1. <script>
  2. /*Add Menu Buttons
  3. Created By Wrighty
  4. support.virtualforums.co.uk*/
  5.  
  6. var menu = document.getElementById('menu_buttons').getElementsByTagName('font')[0];
  7.  
  8. function do_menu(a_text,link){
  9. menu.innerHTML+= " :: <a href="+link+">"+a_text+"</a>";
  10. }
  11.  
  12. do_menu('Shop','http://teenrevival.vforums.co.uk');
  13. do_menu('Check PM\'s','http://teenrevival.vforums.co.uk/action/pm/');
  14. </script>
 


{Smile}

Re: Menu splitter support - Posted By [.tR] ookie1 (ookie1) on 19th Sep 08 at 10:38am
Thanks, Marc!

Re: Menu splitter support - Posted By Marc (cr0w) on 20th Sep 08 at 6:10pm
No worries. {Smile}