PDA

View Full Version : Highlight private forum name in access mask list


SWFans.net
11-05-2002, 10:00 PM
Here is a quick and easy hack for those of you like me. I have too many private forums to try and memorize all of their names. It will help when editing user?s access masks by making the forum names, that you set to display as highlighted in your forum options in the admin CP, show up in a different color (the same color that edited templates show up in).

This hack should take less than 5 minutes to install and on a large forum can save a great deal of headaches, or at least it does for me. :p

SWFans.net
11-06-2002, 05:38 AM
Screenshot

SWFans.net
11-06-2002, 05:58 AM
Screenshot #2

Night Owl
11-19-2002, 01:03 PM
I am attempting to install this hack on a fresh copy of 2.2.8.

I cannot find this code in admin/user.php:

$subject=censortext($subject);
$message=censortext($message);

SWFans.net
11-19-2002, 10:22 PM
Ack, my mistake. That portion of the instructions is for another hack I released. (notice the censor hack comments) I am editing the attachment now. Just ignore that step.

EDIT: The original attachment has beem edited. Sorry about that.

Cyberhouse
12-01-2002, 07:02 PM
Originally posted by SWFans.net
show up in a different color (the same color that edited templates show up in).



Great hack :)

But is there a way to change the highlighted color ?

SWFans.net
12-01-2002, 09:40 PM
Edit the cp.css file to change the highlight color for edited templates and private forums. You could also change the span tag in my code to make it any color you like and be seperate from cp.css if you like.

Cyberhouse
12-02-2002, 03:47 AM
Thanks, I?ll try that :)

Conundrum9
02-24-2003, 05:30 PM
I've tried to install this hack on 2.2.9 several times, and I keep getting a SQL error


Invalid SQL: UPDATE forum
SET
styleid='1', title='Hidden Archives', description='',
active='1', displayorder='5', parentid='20', parentlist='27,20,-1',
allowposting='1', cancontainthreads='1', daysprune='30',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='0',,privateforum='1 '
WHERE forumid='27'
mysql error: You have an error in your SQL syntax near 'privateforum='1 '
WHERE forumid='27'' at line 10


Any help would be appreciated.

SWFans.net
02-24-2003, 07:35 PM
You have a syntax error here:moderateattach='0',,privateforum='1 'There should only be a single comma, not two in succession before the word "privateforum". The space after the 1 in that same area may be causing problems too.

Conundrum9
02-25-2003, 03:57 AM
Thanks. That solved it.

Not sure if you checked it or not, but it's that way in your txt file.

SWFans.net
02-25-2003, 05:49 AM
Thanks for pointing out the error. It should be fixed now that I edited the attachment. :)