PDA

View Full Version : Don't let the bots see the signature


Kwak
05-20-2005, 03:41 AM
On vBulletin 3, I've seen this minor template mod on Sitepoint.com.

On the sitepoint.com forums, all bots can not see the signatures, thus the bots are not caching the signature.

How would you be able to do such customization? TIA.

Reeve of shinra
05-20-2005, 03:48 AM
hmmm use an if conditional to not show sigs to guests?

Kwak
05-20-2005, 04:17 AM
hmmm use an if conditional to not show sigs to guests?
Sounds like you know exactly what to do.
So, how do you use an 'if condition' to not show sigs to guests? :)

Sebastian
05-20-2005, 09:35 AM
in your postbit template find

<if condition="$post['signature']">

replace with

<if condition="$post['signature'] AND $bbuserinfo['userid']">

Kwak
05-20-2005, 06:08 PM
Thanks Sebastian. :cool:

Zero Tolerance
05-20-2005, 06:13 PM
<if condition="$post['signature'] AND $bbuserinfo['userid'] > 0">

Should work?

- Zero Tolerance

Kwak
05-20-2005, 06:15 PM
<if condition="$post['signature'] AND $bbuserinfo['userid'] > 0">

Should work?

- Zero Tolerance
Thanks Zero Tolerance. The code that Sebastian provided worked. I made the mistake of editing the postbit and not the postbit_legacy. Editing the postbit_legacy with the Sebastian's code worked fine. :)

Zero Tolerance
05-20-2005, 06:16 PM
Yeah i saw no problems with it, wondered why it didn't work, so i added a condition onto the variable just to double check.

- Zero Tolerance