The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi All
I am using the code below in the PostBit Template (3.5.4) to show a default signature for those who don't have one set up. The problem is it doesn't show the DEFAULT SIGNATURE HERE for users with no signature. However, if I remove the top If statement (<if condition="$post['signature']">) and its matching </if> it does show when a user doesn't have a signature. The problem of course is users with Signatures turned off are seeing the Default Signature on all posts! PHP Code:
|
#2
|
||||
|
||||
![]()
The first condition of $post['signature'] only exists if the user has a signature, so you're effectively canceling out the rest of the code when you have that at the top.
|
#3
|
|||
|
|||
![]()
What would I use to have it show a default sig for those without one, BUT those with Show Signatures unchecked in their user CP wouldn't see any?
I thought <if condition="$post['signature']"> was to determine if the user viewing the Thread has Show Signatures checked/unchecked in their user CP? If I take out the top IF, those with Show Signatures unchecked see the default sig on all posts. |
#4
|
||||
|
||||
![]()
<if condition="$post['signature']"> simply means "Display the following if $post['signature'] is true (any value other than 0)".
|
#5
|
|||
|
|||
![]()
Yes I know, thanks. My question is still not answered though;
Quote:
PHP Code:
|
#6
|
|||
|
|||
![]()
<a href="https://vborg.vbsupport.ru/showthread.php?t=143158" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=143158</a>
That allows you to have a default signature per usergroup |
#7
|
|||
|
|||
![]()
<if condition-"$show['signature']">
fixed... that should be the first one... then $post |
#8
|
|||
|
|||
![]()
Thanks sonichero, that makes sense, but when used as shown below it stops the default signatures from showing even though I have Show Signatures checked in the my user CP.
PHP Code:
|
#9
|
|||
|
|||
![]()
Does anyone have any idea when <if condition="$show['signature']"> is used it stops all signatures from showing regardless of Show Signatures being checked/unchecked in the user CP?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|