Advertisement
Free Mambo Templates - Free Joomla Templates
Joomla Hut HomeContact UsJoomla LinksMambo Forum - Joomla ForumJoomla Downloads
Home
News
Articles
Gallery
Downloads
Tutorials
Site Reviews
Flash Tutorials
Templates Demo
Joomla Links
FAQ
Submit News
Advertise Here
Search
Advertisement
Seek Your Host
New York Web Design
Joomla Templates
Login Form





Lost Password?
No account yet? Register
Most Read
Joomla Extensions
Joomla Templates
TemplatePlazza
 
Latest Downloads
FileLavinya Template v3.0(82848)
Filelakeside_jc.zip(19819)
Filewintercall_jc.zip(40990)
FileLavinya_Autumn(7271)
FileLavinya Template(12456)
 
LATEST FORUMPOSTS
Joomla Templates

Hacks & Mods - Template Switcher Print E-mail
Written by Visualdensity   
Tuesday, 13 January 2004

Did you know?A recent discussion in the Mamboserver's forum have revealed that you can easily make a small change to the index.php file and you are able to make the template change by passing a variable in the url like this:

If you want to know, click on "Read more..." to find out how.

To make the modification, open up index.php file in the root directory. Save a backup copy first. Once a backup copy is made, go to around Line 120 and look for the following code:

...

$gid = intval( $my->gid );

$cur_template = $mainframe->getTemplate();
$col_main = 1;  // temp fix - this feature is currently disabled

...

Now, you are going to replace the $cur_template = $mainframe->getTemplate(); line with the following code:

...

if (@$_GET['pagetemplate'] == ""){
   $cur_template = $mainframe->getTemplate();
} else {
   $cur_template = $_GET['pagetemplate'];
};

...

Here's what it should look like after modification:

...

$gid = intval( $my->gid );

if (@$_GET['pagetemplate'] == ""){
   $cur_template = $mainframe->getTemplate();
} else {
   $cur_template = $_GET['pagetemplate'];
};

$col_main = 1;  // temp fix - this feature is currently disabled

...

Once that's done, save it, and run a test by passing the page template name through the URL like this:

http://demon.visualdensity.com/index.php?pagetemplate=morning_dew

If you have any problems, please post them at the forum here. Have fun!

Thank you

Comments
Whoa, great tips
Written by Guest on 2004-07-08 10:09:03
:)
just what i was looking for...
Written by Guest on 2004-08-03 15:00:10
any way of displaying a specific user defined area depending on the template selected??
disable syndicate
Written by Guest on 2005-08-02 07:15:02
How do I disable the component - 'Syndicate'.? After unistalling from the Admin it still remains on the frontpage. 

Only registered users can write comments.
Please login or register.

Powered by AkoComment 2.0!

 
< Prev
 
 
 
Joomla Jobs
 
 
Joomla Flash Tutorials
   
     
Home   |   Contact   |   Links   |   Forum   |   Downloads  |  Media Kit
 

© Copyright 2003 - 2006 by BUYHTTP, LLC. All rights reserved.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Powered By Joomla!

Joomla Top Sites - Your Primary Source of Joomla Traffic