Thread: Forum Display Enhancements - Thread Listing by Letter with ABC Navigation Menu
View Single Post
  #61  
Old 11-05-2011, 03:36 PM
HS2005's Avatar
HS2005 HS2005 is offline
 
Join Date: Jan 2006
Location: Earth
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it has been a long time so now i got back. I know the last rely is way back but this is just for extra info considering i still support this mod.

If you really want to add pages 1 t/m 8 whatso ever for letter just edit forumdisplay.php

FIND:
PHP Code:
        $pagenav construct_page_nav($pagenumber$perpage$totalthreads'forumdisplay.php?' $vbulletin->session->vars['sessionurl'] . "f=$forumid"""
            
. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage'')
            . (!empty(
$vbulletin->GPC['prefixid']) ? "&prefixid=" $vbulletin->GPC['prefixid'] : '')
            . (!empty(
$vbulletin->GPC['sortfield']) ? "&sort=$sortfield"")
            . (!empty(
$vbulletin->GPC['sortorder']) ? "&order=" $vbulletin->GPC['sortorder'] : '')
            . (!empty(
$vbulletin->GPC['daysprune']) ? "&daysprune=$daysprune'')
        ); 
ADD Below:
PHP Code:
        // Thread listing by letter + page
        
$vbulletin->input->clean_GPC('r''letter''TYPE_STR');   
        
$letter $db->escape_string($vbulletin->GPC['letter']); 
        
$pagenav2 construct_page_nav($pagenumber$perpage$totalthreads'forumdisplay.php?' $vbulletin->session->vars['sessionurl'] . "f=$forumid"""
            
. (!empty($vbulletin->GPC['perpage'])     ? "&pp=$perpage'')
            . (!empty(
$vbulletin->GPC['prefixid'])     ? "&prefixid=" $vbulletin->GPC['prefixid'] : '')
            . (!empty(
$vbulletin->GPC['sortfield']) ? "&sort=$sortfield"")
            . (!empty(
$vbulletin->GPC['sortorder']) ? "&order=" $vbulletin->GPC['sortorder'] : '')
            . (!empty(
$vbulletin->GPC['letter'])     ? "&letter=" $vbulletin->GPC['letter'] : ''// Letter
            
. (!empty($vbulletin->GPC['daysprune']) ? "&daysprune=$daysprune'')
        ); 
The point is you just create another pagenavigation namely "$pagenav2".
It's not perfect, but it just works so no complains or just add something usefull instead like other members.

2. The next thing to do is add $pagenav2 to your forum.
open the template FORUMDISPLAY in vbulletin.
FIND:
Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
REPLACE:
Code:
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
	<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td><if condition="$pagenav2"><td align="$stylevar[right]">$pagenav2</td></if>&nbsp;&nbsp;&nbsp;
	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
Done! and test
If you don't like the location well... it's basic HTML so don't bother.
I am still working on this. when i have extra info i will share it for those who like it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01165 seconds
  • Memory Usage 1,809KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete