Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
3.5.x vBGarage w/ Lightbox v2.0 Details »»
3.5.x vBGarage w/ Lightbox v2.0
Version: 1.00, by Xoxideforums Xoxideforums is offline
Developer Last Online: Mar 2010 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-08-2006 Last Update: 06-08-2006 Installs: 24
Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

This is something myself and another guy at work put together this morning.

Lightbox is a cool JS that is based off of scriptaculous & prototype. It slides an image onto a faded background without leaving the page and then you can go through the vbGarage with tabs within the image.
It really takes vbGarage to the next level and I'm getting lots of request to release this as a hack.

I'm not sure if i have the time to support this 100% as I feel there will be lots of questions. But I'll do my best to help you guys out.

This is my first hack and I hope you guys enjoy it.

Refer to THIS POST for the simple install version of this hack

NOTE: I'm being told that you MUST have vbSEO installed for this to run automatically. All the forums we run have this so I have not spent any time making this run with .htaccess rewrite rule. If anyone wants to update this and let me know if they got it to work I will update this for them. Thanks

Click install if you use it.

here's a link to where it's being used.
http://www.thirdgen.org/techboard/vb...ber-42479.html

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-26-2007, 09:12 PM
ExciterNL ExciterNL is offline
 
Join Date: Sep 2006
Location: NL
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #53  
Old 04-27-2007, 05:23 PM
ExciterNL ExciterNL is offline
 
Join Date: Sep 2006
Location: NL
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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....
Reply With Quote
  #54  
Old 04-27-2007, 06:39 PM
Xoxideforums Xoxideforums is offline
 
Join Date: Jul 2004
Location: West Chester PA
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ExciterNL View Post
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.
Reply With Quote
  #55  
Old 04-27-2007, 07:47 PM
ExciterNL ExciterNL is offline
 
Join Date: Sep 2006
Location: NL
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #56  
Old 04-28-2007, 02:01 PM
ExciterNL ExciterNL is offline
 
Join Date: Sep 2006
Location: NL
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #57  
Old 04-30-2007, 04:17 AM
R.Solutions's Avatar
R.Solutions R.Solutions is offline
 
Join Date: Mar 2006
Location: Texas
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is this hack free now? I'd like to put this on my board.
Reply With Quote
  #58  
Old 05-08-2007, 07:13 AM
USAMustangs.com USAMustangs.com is offline
 
Join Date: Mar 2007
Location: D/FW, Texas
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great with vB 3.6.5 without SEO installed.

Marked Installed - Thanks!
Reply With Quote
  #59  
Old 05-11-2007, 01:54 AM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R.Solutions View Post
So is this hack free now? I'd like to put this on my board.
vB Garage has always been free.....

- Justin
Reply With Quote
  #60  
Old 06-25-2007, 01:30 AM
keharris53 keharris53 is offline
 
Join Date: Jun 2007
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.6.7. Works great. Thanks!
Reply With Quote
  #61  
Old 08-13-2007, 10:26 AM
USAMustangs.com USAMustangs.com is offline
 
Join Date: Mar 2007
Location: D/FW, Texas
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 11:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05201 seconds
  • Memory Usage 2,344KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete