The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Add-ons (http://www.thevbgeek.com/forumdisplay.php?f=16)
-   -   More space efficient forum display (http://www.thevbgeek.com/showthread.php?t=1513)

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&amp;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&amp=noquote=1&amp;t=$thread[threadid]">$vbphrase[reply]</a> |
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;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&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&amp;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

The Geek 05-29-2006 05:38 PM

Thanks! Nice one :)

Russ_T 05-29-2006 10:55 PM

Have added screen shot, see thumbnails on right of this page.

Loco 11-10-2006 02:48 AM

Does anyone have a live demo ?
Thank you

arachn1d 11-22-2006 09:52 AM

The ajax ability of clicking the new thread icon to [feature] it doesn't work.
________
TOYOTA FINANCIAL SERVICES SPECIFICATIONS

jasbell 02-28-2007 02:45 PM

I this still not VB 3.6 compliant?

Praetorian 05-18-2007 03:54 PM

yeah correct, the AJAX thread editing doesnt work. Trying to make it work.


All times are GMT. The time now is 12:34 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

Release powered by GARS 2.1.9 ©2005-2006