vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Remote server image/attachment database hack (https://vborg.vbsupport.ru/showthread.php?t=39324)

Martz 06-05-2002 08:14 PM

Also, which vB files need coping over onto the remote server as well?

99Percent 06-05-2002 10:50 PM

Hello Martz,

I think my hack is better because it delivers the attachments directly from the remote server bypassing the server where vBulletin resides. This way you also save on bandwidth from the main server.

The only vB files that need to be copied to the remote server are config.php (after adding the necessary database connection information), vb_mysql.php and riattachment.php

Martz 06-06-2002 08:43 AM

I agree that the remote attachment.php is a good addition - bandwidth isn't our problem yet - database size was. I'd like to use your riattachment.php, might try it out today :)

freakyshiat 06-09-2002 02:50 PM

do you have the non vbhacker version?

BigJohnson 06-12-2002 01:58 PM

OMG i requested this one. This is amazing. I have always been looking for somehting liek this. I am going to install this tonight and come back and tell you how good it works. Just to get this straight to what this hack does to see if i am correct. I already have 2 servers on 2 different hosts. So images and attachments go to one servers host and the other holds the actual php files and stuff. Please tell me if this is what this hack does hehe. Thanks so much.

99Percent 06-12-2002 11:33 PM

BigJohnson, you will need to install three PHP files (vb_mysql.php, riattachment.php and config.php) in the server where the images/attachments are going to be delivered from.

Fazle, what is the non vbhacker version? You mean you just one a set of instructions on how to edit the PHP files?

Martin64 07-25-2002 11:55 PM

This sounds like the perfect hack for me, as I have just moved my vBulletin (that uses roughly 30 GB/month) from my primary server to my secondary one (see signature). My primary server allows 400 GB of transfer per month for a set fee (and I'm not even using 300 GB right now), while my secondary only allows 40 GB per month.

Anyway...my question is: How much bandwidth could/would I save through this? What has it done for your boards? Does attachments really account for a lot of bandwidth usage? Thanks. :)

snyx 10-18-2002 03:11 AM

setting up my config file im having some problems..
PHP Code:

$ridbservertype='mysql';
$riservername='localhost';
$ridbusername='formkaos';
$ridbpassword='d6ei10sl8c';
$ridbname='images';
$ridbhaltonfailedconnect=1//set to 1 if you wish a halt error message when there is a problem connecting with the remote database
$riwebservername='snyx.com'//name of the server where riattachment.php resides
$riexpirationseconds=3600//(recommended 3600 seconds) time in seconds attachment permissions expire in remote db server in case attachments arent downloaded (not necessary for shown images)
$ridbusepconnect=1

but I get numerious errors..

and on my other server I have it setup like
/formkaos/admin/config.php
/formkaos/riattachment.php

what else do I need in these folders?
sorry but I really need this :D

thanks,
-myles

99Percent 10-18-2002 03:30 AM

What errors are you getting exactly?

camikazi2k 11-25-2002 08:37 AM

where is the install file
and does this work on 2.2.9 or .8
waiting this the hack i been looking for for ages
let me know
thank you


All times are GMT. The time now is 11:10 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.01096 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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