user group variable of listing owner

Discussion in 'Technical Support' started by business, Jul 1, 2009.

Thread Status:
Not open for further replies.
  1. business Customer

    within the site, is there a variable which carries the group id of listing owner? The idea is, in showlisting or viewlisting, depending on the user group of the listing owner, I can make some changes to the listing template formatting...
    eg: IF usergroup of listing owner =6 .... size of description text is 18px ...etc
  2. Lhotch curmudgeon

    there is a session variable when users are logged in that carries their group, dont remember exactly what it is but you could put the following in your layout to have the session variables echod to the screen.


    {php}print_r($_SESSION){/php}
  3. John Snyder Staff

    I believe it is:

    PHP:
    $_SESSION['userlevel']
    Which is accessible via templates as:

    Code:
    {$smarty.session.userlevel}
  4. business Customer

    i think the userlevel mentioned above is the user level of the current user. i am looking for the userlevel of the listing owner... when we view that listing
  5. Lhotch curmudgeon

    If you use the smarty debug console you will see that smarty variable {$level}
Thread Status:
Not open for further replies.

Share This Page