The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
I just suggested a phrase cuz it's easy and looks cleaner to me in the template. You don't have to do it that way. There are a ton of different ways you could do it - you could even use templates. If I were to do it, I'd use a plugin. I'd have the condition, and based on which thread it is, I'd do a query and grab the first post in the Sticky thread that you want at the top of the thread and then spit it out. I don't know how comfortable you are coding, but that is a nice clean, simple way to do it. The easy way if you don't want to code is to do what I suggested and just write that condition at the top of the SHOWTHREAD template where you want the message/announcement to appear. You probably don't need the first condition regarding the forumid, you just need the condition regarding the thread id. So, you check to see if it's thread id xxxx, and if so, you spit out 'whatever'. If this were me putting the message at the top of the page, I'd put it either right above or right below the $poll.
|
#12
|
||||
|
||||
![]()
1. Getting this error when placing above $poll.
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected ']' in /home/jlee1958/public_html/includes/adminfunctions_template.php(3772) : eval()'d code on line 26 2. Correct santax would be? <if condition="$threadid]=='2'"> Thank you. |
#13
|
|||
|
|||
![]()
I am not too sure about this as I am not a expert with this but wouldn't it be.
<if condition="[$threadid]=='2'"> ? Again I am not too sure though. |
#14
|
||||
|
||||
![]() Quote:
HTML Code:
<if condition="$threadid=='2'">
|
#15
|
||||
|
||||
![]()
I put this bellow $poll to just test things and nothing happened when I went into the Thread.
Code:
<if condition="in_array($forum[forumid], array(x,y,z))"> <if condition="$threadid=='2'"> html message here or contents from post maybe - could require plugin </if> <if condition="$threadid=='yyyyyy'"> html message here </if> <if condition="$threadid=='zzzzzz'"> html message here </if> etc. </if> |
#16
|
||||
|
||||
![]()
Remove the part about the forumid (especially since you didn't replace x, y, z with any forumids). So:
HTML Code:
<if condition="$threadid=='2'"> html message here or contents from post maybe - could require plugin </if> <if condition="$threadid=='yyyyyy'"> html message here </if> <if condition="$threadid=='zzzzzz'"> html message here </if> etc. |
#17
|
||||
|
||||
![]()
OK, below is what I placed below $poll in the Styles SHOWTHREAD:
Code:
<if condition="$threadid=='2'"> Testing 2 </if> <if condition="$threadid=='7'"> Testing 3 </if> <if condition="$threadid=='8'"> Testing 8 </if> |
#18
|
||||
|
||||
![]()
You have threads numbered 2, 7, and 8? Perhaps a link to one of these threads would help.
You could try replacing $threadid with $thread['threadid'] and see if that works. And you didn't place this inside the condition that is right below the poll, right? If what you really mean is forum 2 and forum 7, then you need to replace $threadid with $thread[forumid]. |
#19
|
||||
|
||||
![]() Quote:
http://www.warfaith.com/forumdisplay.php?f=2 Code:
</head> <body onload="$onload"> $header $navbar $poll <if condition="$threadid=='2'"> Testing 2 </if> <if condition="$threadid=='7'"> Testing 3 </if> <if condition="$threadid=='8'"> Testing 8 </if> <if condition="$show['inlinemod']"> $spacer_close <form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform"> $spacer_open </if> <a name="poststop" id="poststop"></a> |
#20
|
||||
|
||||
![]()
That is forumid 2, not threadid 2. As I said, if you are using forumids, then you need to use $thread[forumid] instead of $threadid.
HTML Code:
<if condition="$thread[forumid]=='2'"> Testing 2 </if> <if condition="$thread[forumid]=='7'"> Testing 3 </if> <if condition="$thread[forumid]=='8'"> Testing 8 </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|