The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Display text only if the thread posts is one !
Dear everyone,
I have been trying to write a conditional code to display a certain text only if the thread posts is one only .. in another word that this text will hide if someone replied on that thread but I couldn't don't .. so if there is someone who is willing to help .. I'll appreciate that ! Best regards |
#2
|
||||
|
||||
Post what you have been trying, and tell us what template, and then we can see what is wrong. Please use the code tags.
|
#3
|
|||
|
|||
The template that I am editing is SHOWTHREAD
and I'm using this condition ... Code:
<if condition="$totalthreads =1 AND $threadinfo['postuserid'] == $bbuserinfo['userid']"> Code:
$threadinfo['postuserid'] == $bbuserinfo['userid'] but the first part .. where I want to show the specific text if there are no replies in the members thread .. Code:
$totalthreads =1 Best regards --------------- Added [DATE]1289044278[/DATE] at [TIME]1289044278[/TIME] --------------- Even I tried to use this Code:
<if condition="$threadinfo['postcount'] = 1 AND $threadinfo['postuserid'] == $bbuserinfo['userid']"> |
#4
|
||||
|
||||
If you look at the showthread.php file, the variable isn't $totalthreads, it's $totalposts. There is also the variable $LASTPOSTID AND $FIRSTPOSTID, so you could check if they are the same. (All this is in the showthread.php file.)
|
#5
|
|||
|
|||
I did it .. it is $totalposts
Thanks a million .. Lynne .. you are the best ..! I really appreciate that .. Best regards |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|