PDA

View Full Version : Turn off signatures per forum


the_sisko
04-02-2002, 07:54 PM
Did anyone made a hack for this?
I tried to do this but I wont be able to get this work in the function.php part?

Any idea? Or even some finished code yet?

the_sisko
04-02-2002, 08:20 PM
ok, I found it.
I will make a install.txt for those who care... ;)

snyx
04-04-2002, 12:27 PM
I would love this sisko!

Scott MacVicar
04-04-2002, 12:52 PM
Its getpost in /functions.php and theres a bit that checks for signatures if the user has one and if the user viweing it wants to see it.

the_sisko
04-04-2002, 04:17 PM
Just a short one, without any CP thing:

In functionc.php find:
global $counter,$firstnew,$sigcache,$highlight,$postid,$f orum;replace it with:global $counter,$firstnew,$sigcache,$highlight,$postid,$f orum,$thread;;

Then find (in functions.php):if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==0 or $bbuserinfo[showsignatures])) {replace it with:if (($thread[forumid]!=21) AND $post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==0 or $bbuserinfo[showsignatures])) {where 21 is the number of the forum where you don't want to show signatures.

If you know a little bit about php you now know how to add more forums to this list.