Reputation for Trading
#18
(2015-09-03, 12:20 PM)Leefish Wrote:
(2015-09-03, 12:05 PM)liisyaoron Wrote: Where do I put it exactly on 'tradefeedback_postbit_link'? Would it be possible to also put a conditional like that under the 'Reputation' for both postbit and profile so that the stats can only be seen on certain forums?

yup, you just open the template and then you put the conditional round it. See where I wrote template?

<if (in_array($GLOBALS['thread']['fid'],array(1,2,3)) then> this is the original template contents</if>

You probably could do the same with the reputation link in the postbit as well, I globalised the conditional, so it SHOULD work.
Hi Leefish,
It seems like there's a problem with the conditional code you've given to me. I tried to hide the reputation link in 'tradefeedback_postbit_link' template, it looks like this:

<if (in_array($GLOBALS['thread']['fid'],array(2)) then><a href="tradefeedback.php?action=give&amp;uid={$post['uid']}&amp;tid={$post['tid']}" title="{$lang->give_feedback}" class="postbit_tradefeedback"><span>{$lang->give_feedback}</span></a></if>
There's a parsing error >_<

<b>Parse error</b>:  syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in <b>/home/xxx/public_html/inc/plugins/trader.php(566) : eval()'d code</b> on line <b>2</b><br />
Reply


Messages In This Thread
Reputation for Trading - by liisyaoron - 2015-09-03, 10:49 AM
RE: Reputation for Trading - by Leefish - 2015-09-03, 10:56 AM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 10:59 AM
RE: Reputation for Trading - by Leefish - 2015-09-03, 11:02 AM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 11:12 AM
RE: Reputation for Trading - by Leefish - 2015-09-03, 11:13 AM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 11:19 AM
RE: Reputation for Trading - by Leefish - 2015-09-03, 11:24 AM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 11:34 AM
RE: Reputation for Trading - by Leefish - 2015-09-03, 11:38 AM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 12:05 PM
RE: Reputation for Trading - by Leefish - 2015-09-03, 12:20 PM
RE: Reputation for Trading - by liisyaoron - 2015-09-03, 12:30 PM
RE: Reputation for Trading - by liisyaoron - 2015-09-06, 01:03 PM
RE: Reputation for Trading - by Vanz - 2015-09-04, 06:18 PM
RE: Reputation for Trading - by dragonexpert - 2015-09-04, 06:22 PM
RE: Reputation for Trading - by Vanz - 2015-09-04, 06:48 PM
RE: Reputation for Trading - by Leefish - 2015-09-04, 07:48 PM
RE: Reputation for Trading - by Leefish - 2015-09-06, 01:23 PM
RE: Reputation for Trading - by liisyaoron - 2015-09-06, 01:59 PM
RE: Reputation for Trading - by dragonexpert - 2015-09-06, 02:11 PM
RE: Reputation for Trading - by liisyaoron - 2015-09-06, 02:18 PM
RE: Reputation for Trading - by Boonie - 2015-09-06, 02:22 PM
RE: Reputation for Trading - by liisyaoron - 2015-09-06, 02:44 PM
RE: Reputation for Trading - by Leefish - 2015-09-06, 02:43 PM
RE: Reputation for Trading - by Nelson Ortiz - 2015-12-11, 02:41 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)