vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving Posts, Threads, Last Post Around? (https://vborg.vbsupport.ru/showthread.php?t=249692)

Force011 08-31-2010 07:50 PM

Moving Posts, Threads, Last Post Around?
 
Image below shows what I am trying to do, as you can see Threads, Posts and Last Post are in the correct place, and the table width is set correctly, the only thing thats not working is the info under the sections to be in the right category.

For example, the number of posts should be under post, number of threads should be under threads, and the last post should be under last post. Unfortunately, last post is under threads, threads are under posts and posts are under last post.

http://img208.imageshack.us/img208/4057/62355192.jpg

BirdOPrey5 08-31-2010 08:40 PM

In forumdisplay template just move the "Threads" phrase and "Last Post" phrase...

In the default template the code looks like this:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$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>
</thead>
$forumbits
</table>


Force011 08-31-2010 11:00 PM

I tried doing what you said, but it didn't change anything, they are still in the same place as before.

--------------- Added [DATE]1283299500[/DATE] at [TIME]1283299500[/TIME] ---------------

Also my mistake in the picture, the last thread should be under last post, not posts.

BirdOPrey5 08-31-2010 11:15 PM

What page (URL) are you viewing in that screen shot? Is it http://yourdomaincom/forums/forumdisplay.php ?

Force011 09-01-2010 01:52 AM

That screenshot is on index.php, I assumed I would need to edit the template bit in forumhome, but none of my changes worked.

Also I do not have a forumdisplay.php.

BirdOPrey5 09-01-2010 02:20 AM

If it's index then yes it's forumhome not forumdisplay template...

but you should also have a forumdisplay.php - what version of VB do you have?

Force011 09-01-2010 11:37 AM

I have the latest, 3.8.6.

See for yourself.

Code:

http://forums.limitedition.org/forumdisplay.php

BirdOPrey5 09-01-2010 01:20 PM

My bad, forumsdisplay.php - with an "s"

http://forums.limitedition.org/forumsdisplay.php

Force011 09-01-2010 09:58 PM

Yeah, that works, so any idea what changes need to be made?

BirdOPrey5 09-01-2010 11:34 PM

Quote:

Originally Posted by Force011 (Post 2092617)
Yeah, that works, so any idea what changes need to be made?

Well it's pretty much the same instructions as before- in forumhome template just swap the last_post and threads text:

Code:

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr align="center">
          <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead">$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>
</thead>
$forumbits
<tbody>

If you say you did this and it didn't work then all I can think of is maybe you did it in a different style then the one you were using? This 'has' to work basically.


All times are GMT. The time now is 07:11 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.01117 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)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