The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I?m trying to add forum-based placements for an AdServer for a use with vbulletin4. Because the placements are outside the built-in AdManager placements I can?t use him. The code looks like this now: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Anyone an idea? Or may be a hint, what I?m doing wrong? This thingy starts to be pain in the ass :/ Any help would be really appreciated. |
#2
|
|||
|
|||
![]()
Which template is that?
|
#3
|
|||
|
|||
![]()
Thanks for stopping by. It´s showthread.
|
#4
|
|||
|
|||
![]()
Try checking $thread['forumid'].
|
#5
|
|||
|
|||
![]()
..was a turn & burn.
I?ve tried it as: <vb:if condition="$vbulletin->$thread['forumid'] == 337"> <vb:if condition="$thread['forumid'] == 337"> <vb:if condition="$vbulletin->$thread[forumid] == 337"> <vb:if condition="$thread[forumid] == 337"> But a nice idea.:up: |
#6
|
|||
|
|||
![]()
This:
Code:
<vb:if condition="$thread[forumid] == 337"> should work, looking at the code. You could try $threadinfo[forumid] instead but it looks like that's just another reference to $thread. (There's no reason to try $vbulletin-> in front of it, that won't work). Maybe try putting something else inside that <vb:if... just to make sure it's the condition that isn't working, like: Code:
<!-- forumid = {vb:raw thread.forumid} --> <vb:if condition="$thread[forumid] == 337"> <!-- This is forum 337 --> Then check the page source for those comments. That also verifies that the forum id is in thread.forumid (or not). |
#7
|
|||
|
|||
![]()
That was a precious hint, kh. At least I?ve found out, that Andreas? TMS isn?t working proper in my installation. The code won?t get stored by TMS - or to be correct, not all of it. Weired.. I guess I?ll have to take a closer on that first, before continuing.
But thanks so far, kh. Would you mind if I?ld get back to yo after that? Your hints are promising ![]() --------------- Added [DATE]1318404439[/DATE] at [TIME]1318404439[/TIME] --------------- kh, jfyi: you were right, the code works. The problem is an assumed problem between Andreas Template Modification System and the on the fly compression run by Darkimmortals vb4: SuperCharged. I removed SuperCharged and everythings fine now. Thanks for leading the way :up: |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|