MyBB Community Forums
[How To?] Xfire Line - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] Xfire Line (/thread-145865.html)



Xfire Line - WrongType - 2013-09-24

I made custom line for xfire.How i can make it to show up under author profile when post,under reputation.


RE: Xfire Line - Destroy666 - 2013-09-24

Add this code to postbit_author_info template:
xFire: {$post['fidX']}
Where X is profile field id of XFire (check in link in ACP).


RE: Xfire Line - WrongType - 2013-09-25

(2013-09-24, 10:29 PM)Destroy666 Wrote: Add this code to postbit_author_info template:
xFire: {$post['fidX']}
Where X is profile field id of XFire (check in link in ACP).

It's working but problem is that it's in same row with Warning Level,i can't change row.


RE: Xfire Line - .m. - 2013-09-25

you can add <br /> before the suggested code so that it can be displayed in a new line


RE: Xfire Line - WrongType - 2013-09-25

Thank you both.
It works.

------------------------------------------------------------------------
How i can make that reputation(on post) is shown only to Super Mod and Administrators.


RE: Xfire Line - .m. - 2013-09-25

^ that requires template conditionals plugin

after installing template conditionals plugin, navigate to postbit_author_user template, find {$post['replink']} and modify it like below

<if in_array($mybb->usergroup['gid'], array('3', '4'))then>
{$post['replink']}
</if>



RE: Xfire Line - WrongType - 2013-09-25

I said wrong i want to hide warning lvl,i did same(changed {$post['warninglevel']}) like you said for reps but when i did it i see just name and avatar.


RE: Xfire Line - .m. - 2013-09-25

^ warning level of a member in general is visible only to the staff (includes moderators)
if you want to make it visible only to administrators & super moderators then template conditional
should work (assuming that user groups IDs are not changed on your forum - eg. Admins --> group ID 4)