Quote:
Originally Posted by bL@De
Hi there Guys,
Great hack! One question I do have after reading the 38 pages
I have a for sale section on my site which I have setup a promotion after 3 months or 20 posts to prevent people from just off loading stuff and never returning.
I have added the appropriate information into the postbit template and wondering whether it's possible to exclude certain usergroups from having the itrader rating until they are promoted?
At present it shows up whether or not they have access to the for sale section.
Any help would be great.
Cheers
|
Under
PHP Code:
<!-- Trader Ratings -->
Try changing
PHP Code:
<if condition="$post['userid']">
to
PHP Code:
<if condition="$post['userid'] AND in_array($post[usergroupid], array(x,y,x))">
Where x,y and z are the usergroup ids you wish to show the trader rating for.
Understand I haven't tested this, I just figured it out for you. And I don't consider myself a coder any more, so it may not work. But it's worth a try.