vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   3.5.x vBGarage w/ Lightbox v2.0 (https://vborg.vbsupport.ru/showthread.php?t=118146)

ExciterNL 04-26-2007 09:12 PM

I'm getting troubles now!

The number of user garages is now bigger than 25.
So the vBgarage overview page is splitted to 2 pages.

On the one page there are the first 25 users shown. See http://www.skodaforum.nl/board/vbgarage.php?do=list
There are no any problems with that.

But if i click to view the second page, i only get a blank page with this adress:
http://www.skodaforum.nl/board/vbgar...e=2&perpage=25

Please help, this is making me crazy!

Thanks,

Exciter

ExciterNL 04-27-2007 05:23 PM

Now i did find out, that the generated link for the second page is wrong.

It says: http://www.skodaforum.nl/board/vbgarage.php?do=$_REQUEST[do]&page=2&perpage=25

where it have to be: http://www.skodaforum.nl/board/vbgarage.php?do=list&page=2&perpage=25

But i cant find, where to change something to get this right.

SOMEONE HELP please....

Xoxideforums 04-27-2007 06:39 PM

Quote:

Originally Posted by ExciterNL (Post 1236084)
I'm getting troubles now!

The number of user garages is now bigger than 25.
So the vBgarage overview page is splitted to 2 pages.

On the one page there are the first 25 users shown. See http://www.skodaforum.nl/board/vbgarage.php?do=list
There are no any problems with that.

But if i click to view the second page, i only get a blank page with this adress:
http://www.skodaforum.nl/board/vbgar...e=2&perpage=25

Please help, this is making me crazy!

Thanks,

Exciter


For some odd reason, maybe your version of vB?? This is being added to your url

do=$_REQUEST[do]

http://www.skodaforum.nl/board/vbgarage.php?do=$_REQUEST[do]&page=2&

That needs to be removed.

ExciterNL 04-27-2007 07:47 PM

I understand that, but how? Where?

is it not some problem in this:

PHP Code:

// ############################################################################
// ############################# LIST ALL GARAGES #############################
// ############################################################################

if ($_REQUEST['do'] == 'list')
{
    
$vbulletin->input->clean_array_gpc('r', array(
        
'pagenumber'     => TYPE_INT,
        
'perpage'     => TYPE_INT
    
));

    
$pagenumber = &$vbulletin->GPC['pagenumber'];
    
$perpage = &$vbulletin->GPC['perpage'];
    
$perpage intval($perpage);
    if (
$perpage == or $perpage 200) { $perpage 25; }
    if (
intval($pagenumber) == 0) { $pagenumber 1; }
    
$limitlower = ($pagenumber 1) * $perpage 1;
    
$limitupper = ($pagenumber) * $perpage;
    
$counter 0;
    
$garagecount $vbulletin->db->query_first("SELECT COUNT(*) AS garages FROM " TABLE_PREFIX "vbgarage_users");
    
$numberpages $garagecount['garages'] / $perpage;
    
$numberpages ceil($numberpages);    
    if (!isset(
$pagenumber) or ($pagenumber 1) or ($pagenumber $numberpages))
    
$pagenumber 1;
    
$pos = ($pagenumber 1) * $perpage;
    
$result_list $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "vbgarage_users ORDER BY userid ASC LIMIT $pos,$perpage");
    
$counter 0;
    
$count 0;

    while (
$list $vbulletin->db->fetch_Array($result_list) AND $counter++ < $perpage)
    {
        
$count++;
        
$list['year'] = unhtmlspecialchars($list['year']);
        
$list['make'] = unhtmlspecialchars($list['make']);
        
$list['model'] = unhtmlspecialchars($list['model']);
        
$list['text'] = unhtmlspecialchars($list['text']);
        
$list['lastactivity'] = vbdate($vbulletin->options['dateformat'],$list['lastactivity'],true);
        
$user fetch_userinfo($list[userid]);
        eval(
'$listbits .= "' fetch_template('vbgarage_listbits') . '";');
    }
    
    
$result_latest $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "vbgarage_images ORDER BY vbgarageid DESC LIMIT 5");
    while (
$latest $vbulletin->db->fetch_Array($result_latest))
    {
        eval(
'$latestbits .= "' fetch_template('vbgarage_latestbits') . '";');
    }

    
$pagenav construct_page_nav(
        
$pagenumber$perpage$garagecount[garages], 
        
'vbgarage.php?' $vbulletin->session->vars['sessionurl'] . 'do=$_REQUEST[do]'''
        
. (!empty($vbulletin->GPC['perpage']) ? "&amp;perpage=$perpage"")
    );

    
$navbits construct_navbits(array('' => 'vBGarage'));
    eval(
'$navbar = "' fetch_template('navbar') . '";');
    eval(
'print_output("' fetch_template('vbgarage_listgarage') . '");');


Thanks for your fast reply, i hope, we find some solution...

ExciterNL 04-28-2007 02:01 PM

i did find a solution here, maybe the code here have to be changed too?

In that thread, where i find it, many people had the same problem...

https://vborg.vbsupport.ru/showpost....&postcount=271

any way, thanks so far...

R.Solutions 04-30-2007 04:17 AM

So is this hack free now? I'd like to put this on my board.

USAMustangs.com 05-08-2007 07:13 AM

Works great with vB 3.6.5 without SEO installed.

Marked Installed - Thanks!

Tru2Chevy 05-11-2007 01:54 AM

Quote:

Originally Posted by R.Solutions (Post 1238008)
So is this hack free now? I'd like to put this on my board.

vB Garage has always been free.....

- Justin

keharris53 06-25-2007 01:30 AM

Installed on 3.6.7. Works great. Thanks!

USAMustangs.com 08-13-2007 10:26 AM

Everything is working good for me except for one thing.

If I don't keep increasing the $perpage = number in the vbgarage.php file(below), it will go to a second page which will display as a completely blank white page? How can I fix it to where it will go to a second page that works? I really don't want one big long vbgarage page.
Code:

if ($perpage == 0 or $perpage > 200) { $perpage = 100; }
Thanks.


All times are GMT. The time now is 07:07 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.01248 seconds
  • Memory Usage 1,775KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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