The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I haven't had any succes with this. Is this the right code to use:
<if condition="$forum[forumid] == 3"> stuff </if> And when Where in the showthread template should I add this code to have it under the navbar? |
#12
|
||||
|
||||
Did you try $thread[forumid] (or even $threadinfo[forumid]) which was the other variable I suggested (I have a feeling $forum may not be registered)? If you want it right under the navbar, then I'd put it right under where it says "{vb:raw navbar}".
|
#13
|
|||
|
|||
Both of those don't seem to be working either. Could you give an example of what the code might look like?
I have tried many different things with this code already and I'm having no succes of any content showing above the forums. How do I know what id a certain forum is? Is it the display order? or the name? or something else? Also I keep getting this error: The following error occurred when attempting to evaluate this template: The conditional on line 84 appears to be missing its beginning tag (<if>). This may cause unexpected behavior. This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#14
|
||||
|
||||
Ack! I missed that this was in the vb4 section.
HTML Code:
<vb:if condition="$thread[forumid] == xx"> stuff </vb:if> |
#15
|
|||
|
|||
I've tried many different settings position templates but I never see any content. Also when I go to the ad manager and give the condition of a specific forum it doesn't show anything either.
|
#16
|
||||
|
||||
Are you making changes to the correct style? Try not using a condition and just put HELLO in there. Add the condition after you verify that you are actually modifying the templates correctly.
|
#17
|
|||
|
|||
<vb:if condition="hello">
stuff </vb:if> If I put this in the adtemplate I can see the content. But when I put in the showthread template wherever I put I don't see anything. When I do put an condition in the ad template I again get nothing. Like this: <vb:if condition="$thread[forumid] == 3"> stuff </vb:if> Even if I just put a div with content on the showthread template I see nothing. So maybe I should continue with the ad template? |
#18
|
||||
|
||||
Then try $threadinfo['forumid']. Is there a forum with the id of 3? Which ad template are you using? Check to see if the variable $thread is even registered for use in it. If not, then you need to either preregister it or just use the showthread template.
|
#19
|
|||
|
|||
If in the advertising I put in the condition: Show If user is browsing forum: ''. Then nothing shows at all either.
--------------- Added [DATE]1259608411[/DATE] at [TIME]1259608411[/TIME] --------------- Quote:
I have tried all variations. Yes there is a forum with id 3 and I have tried many other as well. And like I said in the showthread template I can't get any content to show at all. How do I register the variable $thread? |
#20
|
||||
|
||||
Quote:
HTML Code:
<vb:if condition="$threadinfo['forumid'] == 2"> <div>stuff</div> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|