vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - Show All Posts in a thread on a single page (https://vborg.vbsupport.ru/showthread.php?t=258704)

Scalemotorcars 02-10-2011 10:00 PM

Show All Posts in a thread on a single page
 
1 Attachment(s)
I put this together from several posts right here on VB.org. If this has been posted before then my apologies.

What is does.

Basically this is a very simple template and file edit to show all posts from a single thread on one page. It displays a link in the Display Modes drop-down.

To start find in showthread.php
HTML Code:

// *********************************************************************************
// set post order

Right above this add

HTML Code:

if ($_REQUEST['showall'] == 1) {
  $perpage = 123456789;
}

You can change this to any number.

For example if your thread has 500 posts you may want to lower this from 123456789 to something like 200.

Next In the showthread template find.

HTML Code:

<tr>
<td class="thead">$vbphrase[display_modes]<a name="goto_displaymodes"></a></td>
</tr>


Right below add

HTML Code:

<tr><td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/view_all.gif" alt="View All Posts" /> <a href="showthread.php?$session[sessionurl]t=$threadid&amp;&showall=1"><strong>View All</strong></a></td></tr>
If you only want admins and moderators to use it then add this code. You may need to change your usergroup id's to fit. Default is below.

HTML Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)"><tr><td class="vbmenu_option" title="nohilite"><img class="inlineimg" src="$stylevar[imgdir_button]/view_all.gif" alt="View All Posts" /> <a href="showthread.php?$session[sessionurl]t=$threadid&amp;&showall=1"><strong>View All</strong></a></td></tr></if>
Next add the image below to your images/buttons directory and your all done.

https://vborg.vbsupport.ru/attachmen...1&d=1297437790

Don't forget to make the template edit in all your styles and the same for the image in your styles/images/buttons folder.
-----------------------------------------------------------------------------------------------------------------

This is not a supported mod. I'm simply sharing what I used on my board. It should work with all 3.0 versions.

Lastly, please feel free to add to this in any way you like. If someone wants to phrase it or make a simple product out of it then please feel free to post the xml.

Enjoy.... :D

Qima 02-21-2011 03:59 PM

nice modif , thanks man

Scalemotorcars 02-22-2011 04:02 PM

Glad someone can use it. I was starting to wonder where everyone went. :D

mesdar 03-08-2011 04:47 PM

Thank you very much

Big Jeff 03-08-2012 01:28 AM

Nice mod. Thanks!

matrex722 11-10-2012 12:35 PM

Wow thanks for this


All times are GMT. The time now is 09:20 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.01552 seconds
  • Memory Usage 1,724KB
  • 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
  • (5)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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