Support Forums

Templates From Different Domain? Possible?

This is a discussion on Templates From Different Domain? Possible? within the Technical Support forums, part of the Technical Support Forums category; Hi, I have 6 68c sites now (All connected to the same database) and if i have to make a ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-13-2009, 07:20 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default Templates From Different Domain? Possible?

Hi,
I have 6 68c sites now (All connected to the same database) and if i have to make a change i have to ftp into each site and reupload the files. It is starting to drive me nuts.

I want to do this for showlistings, viewlisting and static pages like contact us ect.

I opened up viewlisting.php and changed it to this but it doesnt work
PHP Code:
        if($lDisplay==1)
        {
            
$class_tpl->assign('body','http://truckandmachinery.com.au/templates/default/viewlisting.tpl');
        }
        else
        {
            
$class_tpl->assign('body','viewlisting2.tpl');
        } 
with this error
Quote:
Warning: Smarty error: unable to read resource: "http://truckandmachinery.com.au/templates/default/viewlisting.tpl" in C:\wamp\www\includes\classes\smarty\Smarty.class.p hp on line 1095
Is this possible or am i wasting my time trying to figure out how to do it?
Cheers
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-13-2009, 10:02 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 136
Eric Barnes is just really nice Eric Barnes is just really nice
Default

This can be done depending on your hosting setup. I believe they all need to be on the same host and with open base restriction turned off. Then instead of using the domain use your full server path:
'/home/site/public_html/templates/name/body.tpl'
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 07-13-2009, 10:15 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default

Excellent.
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain change Kateedyd Templates, HTML, CSS, and Design Help 2 06-22-2008 10:27 AM
Need help deciding on a domain name. michael Site Marketing 6 04-19-2008 08:20 AM


All times are GMT -4. The time now is 04:07 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0