NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 9, 2011 8:07:06 GMT -8
divisionsoftriad.proboards.comWormo, are the numbers in the ID's: SQgroup1 SQgroup2 supposed to correspond to the group number displayed when I go to Modify Group: Overseer (1) Because the guest one is showing up but none of the others. I tried dumping the cookies. That didn't work. I tried taking out the guest one and just leaving the admin one, then dumped the cookies again and it still didn't work. I created a test account for you so you can log in and see the effect. (I tried to make the profile "familiar" for you.) It should appear between the chat side table and the credits side table. I've pm'ed you with the details on the login name and password. Thanks wormo.
|
|
|
Post by Wormopolis on Nov 9, 2011 20:42:43 GMT -8
script part has to be in the global footer or it will never find a profile link to capture the usergroup.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 10, 2011 4:17:29 GMT -8
Okay moved the script into the footer. Guest still works but no one else.
|
|
|
Post by Wormopolis on Nov 10, 2011 13:41:42 GMT -8
the divs for members not in a usergroup should be SQgroupnone
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 10, 2011 13:50:10 GMT -8
Okay I changed that but it's still not showing the number related divs. Mine is set to 1 yours is set to 15. I'm not seeing anything still.
|
|
|
Post by Wormopolis on Nov 10, 2011 13:52:03 GMT -8
I saw the guest one before I logged in, and the guest one. I will look some more... dunno why its not showing...
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 10, 2011 13:55:12 GMT -8
I hope you like the profile. I tried to make it as much to your taste as possible.
|
|
|
Post by Wormopolis on Nov 10, 2011 13:59:19 GMT -8
that was a mistake.. groupnone is actually for when it doesnt find a username on the page and it isnt already stored. default action is to NOT show any of the divs when that happens.
someone who is a regular member SHOULD be in group0 (zero). of which it looks like only johnathon torrance is one of them. everyone else has a group assigned.
so for the DIV to show for johnathon, it should have SQgroup0 like you had it to before. but only HE will see that DIV.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 13, 2011 7:18:30 GMT -8
Okay I changed it back to SQgroup0. The only one that isn't working is the SQgroup1 for the admin. It's still not showing up on my account. The one for groups 0,10 and 15 work.
|
|
|
Post by Wormopolis on Nov 13, 2011 12:20:42 GMT -8
visit your profile and check again.
|
|
|
Post by Wormopolis on Nov 13, 2011 12:55:11 GMT -8
actually its because you have a link to your name in the site credits that doesnt have a group associated with it. so lets add some security...
replace
for (lnks=document.getElementsByTagName('a'), ug=0; ug<lnks.length; ug++) { if (lnks[ug].href.match(/action=viewprofile&user=(.*?)$/)) { var lnkuser=RegExp.$1; if (lnkuser==pb_username) { var tmptime=new Date(); tmptime.setFullYear(tmptime.getFullYear()+1); var pb_usergroup=lnks[ug].className; document.cookie="pb_usergroup="+pb_usergroup+"; expires="+tmptime; break; } } }
with
for (lnks=document.getElementsByTagName('a'), ug=0; ug<lnks.length; ug++) { if (lnks[ug].className && lnks[ug].className.match(/group/) && lnks[ug].href.match(/action=viewprofile&user=(.*?)$/)) { var lnkuser=RegExp.$1; if (lnkuser==pb_username) { var tmptime=new Date(); tmptime.setFullYear(tmptime.getFullYear()+1); var pb_usergroup=lnks[ug].className; document.cookie="pb_usergroup="+pb_usergroup+"; expires="+tmptime; break; } } }
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Nov 13, 2011 15:33:49 GMT -8
Yay that fixed it.
(I accidentally copied over too much...the whole post..instead of just the updated code.)
|
|
|
Post by Wormopolis on Nov 13, 2011 21:27:43 GMT -8
I went ahead and posted this into submissions. easier to find that way.
|
|