PDA

View Full Version : How To Separate Sticky and Normal Threads


RCA
06-10-2005, 02:47 PM
This is for v3.0.x: http://www.vbulletin.com/forum/showthread.php?t=101615
Is still valid, but not working really well (column problems, inline mod..).

Now with 3.5.0?

zetetic
06-10-2005, 10:58 PM
This is for v3.0.x: http://www.vbulletin.com/forum/showthread.php?t=101615
Is still valid, but not working really well (column problems, inline mod..).

Now with 3.5.0?
The column problem is because they added a column for the moderation checkbox. Changing it to this should work: <tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">&nbsp;</td></tr>
What problem did you have with the inline moderation?

RCA
06-10-2005, 11:59 PM
But normal users don't see that column. Other conditional should be added probably.

Jaikis
06-12-2005, 09:55 PM
I think it simple...
I did it in two step:
1. Create Phrases:

Type: Global
Varname: delim_sticky
Text: Sticked threads

Type: Global
Varname: delim_normal
Text: Normal threads

2. Find this:
<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
$threadbits_sticky

and replace with this:

<if condition="$show['threads']">
<!-- show threads -->
<if condition="$show['stickies']">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_sticky]</strong></td>
</tr>

$threadbits_sticky
<if condition="$threadbits">
<tr>
<td class="thead" width="100%" colspan=7><strong>$vbphrase[delim_normal]</strong></td>
</tr>
</if>

That's all...