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
  #32  
Old 11-02-2006, 04:48 AM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you go to the UserCP and click on Edit vBGarage, you should get a page that looks like this:

http://www.njfboa.org/JustinImages/vBGarage.jpg

If not, let us know what you do get. Give us a screenshot, or create a test account on your site for us to use.....

- Justin
Reply With Quote
  #33  
Old 11-03-2006, 12:57 PM
Immortal_Shades's Avatar
Immortal_Shades Immortal_Shades is offline
 
Join Date: Oct 2006
Location: South Florida
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OKay I got that, and I do fill out all the fields then submit.
But then when I go to the VBGarage link, it just shows my name, no car image and so on.

Can you show me what yours looks like after the info is submitted!
Reply With Quote
  #34  
Old 11-05-2006, 06:01 PM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Immortal_Shades
Can you show me what yours looks like after the info is submitted!
This is my personal vBGarage page: http://www.njfboa.org/forums/vbgarag...do=view&id=901

Have you tried viewing it on more than one computer? Not sure if it would help, but you might want to try clearing out you cache and reloading the page. It's a possibility (though I don't know how likely) that your browser is just showing a stored copy of the page).

- Justin
Reply With Quote
  #35  
Old 11-13-2006, 04:06 PM
Xoxideforums Xoxideforums is offline
 
Join Date: Jul 2004
Location: West Chester PA
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tru2Chevy View Post
Hey Xoxideforums....

I was just wondering if you would post up the code that you ended up using on TGO to put a link to the member's garage in the postbit? I saw you asking about it in the other vBGarage thread, but never saw what you ended up coming up with.

Also, what changes did you make to get your list of garages to appear in the order that they had been modified?

Thanks!

- Justin
I still haven't taken time to actually write up some PHP that checks to see if that user actually haves a garage setup. So right now every member has this image link to an imaginary or real garage.

Code:
 
<a href="vbgarage.php?do=view&id=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/garage.gif" border="0" alt="vBGarage Page" /></a>

Here's how to get them to list in order
Code:
	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 lastactivity DESC LIMIT $pos,$perpage");
Reply With Quote
  #36  
Old 11-13-2006, 09:37 PM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xoxideforums View Post
I still haven't taken time to actually write up some PHP that checks to see if that user actually haves a garage setup. So right now every member has this image link to an imaginary or real garage.

Code:
 
<a href="vbgarage.php?do=view&id=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/garage.gif" border="0" alt="vBGarage Page" /></a>

Here's how to get them to list in order
Code:
	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 lastactivity DESC LIMIT $pos,$perpage");
Thanks.....where do you put the code to list them in order?

- Justin
Reply With Quote
  #37  
Old 11-15-2006, 06:14 PM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind.....I figured out what line to edit in vBGarage.php to do it. Thanks!

For others:

Seach your vBGarage.php file for the following line:
Code:
$pos = ($pagenumber - 1) * $perpage;
Replace:
Code:
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");
With:
Code:
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 lastactivity DESC LIMIT $pos,$perpage");
- Justin
Reply With Quote
  #38  
Old 12-11-2006, 02:49 AM
CodeDawg CodeDawg is offline
 
Join Date: Jun 2002
Location: Colorado
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone figured out how to set usergroup permission with any of these vBGarage installs?

That is the only thing holding me back from installing...I only want paid members to be able to create garages
Reply With Quote
  #39  
Old 12-14-2006, 01:17 AM
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Location: SoCal
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on vB 3.6.4 and is working well however, the Light Box of this hack is not working on my site. I dunno....any help on this would be appreciate though. Going to this link will bring you to my vBGarage entry as you can see the Light Box isn't working: http://www.f-bodyhideout.com/forums/...p?do=view&id=1

Thinking the reason Light Box is not working is due to the fact that there may be a directory tree difference from vB 3.5.4 to vB 3.6.4. I uploaded the directories: css, images, and js to the root of my forums. Though it appears that with vB 3.6.x the js codes are found under the clientscript directory. Someone who has got this working with vB 3.6.x...if you could shed some light on this one for me...I'd appreciate it.

Another issue I'm having is that none of my other users can upload photos. I was able to upload (6) as is set in the options....but for some reason they can't. How can I fix this?

Thank you for sharing this code with us.
Reply With Quote
  #40  
Old 12-15-2006, 04:56 AM
Tru2Chevy Tru2Chevy is offline
 
Join Date: Sep 2005
Location: New Jersey
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smoknz28 View Post
Thinking the reason Light Box is not working is due to the fact that there may be a directory tree difference from vB 3.5.4 to vB 3.6.4. I uploaded the directories: css, images, and js to the root of my forums. Though it appears that with vB 3.6.x the js codes are found under the clientscript directory. Someone who has got this working with vB 3.6.x...if you could shed some light on this one for me...I'd appreciate it.
The css, images, and js folders included with this download should all be uploaded into your root directory, not your forum directory. It sounds like that could be your problem.

I have the lightbox working on my 3.6.4 install (that I just finished upgrading from 3.6.2), however I'm not getting the pictures to show up for some reason. They are still in the database, so I'm not sure what the issues is.

- Justin
Reply With Quote
  #41  
Old 12-15-2006, 04:16 PM
smoknz28's Avatar
smoknz28 smoknz28 is offline
 
Join Date: Sep 2005
Location: SoCal
Posts: 257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Justin...yes, that was the problem...I needed to move those directories under the root of my website.

The other issue I'm still having is that my members cannot upload their images to the site. Really though...I don't like the fact that the images are saved in the database...but I guess I gotta live with that if I want to use this hack... At any rate, I still cannot figure out why they can't upload their images. I was able to upload all 6 of my images to my profile in the hack. Any thoughts why this is happening?

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 10:28 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.04761 seconds
  • Memory Usage 2,320KB
  • 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
  • (7)bbcode_code
  • (4)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
  • (4)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