Russ_T |
05-29-2006 08:52 AM |
More space efficient forum display
1 Attachment(s)
Hi,
Not sure if this already exists but I just installed GARS Lite (brilliant mod, thank you very much!!) and found that the synopsis and such made the Articles list a bit cumbersome.
Here is what I did
1) Find the GARS_threadbit template, go in to edit it, then change the name to GARS_threadbit_3 and save.
2) Find GARS_threadbit_3 (it will be at the top of the list, not under GARS itself) and replace the template with this
Quote:
<tr>
<td class="tcat" id="af_status_$thread[realthreadid]">
$thread[openclose_editable]
<img class="inlineimg" id="af_icon_$thread[realthreadid]" src="$stylevar[imgdir_statusicon]/post_<if condition="$thread['gar_feature']">new.gif" alt="Feature"<else />old.gif" alt=""</if> />
</td>
<td class="tcat" id="t$thread[threadid]" title="$thread[preview]" valign="top" width="100%" style="padding: 5px">
<div>
<span style="float:$stylevar[right]">
<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>
<if condition="$show['threadratings'] AND $show['threadrating']"><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>" /></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]
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>
</div>
<if condition="$show['unsubscribe']">
<div class="smallfont">
<a href="newreply.php?$session[sessionurl]do=newreply&=noquote=1&t=$thread[threadid]">$vbphrase[reply]</a> |
<a href="subscription.php?$session[sessionurl]do=removesubscription&return=ucp&t=$thread[threadid]">$vbphrase[unsubscribe]</a>
</div>
</if> <if condition="$thread[byline]">
<div class="smallfont">
$thread[byline]
</div>
</if>
<span class="smallfont">
<if condition="$show['guestuser']">
$vbphrase[GARS_posted_by] $thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$vbphrase[GARS_posted_by] $thread[postusername]</span> </if>
- $vbphrase[GARS_last_activity] $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if>
<phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </div>
</div></span>
<if condition="$show['inlinemod']">
</td><td class="tcat" align="right">
<input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
</if>
</td>
</tr>
|
NB: Where this forum has put a smiley face the face needs to be replaced with : p (without the spaces) so it says <span style="cursor : pointer" again without the spaces between the quotes.
3) In AdminCP go into GARS -> Templates and EDIT the set you use, change the threadbit template to GARS_threadbit_3. This will now use your new template, and if it all goes wrong you can easily change it back to GARS_threadbit.
It's literally taken me about five minutes to do this, so let me know if the HTML is malformed, I may tweak it slighty later.
Cheers
|