inherit
136262
0
Jun 24, 2013 21:59:18 GMT -8
nowdocking
1,086
January 2009
nowdocking
|
Post by nowdocking on Jul 22, 2010 10:00:26 GMT -8
anyportinastorm.proboards.com/index.cgiHello. I am having a problem with this code: support.proboards.com/index.cgi?board=codedatabase&action=display&n=1&thread=70371I want to use it for the sole purpose of removing "help" from the menu. I installed it on my test forum and it worked great. Then last night it was installed on the regular forum and it still worked great -- I thought. This morning members reported that they only had the Home, Search, and Members menu buttons -- no Profile and no Logout. When I am logged on as Staff, everything looks fine. If I login as a member I have the missing button problem. I went in and started moving that code to different positions in the global header. (it was originally at the very top). Depending on its position it either causes the menu group to have no Profile and no Logout, or it doesn't work at all. Can someone tell me what I'm doing wrong or direct me to some other way of removing "help", please? Thank you.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jul 22, 2010 10:40:33 GMT -8
I am guessing it's conflicting with:
/* Vertical Menu Buttons by SubDevo */ /* Global Header - Please leave this header intact. Do not repost. */ /* http://interoceandesigns.com or http://lsdp.proboards.com */
|
|
inherit
136262
0
Jun 24, 2013 21:59:18 GMT -8
nowdocking
1,086
January 2009
nowdocking
|
Post by nowdocking on Jul 22, 2010 11:17:05 GMT -8
So are you saying I cannot have my cake and eat it too?
The vertical menu code is more important to me than removing "help", but it would be great if I could have both.
|
|
inherit
100824
0
May 13, 2012 5:37:49 GMT -8
Michael
14,585
March 2007
wrighty
|
Post by Michael on Jul 22, 2010 11:26:11 GMT -8
If you just want to remove help, then we can write a better code for that! There's no point using such a long code, for a task so simple. Is that all you're wanting? Just to remove Help?
|
|
inherit
136262
0
Jun 24, 2013 21:59:18 GMT -8
nowdocking
1,086
January 2009
nowdocking
|
Post by nowdocking on Jul 22, 2010 12:04:44 GMT -8
Yes, sir -- that's it!
If you would write me a more appropriate code, that would be very kind and helpful.
Thank you!
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jul 22, 2010 15:12:08 GMT -8
Actually, there is no conflict. The error is in the reorder menu code itself. It is checking the PB cookie to see if you are a guest or not. Changing that, fixes the code.
Move your reorder menu code back to the top of your Global Header.
Find this line:
var nOrder = (admin)? iStaffMenu : ((document.cookie.match(/\buser=\w+/))? iMemberMenu : iGuestMenu);
Replace it with this:
var nOrder = (admin)? iStaffMenu : ((pb_username!="Guest")? iMemberMenu : iGuestMenu);
Add the Blue, if you want the "Register" button to show for guests. var iGuestMenu = [1, 3, 4, 5];
The below are also not needed. Find and remove the following:
<div id="wel"></div>
<script type="text/javascript"> <!-- document.getElementsByTagName('font').item(1).style.display="none"; //--> </script>
Clickable Banner by SubDevo (You have two copies. Remove the bottom copy)
Regards, SubDevo
|
|
inherit
136262
0
Jun 24, 2013 21:59:18 GMT -8
nowdocking
1,086
January 2009
nowdocking
|
Post by nowdocking on Jul 22, 2010 15:28:08 GMT -8
:~P
That extra stuff lying around was pretty embarrassing!
You must be pretty sick of me by now, SubDevo, but you saved me yet again and I thank you.
Going off now to finish the chapel I've built to you in my front yard.
THANKS!
|
|
inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Jul 22, 2010 15:31:07 GMT -8
HAHAAHA! funny stuff! No problem. You're welcome.
|
|