Support Forums

user group variable of listing owner

This is a discussion on user group variable of listing owner within the Technical Support forums, part of the Technical Support Forums category; within the site, is there a variable which carries the group id of listing owner? The idea is, in showlisting ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-01-2009, 09:40 AM   #1
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 12
business is on a distinguished road
Default user group variable of listing owner

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
__________________
v 4.2.0 Developer - Default Template
business is offline  
Old 07-01-2009, 10:07 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,312
Rep Power: 131
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

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}
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 07-01-2009, 10:28 AM   #3
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 1,999
Rep Power: 61
juven14 is a jewel in the rough
Default

I believe it is:

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

Code:
{$smarty.session.userlevel}
__________________
John Snyder
PHP Developer

Last edited by juven14; 07-01-2009 at 10:32 AM.
juven14 is offline  
Old 07-01-2009, 06:50 PM   #4
Customer
 
Join Date: Jun 2008
Location: Maldives
Posts: 134
Rep Power: 12
business is on a distinguished road
Default

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
__________________
v 4.2.0 Developer - Default Template
business is offline  
Old 07-01-2009, 07:25 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,312
Rep Power: 131
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

If you use the smarty debug console you will see that smarty variable {$level}
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
variable for listing id in viewlisting business Technical Support 2 06-22-2009 03:30 AM
Admin view listing duplicate description variable nickhaughton Technical Support 2 05-15-2009 06:24 AM
User Group Members Login qamarabbas Technical Support 13 03-02-2009 01:29 PM
a group permission i need... Lauschi Pre Sales Questions 1 11-13-2006 09:11 AM


All times are GMT -4. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0