vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [AJAX] vB Pager 3.0.4 (https://vborg.vbsupport.ru/showthread.php?t=104609)

RFViet 09-13-2006 06:11 PM

Quote:

Originally Posted by johon
Works without problems on my 3.6 Gold

Good news :laugh:

danny75 09-13-2006 08:48 PM

my problem :cross-eyed:
can help me?

danny75 09-14-2006 06:50 AM

okay, thanks, finish

dakar 09-17-2006 03:22 AM

Quote:

Originally Posted by Carly
Anyone know how to fix isolated incidents of members having the unread pages show up on forumhome, but when they open the pager inbox, it says there are no new pages?

Not a usergroup/settings problem, already checked that.

Finally got around to upgrading today, from 3.5.4 to 3.6.1 and now having the same issue... wanted to check this thread for a possible solution...

Carly you get a free bump, if you find the offending problem LMK meanwhile I'll continue digging.

aberg 09-17-2006 07:29 AM

Works fine with v3.6.1 but don't revert templates but compare them and change the needful thinks.
Most of the errors are comming through the revert of the templates

danny75 09-17-2006 12:51 PM

hello,

i have 3.6.1.

Warnung: Division by zero in /includes/functions.php (Zeile 1990)
PHP Code:

// #############################################################################
/**
* Returns the HTML for multi-page navigation - based on code from 3dfrontier.com
*
* @param    integer    Total number of items found
* @param    string    Base address for links eg: showthread.php?t=99{&page=4}
* @param    string    Ending portion of address for links
*
* @return    string    Page navigation HTML
*/
function construct_page_nav($pagenumber$perpage$results$address$address2 '')
{
    global 
$vbulletin$vbphrase$stylevar$show;

    
$curpage 0;
    
$pagenav '';
    
$firstlink '';
    
$prevlink '';
    
$lastlink '';
    
$nextlink '';

    if (
$results <= $perpage)
    {
        
$show['pagenav'] = false;
        return 
'';
    }

    
$show['pagenav'] = true;

    
$total vb_number_format($results);
    
$totalpages ceil($results $perpage);

    
$show['prev'] = false;
    
$show['next'] = false;
    
$show['first'] = false;
    
$show['last'] = false;

    if (
$pagenumber 1)
    {
        
$prevpage $pagenumber 1;
        
$prevnumbers fetch_start_end_total_array($prevpage$perpage$results);
        
$show['prev'] = true;
    }
    if (
$pagenumber $totalpages)
    {
        
$nextpage $pagenumber 1;
        
$nextnumbers fetch_start_end_total_array($nextpage$perpage$results);
        
$show['next'] = true;
    }

    
// create array of possible relative links that we might have (eg. +10, +20, +50, etc.)
    
if (!is_array($vbulletin->options['pagenavsarr']))
    {
        
$vbulletin->options['pagenavsarr'] = preg_split('#\s+#s'$vbulletin->options['pagenavs'], -1PREG_SPLIT_NO_EMPTY);
    }

    while (
$curpage++ < $totalpages)
    {
        (
$hook vBulletinHook::fetch_hook('pagenav_page')) ? eval($hook) : false;

        if (
abs($curpage $pagenumber) >= $vbulletin->options['pagenavpages'] AND $vbulletin->options['pagenavpages'] != 0)
        {
            if (
$curpage == 1)
            {
                
$firstnumbers fetch_start_end_total_array(1$perpage$results);
                
$show['first'] = true;
            }
            if (
$curpage == $totalpages)
            {
                
$lastnumbers fetch_start_end_total_array($totalpages$perpage$results);
                
$show['last'] = true;
            }
            
// generate relative links (eg. +10,etc).
            
if (in_array(abs($curpage $pagenumber), $vbulletin->options['pagenavsarr']) AND $curpage != AND $curpage != $totalpages)
            {
                
$pagenumbers fetch_start_end_total_array($curpage$perpage$results);
                
$relpage $curpage $pagenumber;
                if (
$relpage 0)
                {
                    
$relpage '+' $relpage;
                }
                eval(
'$pagenav .= "' fetch_template('pagenav_pagelinkrel') . '";');
            }
        }
        else
        {
            if (
$curpage == $pagenumber)
            {
                
$numbers fetch_start_end_total_array($curpage$perpage$results);
                eval(
'$pagenav .= "' fetch_template('pagenav_curpage') . '";');
            }
            else
            {
                
$pagenumbers fetch_start_end_total_array($curpage$perpage$results);
                eval(
'$pagenav .= "' fetch_template('pagenav_pagelink') . '";');
            }
        }
    }

    (
$hook vBulletinHook::fetch_hook('pagenav_complete')) ? eval($hook) : false;

    eval(
'$pagenav = "' fetch_template('pagenav') . '";');
    return 
$pagenav;
}

// ############################################################################# 

can you help me?

dakar 09-17-2006 05:39 PM

Okay found my bug (self imposed) for some reason the code modification didn't show up on the footer template before I reverted them as a difference.

redlabour 09-18-2006 03:34 PM

Watch this Suggestions :

English

German

Roxie 09-18-2006 03:38 PM

Quote:

Originally Posted by dakar
Okay found my bug (self imposed) for some reason the code modification didn't show up on the footer template before I reverted them as a difference.

Can you tell me more about your issue?

Ronak 09-18-2006 04:37 PM

Can i use this for vB 3.6.0 ?


All times are GMT. The time now is 09:39 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.02333 seconds
  • Memory Usage 1,787KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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