Results 1 to 3 of 3

Thread: Allow template to be changed via a $GET or $POST variable

  1. #1
    Join Date
    Nov 2010
    Location
    Mombasa, Kenya
    Posts
    20

    Question Allow template to be changed via a $GET or $POST variable

    Hi,

    Please help me with an answer to this:

    I need to be able to switch templates via a $GET or $POST variable.

    I have enabled this option under OR 3.0.10 Site Config|General|Allow template switching

    However, I cannot find any documentation at all as to how to now actually implement the template switching. Is there some sample line of code and brief but specific instructions anyone can please help me with to know how to implement this?

    Thanks,

    David

  2. #2
    Join Date
    Mar 2004
    Location
    Windsor, Ontario, Canada
    Posts
    380

    Default Re: Allow template to be changed via a $GET or $POST variable

    Try
    Code:
    index.php?select_users_template=templatename
    I think this is it, but there has been some issues with image not showing up properly the first time (At least for me) and need refresh.

    I hope this helped
    Great Templates for your Open-Realty® Website at openrealtytemlates.com
    Need help?, Meet the OR DOC

  3. #3
    Join Date
    Nov 2010
    Location
    Mombasa, Kenya
    Posts
    20

    Default Re: Allow template to be changed via a $GET or $POST variable

    Thanks, ican! I really appreciate it. Wil try it when I get to that stage - still sorting out my first template at the moment. Meanwhile, an anyone else confirm this or explain why images are not showing up properly for ican?

Similar Threads

  1. Agent template Only changed by user ?
    By datarecall in forum General Help (CLOSED)
    Replies: 1
    Last Post: 01-20-2009, 07:07 PM
  2. template tags value into a php variable ?
    By loomy in forum General Help (CLOSED)
    Replies: 12
    Last Post: 12-02-2008, 11:01 PM
  3. May have over looked it but how do you set so template cannont be changed??
    By nvland in forum Installation/Configuration Help (CLOSED)
    Replies: 1
    Last Post: 10-28-2008, 06:57 PM
  4. Post variable to SQL statement?
    By Adamck in forum Addon help, ideas and discussion (CLOSED)
    Replies: 2
    Last Post: 03-14-2008, 04:43 AM
  5. Post variable to SQL statement?
    By Adamck in forum General Help (CLOSED)
    Replies: 0
    Last Post: 03-13-2008, 10:20 AM

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
  •