Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBgarage
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbgarage used with member of the week Details »»
vbgarage used with member of the week
Version: , by mbaskett mbaskett is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-17-2005 Last Update: Never Installs: 0
 
No support by the author.

Just wanted to say that I'm loving the multiple garages feature... I spent today and got it all integrated with our portal page, and also with the sidebar. We do a featured member of the week, and was able to get it to work with the vbgarage hack quite nicely...

If anybody wants me to compile all the tweaks I had to do, and post them up, I will as long as it's okay with Noppid. I only had to make 2 additions too vbgarage.php, and the rest was in standard vbulletin tables and files.....

The only thing I would like to change is the way images are displayed.... currently they pull from the filesystem (that's where we store our images), but they require the image folder to be accessible via http, which can allow direct linking to the images from outside.... I would like to be able to have it work with the images folder elsewhere, I just couldn't quite follow the GD code on how the image files were named, and how they were linked to the db records... as far as I can tell, it relies on the mysql insert order, and not a specific tag or identifier that can be linked in the db to a file (i.e. store the renamed image filename and thumb filename in a field in the db)

Anyways, just wanted to say that I've been quite successful with this hack, and am enjoying it's features immensely.

Thanks!

Show Your Support

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

Comments
  #2  
Old 02-17-2005, 12:25 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack for the hack. That's cool

However ya mentioned using beta. Maybe ya better hold off till we know this is pretty much going to be the release code and no problems turn up.

Other then that, have at it.
Reply With Quote
  #3  
Old 02-21-2005, 01:12 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mbaskett
The only thing I would like to change is the way images are displayed.... currently they pull from the filesystem (that's where we store our images), but they require the image folder to be accessible via http, which can allow direct linking to the images from outside.... I would like to be able to have it work with the images folder elsewhere, I just couldn't quite follow the GD code on how the image files were named, and how they were linked to the db records... as far as I can tell, it relies on the mysql insert order, and not a specific tag or identifier that can be linked in the db to a file (i.e. store the renamed image filename and thumb filename in a field in the db)
Easy fix for this is to simply use an .htaccess rule set in the image directory to prevent hotlinking. Something like this should do the trick:

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|png|bmp)$ [F,NC]
With that in place, images will only be displayed if linked from your domain only. If you want to get nasty, you can have it display an alternate image to illegal link attempts with this (just replace the above RewriteRule line with the one below):

Code:
RewriteRule \.(gif|jpe?g|png|bmp)$ /images/stophotlinking.gif [L,NC]
Reply With Quote
  #4  
Old 02-21-2005, 03:34 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Magnus. :wave:
Reply With Quote
  #5  
Old 02-21-2005, 04:30 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

told you I'd be lurking.. hehe.
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 12:45 AM.


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.04435 seconds
  • Memory Usage 2,236KB
  • Queries Executed 18 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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