0
Welcome Guest! Login
0 items Join Now

Will happily pay for a solution to this

  • Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Hi,
      I'm not new to Joomla but can't seem to find a solution. I'm using v1.0.12
      I want to be able to use the wrapper to include some custom php. On one page I want to capture the user ID from the login session as well as write new session variables (sort preference, show/hide preference etc). When the user goes to another page I want to capture these session variables and use them to control how I display content.
      I don't want to create modules/components for my custom php.
      Can anyone help? I'll gladly pay for code that works.
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Install the kl_php mambot for content items, and also the one for modules. You then insert your php code into content using:

      {kl_php} echo $_SESSION;{/kl_php}

      In other works, {kl_php} is a substitute for <?php and {/kl_php} for ?>.

      Is this what you want?
    • Dave Goodwin's Avatar
    • Dave Goodwin
    • Elite Rocketeer
    • Posts: 1472
    • Thanks: 4
    • Howdy!!

    Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Donna,

      If you're really a girl, will you marry me? Just kidding (not really), but sort of.

      Fantastic! I've been looking for that solution too. I'll give it a try!

      dave ;)
    • "I'm an individual, just like everyone else."
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Thank you Donna - it worked. I don't suppose you knowthe answer to the other part of my question - how to write new session vars?
      Thanks
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • $_SESSION = "value of the new var";
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Donna You ROCK!
      THANKS FOR THE AWESOME BOTS!
    • Do not go where the path may lead, go instead where there is no path and leave a trail.
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Not me! Thanks to "Konlong" for developing these mambots. :)
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Also not exactly sure what you want to do with the user information, but you might want to check out mosguest and mosmember in the extendsions menu item under joomla. these allow you to show content to either a member or a guest.
  • Re: Will happily pay for a solution to this

    Posted 17 years 9 months ago
    • Thanks All, (Donna, I'll give your suggestion a go later)

      A bit of background - I'm planning a site that needs to capure each 'individual user' who logs in and displays only their data retrieved from custom tables. Then, as they navigate pages they will be able to set preferences for their current session eg. the order in which their data is sorted, certain filters etc. Rather than write this info to a table and read each time I'd like to use session variables to write them once and capture them as I need them on any subsequent page.

      I'm hoping to be able to capture these preferences via a form and write them away as session variables available accross any page.

      I'm familiar with other aspects of php and Joomla so have no problem connecting to database tables etc. It's just this one thing - writing and reading session data (including new variables) - that I have a problem with.

      Thanks.

Time to create page: 0.059 seconds