vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How do I? Posts & Treads Display (https://vborg.vbsupport.ru/showthread.php?t=161634)

Matty.B 11-01-2007 12:35 AM

How do I? Posts & Treads Display
 
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

HTML Code:

          <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

Quote:

Originally Posted by Princeton (Post 1373506)
perhaps Freesteyelz can create a tutorial for the community :D


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


Quote:

Originally Posted by Matty.B (Post 1373332)
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
Code:

<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
Code:

<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 :)


All times are GMT. The time now is 03:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01155 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete