Home Learn More Purchase Knowledge Base Support Contact

Community Forums

KBPublisher Forums » KBPublisher Code Hacks and Customization Discussion

Collect $_GET method PHP variables and set $_SESSION Variables

(2 posts)

No tags yet.


  1. rsharkey
    Member

    I have read these forums and I have learned a lot about how to edit and manipulate the general template. I have that all figured out.

    Here is what I want to do:

    1. I want to have a splash screen that allows someone to choose a language from a html form drop-down.
    2. I then want to capture that via a $_GET method into a PHP $_SESSION variable.
    3. From there I want this session variable to set the "$conf['lang']" configuration setting in the: "\www\kbp\admin\config.inc.php" file.

    The goal is to have multiple languages supported but allow the end users to select their appropriate language dynamically. I do not think this would be tough to implement, but for some reason I am having trouble capturing the GET method from my language select form.

    Could someone please share with me whether you think this is possible, and if so where would I put this code logic to get my desired results. It almost seems like the template file (where I currently have my PHP) is not able to "read" the GET method pass.

    Thanks in advanced.

    Shark

    Posted 1 year ago #
  2. rsharkey
    Member

    I was able to figure this out. Got it working the way I want it to.

    1 Installation directory with access to separate databases on the fly.
    -Complete Multi-lingual functionality for front end and back end. This means I can change the interface and the corresponding database to reflect the desired language selected.

    If you need help, just ask here in this thread.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

© 2008 Double Jade LLC | customer.service@kbpublisher.com