Thanks for the fix, but it doesnt work :( I changed the code to make testing have less variables
Quote:
|
Try this: (sometimes && doesn't doesn't play well in templates)
HTML Code:
<if condition="$show['newthreadlink'] AND $forum['forumid'] == 8"> |
Quote:
HTML Code:
<if condition="$show['newthreadlink'] AND $thread['forumid'] == 8"> |
Quote:
@TheLastSuperman, this is for VB3. |
If you search the template you are putting the custom code in, look at what variable names are already being used.
In showthread $forum is never used... Nor is $thread, the actual one used is $threadinfo. In forumdisplay it's $foruminfo.... So for the forumdisplay template this would be the code: PHP Code:
|
OMG THAT WORKED!
Thank you Thank you! THANK YOU! |
Quote:
Looked in the db, read some docs, and got it right on the first try. :) Code:
<if condition="$thread[postuserid] == 15"> Code added to the template could show a message to members/guests (unless further limited by more conditionals), in posts created by this specific thread starter. For example, to add a unique secondary signature by an admin in new threads. You can hard code the message, or add a new phrase variable. ### |
thanks.
|
Quote:
Code:
<if condition="in_array($forum[forumid], array(2, 3, 4, 5, 6 ))"> Code:
<if condition="!in_array($forum[forumid], array(2, 3, 4, 5, 6 ))"> |
Thanks. Updated original post. :up:
|
All times are GMT. The time now is 10:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|