Go on . . .
These devs. What did they say? I'm looking into hosting my attachments on a separate server, but can't seem to find a thread on just how to do it. Or where you would start in the AdminCP to so something like this.
ThanksInAdvance,
WW
p.s. Would this be one way to do it? - http://www.vbulletin.org/forum/showthread.php?p=1013364#post1013364
Quote:
Originally Posted by Stargesicht
Can you post a step by step way to do this????
i've just implemented it and here is my way:
AdminCP => Options => Cookies => Cookie-Domain
set it to .yourdomain.com - with the two dots!!!
setup a subdomain called attachment.yourdomain.com
(in my case this is located on the same server as my master-webserver, so I don't have to deal with the attachment path)
copy the following files in the root:
Code:
attachment.php
global.php
newattachment.php
copy the following files in root\includes:
Code:
class_core.php
class_dm.php
class_dm_attachment.php
class_hook.php
class_image.php
class_upload.php
config.php
functions.php
functions_editor.php
functions_file.php
functions_forumlist.php
functions_log_error.php
functions_misc.php
functions_newpost.php
init.php
go to the templates section of your board:
replace all occurrences of
Code:
attachment.php
with
Code:
and
replace all occurrences of
Code:
newattachment.php
with
Code:
last step:
add a replacement variable to all your styles:
Code:
with
this last step is for the "attach" tag
delete all your cookies (maybe via filesystem) and test the installation.
have fun
These devs. What did they say? I'm looking into hosting my attachments on a separate server, but can't seem to find a thread on just how to do it. Or where you would start in the AdminCP to so something like this.
ThanksInAdvance,
WW
p.s. Would this be one way to do it? - http://www.vbulletin.org/forum/showthread.php?p=1013364#post1013364
Quote:
Originally Posted by Stargesicht
Can you post a step by step way to do this????
i've just implemented it and here is my way:
AdminCP => Options => Cookies => Cookie-Domain
set it to .yourdomain.com - with the two dots!!!
setup a subdomain called attachment.yourdomain.com
(in my case this is located on the same server as my master-webserver, so I don't have to deal with the attachment path)
copy the following files in the root:
Code:
attachment.php
global.php
newattachment.php
copy the following files in root\includes:
Code:
class_core.php
class_dm.php
class_dm_attachment.php
class_hook.php
class_image.php
class_upload.php
config.php
functions.php
functions_editor.php
functions_file.php
functions_forumlist.php
functions_log_error.php
functions_misc.php
functions_newpost.php
init.php
go to the templates section of your board:
replace all occurrences of
Code:
attachment.php
with
Code:
and
replace all occurrences of
Code:
newattachment.php
with
Code:
last step:
add a replacement variable to all your styles:
Code:
with
this last step is for the "attach" tag
delete all your cookies (maybe via filesystem) and test the installation.
have fun
Comment