@mikey8270:
Quote:
Originally posted by mikey8270
is there any way to make it show like 'You have relied to this thread' or You have not replied to this thread' somewhere on the showthread page to everybody except guests?
|
Sorry this can't be done, because at the moment thread is displayed, vbulletin does not save the thread repliers info in a variable. If did, this would be possible.
You have to make an SQL query beforehand, to get if visitor is a thread replier and save the result in a variable. Then you can use this variable in your conditional in this hack to achieve what you wanted..
@g-force2k2:
Quote:
anways i get the infamous 6==6 as stated in the past posts...
|
I would say your conditional syntax may be wrong.
For example if you wrote it as:
PHP Code:
[[($bbuserinfo[userid]==1)]] TEXT GOES HERE [[($bbuserinfo[userid]==1)]]
it looks good but it is not. Please notice the closing tag lacks / sign. So it should be:
PHP Code:
[[($bbuserinfo[userid]==1)]] TEXT GOES HERE [[/($bbuserinfo[userid]==1)]]
If this is not your problem, try to make this change:
find:
PHP Code:
return "<!-- BEGIN TEMPLATE: $templatename -->\n$template\n<!-- END TEMPLATE: $templatename -->";
And replace it as:
PHP Code:
return "<!-- BEGIN TEMPLATE: $templatename -->\n".advanced_templates($template)."\n<!-- END TEMPLATE: $templatename -->";
If this also not fixes it, can you please post here the conditional you used (please copy paste from the template) and also function gettemplate after you applied the hack.. Let me check..