PDA

View Full Version : [fixed?] Style selection


orca
Sat 17th Nov '01, 10:32am
It seems that the style doesn't get changed if I do so in the usercp of 2.2.1. Even with refreshing the browser.

Kaizen
Sat 17th Nov '01, 11:41am
I think this is some kind of bug because other people are having problems with it too.

Particularly Admins.

orca
Sat 17th Nov '01, 11:43am
Well, I fixed it by reverting 2 lines back to the "old" member.php:

I have now vbsetcookie("bbstyleid", intval($newstyleset)); and vbsetcookie("bbuserid","",1); again. With this, the style is set again by choosing it from usercp. That's about line 787 and 795 in member.php

eva2000
Sat 17th Nov '01, 1:00pm
moving to Bug forum so the developers can check it out :)

John
Sat 17th Nov '01, 1:41pm
I have not been able to reproduce this here, although if you are having this problem, let me know if this works:

Change lines 721-9 in member.php to:

if ($vboptions['allowchangestyles']==1) {
$updatestyles = "styleid='".addslashes($newstyleset)."',";
if ($newstyleset!=$bbuserinfo['styleid']) {
$DB_site->query("UPDATE session SET styleid=".intval($newstyleset)." WHERE sessionhash='".addslashes($session['dbsessionhash'])."'");
}
vbsetcookie("bbstyleid","",1);
} else {
$updatestyles = "";
}


Could someone post an URL where this is happening?

Thanks,
John

Twig Deez
Sat 17th Nov '01, 10:58pm
this -was- happening on my board, but after i made the alterations suggested by orca,
everything is now working fine; style changes are displayed properly now.
john, i had done this before you made your post,
but unless what orca suggested is the wrong way to do things,
i will leave my member.php as is for the time being.

i'm pretty sure this was browser specific,
since while i was struggling away trying to figure it out in ie,
i logged onto my forums using netscape,
and i discovered my styles were working perfectly fine! so... yah.

thanks all for a swift fix for this problem.

orca
Sun 18th Nov '01, 10:19am
Well, it works for me with the changes I did. I guess I leave it as is. Maybe if I have time I'll test your solution, John.