PDA

View Full Version : conditionals blank in some templates but data in others... please help


wahooka
11-27-2006, 05:54 AM
hi-

i'm trying to move the thread title on the thread detail page which is aka showthread.php.

this block of code that outputs the title was originally in the postbit template:

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<!-- / icon and title -->
test
</if>


but i want to move it out of the thread post and centered above my forums, just as these forums have the thread titles.

to do this i moved the code block into the Show Groups Templates > SHOWTHREAD template.

however now the output in my html is blank and no longer contains the title or icon. this is what it contains:

<!-- icon and title -->
<div class="smallfont">
<img class="inlineimg" src="" alt="" border="0">

</div>
<!-- / icon and title -->


i think these variables are not being intialized for some reason but i am not sure. this sure is frustrating, its very, very difficult to track down these variables.

anyone know how to fix this?