PDA

View Full Version : How do I? Posts & Treads Display


Matty.B
11-01-2007, 12:35 AM
Hey everyone,

I have been searching the databases here and at vBul.com also other sites (but i won't mention them)

I am wanting to display Threads: and Posts: To the Category list...
IE
http://vacf.com.au/images/howto.png

As i have said i have done a good search using the terms
posts threads display
posts threads categories
posts threads category
post thread etc.........

If someone could please let me know how to do this or give me a link to a tut that show me how.. I would REALLY appreciate it.

Thanks everyone

Freesteyelz
11-01-2007, 03:32 AM
If you're familiar with the HTML structure then you can copy and paste the thread and post column codes into the category column. In the screenshot I see three columns (statusicon, forum description and last post by). Where you see Forum and Last Post you need to edit templates:

forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_nopost

For the informational bits you need to edit templates:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

All of these are in the FORUMHOME template group. If you need more help let me know. :)

Matty.B
11-01-2007, 03:47 AM
Hey thanks :D

Sounds good so far... It's just the fact that i'm not the most HIGHLY learned html expert.. 50% is still just one big code in my eyes!.

Do you know of a detailed explination on how to do it...

I know that i'll have to remove and add

<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>

to the other templates.. (i also know they will no linger be names "thead" either!)

It's just the fact that i have no idea EXACTLY where to put it :o

Thankyou kindly for the help thus far :D

Freesteyelz
11-01-2007, 04:50 AM
It gets easier as you mess with it I assure you. :)

There are threads that explain specific edits but I don't know of any tutorial that explains what you want to do. I'm working on something at the moment but unless someone gets to it first I'll have an edit that you can try by tonight or tomorrow. Are you working on a default template or a custom skin?

Matty.B
11-01-2007, 08:23 AM
custom skin... remove the link if you need to ... http://forums.vacf.com.au is the location.. I have just made the skin there. This is where i want the edit to go :D

I will be more than happy to wait for you mate :D

*EDIT
The skin is custom made from default skin... By me... !

Princeton
11-01-2007, 03:16 PM
I don't believe a tutorial exists for doing this - it's mostly html (template) editing.

perhaps Freesteyelz can create a tutorial for the community :D

Freesteyelz
11-02-2007, 02:43 AM
perhaps Freesteyelz can create a tutorial for the community :D


Probably not for this edit but I'll brainstorm on some ideas. :)


custom skin... remove the link if you need to ... http://forums.vacf.com.au is the location.. I have just made the skin there. This is where i want the edit to go :D

I will be more than happy to wait for you mate :D

*EDIT
The skin is custom made from default skin... By me... !

Cool. :) Please post in [code] tags your templates:

forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_post


I'll use them for your edit as opposed to using the default template.

Matty.B
11-02-2007, 08:47 AM
Okay here is what you requested.


forumhome_forumbit_level1_nopost
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<br />
<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
</if>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>

forumhome_forumbit_level2_post
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>
</tr>
$childforumbits

Thats both in their entirety!

Thanks very much for this help.. I though for sure there would already be a tutorial on how to do this. Phew I don't feel as bad for not being able to find one and posting this topic! :D

Freesteyelz
11-03-2007, 05:35 AM
Thanks. I'll have something either by tonight or tomorrow.

--------------- Added 03 Nov 2007 at 18:08 ---------------

Edited: I came back to use the image for reference and it's not currently showing up? Do you have a link to the site or can you repost the image please.

Matty.B
11-06-2007, 06:05 PM
Sorry had major server malfunctions... Image is back now.. The skin is also now on http://vacf.com.au if you needed to see it :)

Freesteyelz
11-09-2007, 06:08 AM
I have a possible code. However, do you have a link to the site you got the example (image) from?