The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Yeah... I reverted it... will do the option changes now
|
#12
|
||||
|
||||
OK, you did that. Now, at the *end of the template* (so your thumbnails still are there while you figure this out) put:
HTML Code:
<if condition="$forumid != 103"> testing <else /> test - humor </if> Another thing to try instead of $forumid is $threadinfo[forumid]. |
#13
|
|||
|
|||
ok... the words are showing up but the condition itself isn't working...
http://www.fatboymagazine.com/showthread.php?t=32906 It's showing the word testing when it should show the words test - humor..... this is what my code looks like now after your suggestions: Code:
<img src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&d=$attachment[dateline]" border="0" alt="" style="display:none;"/> <div style="float:left; display:block; width:111px; height:111px; text-align:center;"> <table cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle" height="111" width="111" style="margin:0px; padding:0px;"> <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]" rel="Lightbox" id="attachment$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" border="0" alt="Click for a bigger size image." align="middle" style="border: solid 3px #cccccc;"/></a></td></tr></table> </div> <if condition="!in_array($forumid, array(103))"> testing <else /> test - humor </if> |
#14
|
||||
|
||||
Try the condition I posted in post 12.
|
#15
|
|||
|
|||
Just did.... still showing the only the word "testing"
My current code.... Code:
<img src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&d=$attachment[dateline]" border="0" alt="" style="display:none;"/> <div style="float:left; display:block; width:111px; height:111px; text-align:center;"> <table cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle" height="111" width="111" style="margin:0px; padding:0px;"> <a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]" rel="Lightbox" id="attachment$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="thumbnail" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&stc=1&thumb=1&d=$attachment[thumbnail_dateline]" border="0" alt="Click for a bigger size image." align="middle" style="border: solid 3px #cccccc;"/></a></td></tr></table> </div> <if condition="$threadinfo[forumid] != 103"> testing <else /> test - humor </if> |
#16
|
||||
|
||||
OK, it's almost like the forumid isn't available there. Put this at the end:
HTML Code:
Testing:<br> 1 - $forum[forumid] 2 - $foruminfo[forumid] 3 - $thread[forumid] 4 - $threadinfo[forumid] 5 - $forumid<br> |
#17
|
|||
|
|||
<a href="http://www.fatboymagazine.com/showthread.php?t=33215" target="_blank">http://www.fatboymagazine.com/showthread.php?t=33215</a> - tried it.... nothing showed up....
|
#18
|
||||
|
||||
Sorry I missed your reply somehow.
I saw you posted over at vb.com and got told that perhaps $GLOBALS[forumid] will do the trick. Did it? |
#19
|
|||
|
|||
That did it!!!
I didn't even know I got a reply over there until I read your post. lol. You are great for helping me, seriously - thank you. |
#20
|
||||
|
||||
Glad you got it to work!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|