teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 6, 2010 10:51:37 GMT -8
terristorms.proboards.com/One of my members just told me that the Logout icon has disappeared. I don't ever logoff, so I hadn't noticed it. I believe it happened after I added the "New threads" icon to the menu. I had been using a code to hide it, because I needed time to make new buttons for all my skins. I am also using the code that rearranges the order of the menu buttons. Since that code didn't have an option for the New Thread button, I'm assuming that is what is causing the problem. I would like the "logout" icon to fit in between the "profile" and "new" buttons. So if someone can help me figure this out, by giving a new menu reordering code, I would be eternally grateful!
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Sept 6, 2010 12:37:59 GMT -8
Hi You are using the reorder menu buttons code, but you don't have the logout button declared to show. The logout button would be #9, so add that to the list in the code
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 6, 2010 12:54:24 GMT -8
Problem resolved! ;D Thanks for your help with this Craig..you're a jewel!
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Sept 6, 2010 12:56:13 GMT -8
You're welcome
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 19, 2010 18:17:57 GMT -8
Ok..here we are..nearly 2 weeks later, and it appears that the problem with the missing logout button still hasn't been resolved. The admin account sees it fine, but the regular members do not.
I thought I had fixed the numbering order in the code, but apparently it's still not correct. Here's what I have in my reordering code:
var iStaffMenu = [1, 7, 5, 3, 4, 6, 8, 9, 2]; var iMemberMenu = [1, 6, 5, 3, 4, 8, 9, 2]; var iGuestMenu = [1, 6, 5, 3, 4, 7, 2, 9];
If I knew the original numbering system assigned to each menu option it would really help. I tried to find it in the code database, but no luck.
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Sept 19, 2010 22:05:06 GMT -8
The original numbering is the order they display in by default. So remove the code, and view the menu. Note down the order you want. Bare in mind that the menu is different for staff/members/guests
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 21, 2010 11:10:41 GMT -8
Ok..well, I have been messing with the this reordering code for a couple of hours now, and STILL cannot get it set up so that the log out button shows on the member's board. It appears that the number assigned to it is "9", but when I use the code below, the log out button will not appear in the member's boards no matter where I place the "9" in the numbering sequence. The only way I can get the log out button to show is by removing the reordering code completely, which I really don't want to do.
Here's the reordering code I am using, with the numbering sequence I would like to have. Does anyone know what may be causing my problem?
<script type="text/javascript"> <!-- /* Reorder Menu
Created By Peter Copyright © 2005 - http://expertsonline.pixeldepth.net All Rights Reserved
This code may not be redistributed without express permission from the creator. This header must stay intact at all times. */
// Change the order here var iStaffMenu = [1, 7, 5, 3, 4, 6, 8, 2, 9]; var iMemberMenu = [1, 5, 3, 4, 6, 8, 2, 9]; var iGuestMenu = [1, 5, 2, 3, 4, 2];
function reorderMenu(){ var menu = new Object(); var iCount = 0, admin = false; var iCell = document.getElementsByTagName("td"); for(c = 0; c < iCell.length; c ++){ if(iCell.item(c).className == "menubg" && iCell.item(c).firstChild){ iCell.item(c).firstChild.id = "themenu"; var cNodes = iCell.item(c).firstChild.childNodes; for(n = 0; n < cNodes.length; n ++){ if(cNodes.item(n).nodeType == 1){ menu[++ iCount] = { mnode: cNodes.item(n) }; if(cNodes.item(n).href.match(/=admin/)){ admin = true; } cNodes.item(n).parentNode.removeChild(cNodes.item(n)); n --; } else { cNodes.item(n).parentNode.removeChild(cNodes.item(n)); n --; } } } }
var nOrder = (admin)? iStaffMenu : ((document.cookie.match(/\buser=\w+/))? iMemberMenu : iGuestMenu); var theMenu = document.getElementById("themenu");
for(o = 0; o < nOrder.length; o ++){ if(menu[nOrder[o]].mnode){ theMenu.appendChild(menu[nOrder[o]].mnode); if(o != (nOrder.length - 1)){ theMenu.appendChild(document.createTextNode(" ")); } } } }
reorderMenu();
//--> </script>
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Sept 21, 2010 11:24:43 GMT -8
It is 9 for staff because there are 9 buttons for staff. Members do not have 9 buttons, they have 8 because they do not have the admin button.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Sept 21, 2010 11:40:16 GMT -8
and you have 2 in there twice for guest menus.
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 21, 2010 12:42:53 GMT -8
// Change the order here var iStaffMenu = [1, 7, 5, 3, 4, 6, 8, 2, 9]; var iMemberMenu = [1, 5, 3, 4, 6, 8, 7, 2,]; var iGuestMenu = [1, 5 ,3, 4, 6, 2]; Here's the order I now have the menu options on my board. The logout button still doesn't show. Please help!
|
|
#eb7100
1480
0
1
May 1, 2024 0:14:44 GMT -8
Craig
208,869
September 2001
cmdynasty
|
Post by Craig on Sept 21, 2010 13:24:53 GMT -8
Remove that trailing comma:
var iMemberMenu = [1, 5, 3, 4, 6, 8, 7, 2[red],[/red]];
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 21, 2010 22:41:50 GMT -8
I took the trailing comma off the member reorder row, and it still doesn't work. Here's what I have in there now. // Change the order here var iStaffMenu = [1, 7, 5, 3, 4, 6, 8, 2, 9]; var iMemberMenu = [1, 5, 3, 4, 6, 8, 7, 2]; var iGuestMenu = [1, 5 ,3, 4, 6, 2]; But here is what shows on the Member Menu: Now it appears that not only the log off button is missing, the profile button is missing as well! That is so weird that the staff menu works fine, but the Member Menu is all messed up. This has me totally stumped! EDIT! OMG..I think I figured out at least what the problem is..although I don't have a clue as to what caused it. It looks like the guest menu and member menu somehow got reversed! Here's what is showing after I logout on the guest page: It's the menu bar that SHOULD be showing on the member page! NOW what do I do?
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Sept 21, 2010 22:57:34 GMT -8
change this
var nOrder = (admin)? iStaffMenu : ((document.cookie.match(/\buser=\w+/))? iMemberMenu : iGuestMenu);
to this
var nOrder = (admin)? iStaffMenu : (pb_username!='Guest' ? iMemberMenu : iGuestMenu);
|
|
teestorms
Junior Member
Electricity - the original power source!
Posts: 279
inherit
102961
0
Dec 7, 2012 23:40:50 GMT -8
teestorms
Electricity - the original power source!
279
April 2007
teestorms
|
Post by teestorms on Sept 21, 2010 23:06:21 GMT -8
Ok..thanks Worm. I edited my previous post before I read yours. But it looks like that code change you just gave me will fix the problem. I'll let you know! EDIT Yep! That was it! Finally! After spending many hours on this, the problem is finally solved! I'm so happy I could just.. Thanks to all who helped!
|
|