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 07-02-2010, 02:13 AM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default $pagenav in navbar Template to Display on forumdisplay.php

$pagenav in navbar Template to Display on forumdisplay.php

Hello.

I've placed $pagenav in navbar Template to be displayed there.

It works fine on all Locations (like showthread.php and private.php) but for forumdisplay.php it doesn't Display the Page Navigation.

- ?What Code Edits should I do for the $pagenav to be Displayed on navbar Template for forumdisplay.php?

(It's very curious because as I mentioned for all the other Locations it Displays the Page Navigation Fine on navbar).

I Appreciate Your Help and Guide.

My Best Regards.

Reply With Quote
  #2  
Old 07-30-2010, 06:38 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello.

Could You Please Point me to the Files I Should Look to be Able to Activate the $pagenav of forumdisplay.php for it to be Displayed on the Navbar Template.

This can Maybe Point me into the Code I Should Look in those Files and in Similar Ones (like the Ones the Apply on showthread.php), to see if I Can Find and Add the Missing Code for forumdisplay.php to Display the $pagenav on the Navbar Template.

I Appreciate Your Guide and the Pointings You Can Give me to see if I Can Figure How to do it, (If I Solve it I'll Share the Solution in this Thread).

My Best Regards.

Reply With Quote
  #3  
Old 07-30-2010, 08:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at your showthread template and see where $pagenav is defined (middle of the page) relative to the $navbar (near the bottom) - it's defined before it. Look at the forumdisplay.php page and look at where $pagenav is defined (bottom of the page) relative to the $navbar (top of the page) - it's defined after it. If you want to use $pagenav in the $navbar template, it needs to be defined before it.
Reply With Quote
  #4  
Old 08-01-2010, 01:10 AM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Look at your showthread template and see where $pagenav is defined (middle of the page) relative to the $navbar (near the bottom) - it's defined before it. Look at the forumdisplay.php page and look at where $pagenav is defined (bottom of the page) relative to the $navbar (top of the page) - it's defined after it. If you want to use $pagenav in the $navbar template, it needs to be defined before it.
THANK YOU VERY MUCH LYNNE !!! :up:

You're Right, by Moving the $navbar Code Block Below the $pagenav Code Block, it Displays on Navbar.

I Share the File Changes for those who Need it:

On forumdisplay.php:

Move the Block Code (Or Copy it and Comment it on it's Original Location with // on Each Line)

Code:
// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
	$forumTitle = $vbulletin->forumcache["$forumID"]['title'];
	$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}

// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);

$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
Above the Code Line

Code:
if (!$vbulletin->GPC['prefixid'] AND $newthreads < 1 AND $unreadchildforums < 1)
And That's it, the Navbar is Displayed and as it's Below the Block Code that Displays the $pagenav, then, as Lynne Instructed, the $pagenav is Displayed in the Navbar Template. :up:

My Best Regards, and Again Thank You Very Much Lynne for Pointing me into this Solution. :up::up::up:

Reply With Quote
  #5  
Old 08-04-2010, 10:54 AM
downloadsuk downloadsuk is offline
 
Join Date: Jul 2010
Location: China
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this might help me here. what is the $pagenav variable? I'm trying to move my navbar around but it won't perform well unless it comes below the header. Can you tell me what's in it?
Reply With Quote
  #6  
Old 08-04-2010, 01:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The $pagenav isn't in the navbar or header. It's the series of numbers that indicate which page you are on > 1, 2, 3, etc
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:15 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.03816 seconds
  • Memory Usage 2,210KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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