Your cart is empty
  • Mosh's free hacks at vBulletin.org
  • Like us on Facebook
  • Follow us on Twitter
  • Wolfshead Solutions RSS Feed
  • PayPal Verification

Results 1 to 2 of 2

Thread: Does tab mod accept {vb:raw session.sessionurl_q}{vb:raw bbuserinfo} variables?

  1. #1
    Customer cloferba's Avatar
    Join Date
    Nov 2010
    Local Date
    25th May 2013
    Local Time
    02:25 PM

    Default Does tab mod accept {vb:raw session.sessionurl_q}{vb:raw bbuserinfo} variables?

    i would like to use the variables like: member.php{vb:raw session.sessionurl_q}{vb:raw bbuserinfo}

    does this tab mod accept this variables?

  2. #2
    Developer & Owner Mosh's Avatar
    Join Date
    Dec 2009
    Location
    Melbourne, Australia
    Real Name
    Mosh Shigdar
    Local Date
    26th May 2013
    Local Time
    12:25 AM

    Default

    Hi cloferba,

    {vb:raw session.sessionurl_q}{vb:raw bbuserinfo} are template variables, which are not used by T&LM, as it does not use any templates at all... all tabs, links and sub-menu links are rendered via PHP.

    T&LM automatically adds the session hash to any url that needs it.

    As for user info, only the userid and security tokens are currently exposed and can be used:
    • ws-userid for the userid of the member currently viewing the page
    • ws-sectok for the security token of the user currently viewing the page

    In the next release you will also be able to use:
    • $vbulletin->userinfo['userid']
    • $vbulletin->userinfo['securitytoken']

    For example: search.php?do=finduser&u=$vbulletin->userinfo['userid'] would find all threads for the user currently clicking on that link (it would not work for guests).

    The new variables above are the PHP versions of the template variables.

    The way I re-factored the next version, it will be very easy for me to add new $vbulletin->userinfo variables to this product.... so, if you need specific variables exposed you just need to let me know.

    Good news, I am planning to release the next version over the weekend, with a few nice features

    Regards,

    Mosh Shigdar, Wolfshead Solutions.
    I am NOT available to take on Paid Work Requests.

    NOTE: I do not provide support via Private Message, Instant Messenger or Email, so please post your questions in the appropriate forum.

    NOTE: Wolfshead Solutions will permanently shut down on Monday 1st July 2013.

Posting Permissions

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