vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving forumdisplay columns (https://vborg.vbsupport.ru/showthread.php?t=88783)

imported_misterfade 03-28-2004 12:18 PM

Moving forumdisplay columns
 
I changed the FORUMHOME template where now I have my columns show as:
Threads/Posts/Last Post

But when I go into a forum, it's still the default:
Last Post/Replies/Views

How do I change that? I know it must be in Forumdisplay but all I see is the code to change title of the column, not the column itself. Or is it another template? And what about sub-forums?

Thanks!

Tony G 03-29-2004 09:19 AM

I had a quick look and didn't find any of the table info, but found options and if statements concerning that area. If you have a deeper look it has to be in there somewhere. I haven't fiddeled with the code on this area so I can't be very specific. Sorry.

imported_misterfade 03-29-2004 10:57 AM

I figured it out. I had to change FORUMDISPLAY and Threadbit.

In FORUMDISPLAY, near the top I changed this code:
PHP Code:

<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

To this:
PHP Code:

<td class="thead">$vbphrase[threads]</td>
<
td class="thead">$vbphrase[posts]</td>
<
td class="thead" width="175">$vbphrase[last_post]</td>
<if 
condition="$vboptions[showmoderatorcolumn]">
<
td class="thead">$vbphrase[moderator]</td

Then scroll down a bit and there's this code:
PHP Code:

<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a$sortarrow[lastpost]</span></td>
<
td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a$sortarrow[replycount]</span></td>
<
td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a$sortarrow[views]</span></td

Change it to this:
PHP Code:

<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a$sortarrow[replycount]</span></td>
<
td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a$sortarrow[views]</span></td>
<
td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a$sortarrow[lastpost]</span></td

Then in Threadbit find this code near the bottom (remember to change the "alt1" to "alt2" and "alt2" to "alt1":
PHP Code:

<td class="alt1" align="center"><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></td>
<
td class="alt2" align="center">$thread[views]</td

And move it just above this:
PHP Code:

<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
<
div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br /> 

I hope I didn't forget anything, this should help those that want a bit of the VB2 look.

imported_misterfade 03-29-2004 05:12 PM

I forgot one template!

In Search_results, find this code:
PHP Code:

<tr>
<
td class="thead" colspan="2">&nbsp;</td>
<
td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>    
<
td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
<
td class="thead" align="center" nowrap="nowrap">$vbphrase[replies]</td>
<
td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>
<
td class="thead" width="25%">$vbphrase[forum]</td>
</
tr

And change it to this:
PHP Code:

<tr>
<
td class="thead" colspan="2">&nbsp;</td>
<
td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
<
td class="thead" align="center" nowrap="nowrap">$vbphrase[replies]</td>
<
td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>    
<
td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
<
td class="thead" width="25%">$vbphrase[forum]</td>
</
tr

This makes sure that when you do a search, or "view new posts" results, the forums will display properly.

Tony G 03-30-2004 05:01 AM

Thanks for the info - now I know when to find it when I need it. ^^


All times are GMT. The time now is 10:54 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.01142 seconds
  • Memory Usage 1,776KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete