The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
I just saved my 'threadbit' template after editing it, and am getting the following error message:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/wresfree/public_html/community/includes/adminfunctions_template.php(3537) : eval()'d code on line 45 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. I did continue. Here is my threadbit template as it currently stands: Code:
<!-- TCattitude's improved thread preview --> <script type="text/javascript"> <!-- var THREAD_PREVIEW = "$thread[preview]"; var THREAD_ID = "$thread[threadid]"; // --> </script> <SCRIPT language="JavaScript1.2" src="clientscript/tcthreadpreview_style.js" type="text/javascript"></SCRIPT> <!-- / TCattitude's improved thread preview --> <tr> <td class="alt1" id="td_status_$thread[realthreadid]"> $thread[openclose_editable] <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_status_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" /> </td> <if condition="$show['threadicons']"> <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td> </if> <!-- TCattitude's improved thread preview --> <td class="alt1" id="td_title_$thread[realthreadid]"> <!-- / TCattitude's improved thread preview --> $thread[title_editable] <div> <span style="float:$stylevar[right]"> <if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if> <if condition="$show['paperclip']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /> </if> <if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if> <if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if> </span> <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if> $thread[movedprefix] $thread[typeprefix] $thread[moderatedprefix] <!-- TCattitude's improved thread preview --> <if condition="$show['gotonewpost']"> <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[hi ghlight]" id="thread_title_$thread[realthreadid]" onMouseOver="stm(Text[$thread[threadid]],Style[2])" onMouseOut="htm()">$thread[threadtitle]</a></strong> <else /> <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[hi ghlight]" id="thread_title_$thread[realthreadid]" onMouseOver="stm(Text[$thread[threadid]],Style[2])" onMouseOut="htm()">$thread[threadtitle]</a> </if> <!-- / TCattitude's improved thread preview --> <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if> </div> <div class="smallfont"> <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if> <if condition="$show['guestuser']"> $thread[postusername] <else /> <span style="cursor Can someone please help me and tell me what is wrong with my 'threadbit' template and what I need to edit? Many thanks, - Nick. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|