MyBB Community Forums

Full Version: How to show styled (colored) usernames on portal page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to see styled usernames on portal page the same way I do on the thread page, without plugin.
[attachment=46503]

I checked the portal_announcement file and I see this:  <div class="post-h-username">{$profilelink}</div>
I checked the postbit file and I see this: <div class="post-h-username">{$post['profilelink']}</div>

When I replace {$profilelink} with {$post['profilelink']}, I guess because it is from different template section. So I would like to find out where is {$post['profilelink']} defined.

Yes, I am a beginner.
Its not an easy task. You need a plugin to do this.
Something like:
https://community.mybb.com/mods.php?action=view&pid=128
(2023-12-30, 11:56 PM)effone Wrote: [ -> ]Its not an easy task. You need a plugin to do this.
Something like:
https://community.mybb.com/mods.php?action=view&pid=128

Hi, thanks for your quick reply. I do not want to use plugin and I would still like to at least try even if it is not easy. Could you, please, at least point me in the direction - where do i find where "{$post['profilelink']}" is defined? Is it in the templates somewhere - or is it the code in my mybb directory?

I really think that by finding this I could get a better understanding of how mybb works overall.

Thank you
I tried the plugin after all, but it does not work. I have copied the files to proper folders, but when i try to open plugins in ACP, I see blank page. When I remove the files from the plugin folder, everything works again.

Could anyone help - either with the plugin or better, answer the questions I asked in previous post?
this plugin isn't ready for PHP8

Quote:Fatal error: Uncaught Error: Call to undefined function create_function()