MyBB Community Forums
[General] user title error - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [General] user title error (/thread-164390.html)



user title error - sonix™ - 2014-12-18

[Image: BR09mG.png]


RE: user title error - Destroy666 - 2014-12-18

It's not an error, you can't use HTML in usertitles. Well, you can, but it's escaped.


RE: user title error - sonix™ - 2014-12-18

what do I need to use, give me an example please


RE: user title error - Destroy666 - 2014-12-18

As I said above, you can't use HTML, it will be output as escaped plain text.

You need to use a plugin like this: http://mybbsource.com/mods.php?act=view&id=63 to enable HTML (not recommended).


RE: user title error - sonix™ - 2014-12-19

I was working in version 1.6.16 but not working 1.8.3


RE: user title error - .m. - 2014-12-19

^ that facility removed from MyBB 1.8.x to prevent some vulnerability


RE: user title error - Sazze - 2014-12-19

Follow the easy instructions below.

1. First of all, get this plugin (Allows you to have PHP in templates, which will help you out to get this custom usertitle).

Link: http://mybbhacks.zingaburga.com/showthread.php?tid=260

2. Install & activate it.

3. Go to "ACP > Templates & Style > choose the template you are currently using > Post Bit Templates > postbit (or postbit_classic [ONLY IF YOU ARE USING CLASSIC MODE!])

4. Find
{$post['usertitle']}

replace that with
<if $post['uid'] == UIDHERE then><i style="color: #F64EC1;font-style: normal;font-size: 13px;"><i>Custom usertitle</i><else>{$post['usertitle']}</if>

After it's done, it should look like this (In threads, posts, postbit..)
[Image: qxmxPhu.png]

Where it says "UIDHERE" replace that with your UID, and where it says "Custom usertitle" change that to whatever usertitle you want.

Feel free to change the color as well.


RE: user title error - .m. - 2014-12-19

^ template conditionals plugin is preferred than php in templates to avoid any mischief activities by other admins