Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2004, 12:18 PM
imported_misterfade imported_misterfade is offline
 
Join Date: Jun 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 03-29-2004, 09:19 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-29-2004, 10:57 AM
imported_misterfade imported_misterfade is offline
 
Join Date: Jun 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-29-2004, 05:12 PM
imported_misterfade imported_misterfade is offline
 
Join Date: Jun 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-30-2004, 05:01 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:58 AM.


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.04345 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete