Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-10-08 23:56:03

mmpo
Member
Registered: 2012-01-23
Posts: 240
Website

Thumbs in Subdomain?

Hello, i've been reading in several places that even serving your images from a subdomain on your own server is better for page speed.

How can i do that.

Lets say i have this subdomain: thumbs.ismytube.com, where in the script do i edit code to make the site serve thumbs from that subdomain?

Thnaks in advance for your help.

Offline

#2 2012-10-09 07:07:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Thumbs in Subdomain?

This feature is already included in the script. You need a separate server for the thumbs and the script will automatically upload (via FTP) the thumbs on that server and serve them from the specified URL. You can also use CDN.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2012-10-10 16:13:04

mmpo
Member
Registered: 2012-01-23
Posts: 240
Website

Re: Thumbs in Subdomain?

I'm talking about videos that are already in the site.

I want to move the folder media/videos/tmb to thumbs.ismytube.com to serve images from there(images are already in the folder). Serving images from a subdomain will improve page load time.

What do i need to change in script so it will take the images from thumbs.ismytube.com/media/videos/tmb instead of ismytube.com/media/videos/tmb ?

Last edited by mmpo (2012-10-10 16:13:24)

Offline

#4 2012-10-11 13:25:32

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Thumbs in Subdomain?

Move the thumbs to another server, keep the exact same folder structure and edit libraries/cdn.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2012-10-14 03:05:26

mmpo
Member
Registered: 2012-01-23
Posts: 240
Website

Re: Thumbs in Subdomain?

What do i need to edit, in the holy name of god.

I uncommented the line

define('CDN_THUMB_URL', 'http://thumbs.ismytube.com');

And nothing happens. Thumbs are still server from ismytube.com

What do i need to do. Do i need to change anything somewhere else?

Offline

#6 2012-10-14 09:06:52

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Thumbs in Subdomain?

Edit libraries/bootstrap.php and search for the line with //require 'cdn.php'; and uncomment that line.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2012-10-14 09:07:11

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Thumbs in Subdomain?

You should change to a dedicated server though.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB