Results 1 to 2 of 2

Thread: New template switcher addon.

  1. #1
    Join Date
    May 2004
    Location
    Colorado
    Age
    38
    Posts
    80

    Default New template switcher addon.

    I am willing to pay for a new template changer addon that will allow me to change the template by a php? url variable extension / input. So somehting like index.php?changetemplate=template2

    I am also open to other solutions as well.

    The final goal is to be able to supress info by using the listing and detail template and changing that based on which template is in use. I need this addon YeStErDaY

  2. #2
    Join Date
    Feb 2004
    Posts
    1,085

    Default Re: New template switcher addon.

    Here is something: (this is not an addon, just a change to the common.php)

    open the common.php
    find
    Code:
    $config["template"] = $misc->make_db_unsafe($recor
    dSet->fields["controlpanel_template"]);
    put this right below that line
    Code:
    if (isset($_GET['template']))
    {
            $config['template'] = $_GET['template'];
    }
    Now index.php?template=templatename will switch it.


    Just SEND OR A DONATION PLEASE!
    Last edited by alsmith; 01-29-2006 at 09:29 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •