Superorb |
09-19-2012 05:08 PM |
I'm trying to figure out how I can get iTrader to show the "Rate Trade" button in ALL posts for my set forum. But, it only shows the button in the thread when the user did not create the thread.
For example, if Steve creates a For Sale thread anyone but Steve can see the Rate Trade buttons for all users/posts. Steve cannot see ANY Rate Trade buttons from any users in any of the posts of the thread he created.
I'm pretty convinced my problem can be fixed somewhere within this code right here, but I'm terrible with PHP.
Code:
$itrader_forumsurl_ok = explode(',', $this->registry->options['itrader_forumsurl']);
if ($this->registry->options['itrader_rate_trade'] == '1')
{
$show['ratetradebutton'] = (in_array($this->forum['forumid'], $itrader_forumsurl_ok) AND $this->registry->bf_ugp['itraderpermissions']['canrate'] AND $vbulletin->userinfo['userid'] != $thread[postuserid] AND $this->post['postid'] == $this->thread['firstpostid']);
}
else if ($this->registry->options['itrader_rate_trade'] == '2')
{
$show['ratetradebutton'] = (in_array($this->forum['forumid'], $itrader_forumsurl_ok) AND $this->registry->bf_ugp['itraderpermissions']['canrate'] AND $vbulletin->userinfo['userid'] != $thread[postuserid]);
}
else if ($this->registry->options['itrader_rate_trade'] == '0')
{
$show['ratetradebutton'] = $this->registry->options['itrader_rate_trade'];
}
|