MyBB Community Forums

Full Version: Thanks plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using Thanks- plugin and I'd like to add "Thank received:x" to profile page. What code should I add to member_profie template?

Thank you
Doubt you can just add a code to the templates. It needs to count the number of thanks and output it. What I'm saying is that you need a plugin for this.
I've seen this without a plugin. It doesn't need one for what I know.
Can you link plugin here so we can tell you what to do?
http://mods.mybb.com/view/thanks

Edit: I tried to add this:

<tr>
	<td class="trow2"><strong>Thanks Received:</strong></td>
	<td class="trow2">{$post['thanked_count']}</td>
</tr>

to new template in global templates and named it "thnx_profile" and added {$thnx_profile} to member_profile template but nothing happens, why?
Bump.
Try do add ['thx_count'] instead of ['thanked_count'].
I am not sure will this work but you can try. Or you can try some other plugin which have this function :/
Maybe try this:

<tr>
    <td class="trow2"><strong>Thanks Received:</strong></td>
    <td class="trow2">{$memprofile['thxcount']}</td>
</tr>

Not sure if you can do this though Toungue no clue if you can just grab the content of a php variable like that and directly output it in the template.

Just tried it with:
{$memprofile['birthday']}

So i think the above should work.