2013-02-25, 11:44 AM
2013-02-26, 01:43 PM
im only using <font color="#color code">Group Name</font> in my groups
2013-03-04, 02:54 PM
Version 1.8:
* fix announcements compatibility with Google SEO (by Kretol)
* fix announcements compatibility with Google SEO (by Kretol)
2014-06-01, 11:06 PM
Hey! I am currently using this plugin on my MyBB Board and it works great! However, if a guest replies to a topic, the plugin will omit the guest's name on the index page and any forum depths. The guest's name is shown on any topic list within forums and within the UserCP though. Any idea on how to fix that? o:
This is what I've tried so far (changes made in styleUsernames.php)
I found this part:
and replaced it with:
It shows guest usernames on the index and forum depths pages; however, the colors for registered users are gone then. And I'm quite clueless now, because the thing is that guest usernames are shown in the lastposter column within forums, but not in the lastposter column on the index and forum depths. ^^
I know, this topic has last been used quite a while ago, but I'm having my fingers crossed that someone might have a clue on what to do. (:
This is what I've tried so far (changes made in styleUsernames.php)
I found this part:
/**
* Style usernames on forums list
*
* @param array &$forum Reference to forum data
*/
public function buildForumbits(&$forum)
{
$this->cache['users'][$forum['lastposteruid']] = $forum['lastposter'];
$forum['lastposter'] = "#STYLE_USERNAMES_UID{$forum['lastposteruid']}#";
}
and replaced it with:
/**
* Style usernames on forums list
*
* @param array &$forum Reference to forum data
*/
public function buildForumbits(&$forum)
{
global $forum;
if ($forum['username'])
{
$this->cache['users'][$forum['uid']] = $forum['username'];
$forum['username'] = "#STYLE_USERNAMES_UID{$forum['uid']}#";
}
if ($forum['lastposteruid'] != 0)
{
$this->cache['users'][$forum['lastposteruid']] = $forum['lastposter'];
$forum['lastposter'] = "#STYLE_USERNAMES_UID{$forum['lastposteruid']}#";
}
}
It shows guest usernames on the index and forum depths pages; however, the colors for registered users are gone then. And I'm quite clueless now, because the thing is that guest usernames are shown in the lastposter column within forums, but not in the lastposter column on the index and forum depths. ^^
I know, this topic has last been used quite a while ago, but I'm having my fingers crossed that someone might have a clue on what to do. (:
2014-06-02, 09:03 AM
Version 1.9
* add style usernames on guests
I added plugin to mods DB, it's avaiting validation.
You can download new version directly from github.
Download
https://github.com/lukasamd/MyBB-Style_U...master.zip
* add style usernames on guests
I added plugin to mods DB, it's avaiting validation.
You can download new version directly from github.
Download
https://github.com/lukasamd/MyBB-Style_U...master.zip
2014-06-02, 12:50 PM
That was fast, thanks for that! (:
It does show guest usernames now; but instead of showing the group color on the registered ones, it only shows #000000 as the hex code, both on the index and forum depths. o:
It does show guest usernames now; but instead of showing the group color on the registered ones, it only shows #000000 as the hex code, both on the index and forum depths. o:
2014-06-02, 12:57 PM
Hello, give me screenshoot.
2014-06-02, 01:05 PM
2014-06-05, 12:06 AM
Alright, I tested a little further and I got it to work. I uploaded the older file again and I put the following:
Thanks for your help though! I appreciate it a lot! (:
/**
* Style usernames on forums list
*
* @param array &$forum Reference to forum data
*/
public function buildForumbits(&$forum)
{
if ($forum['lastposteruid'] != 0)
{
$this->cache['users'][$forum['lastposteruid']] = $forum['lastposter'];
$forum['lastposter'] = "#STYLE_USERNAMES_UID{$forum['lastposteruid']}#";
}
else
{
$forum['lastposter'] = "{$forum['lastposter']}";
}
}
Thanks for your help though! I appreciate it a lot! (:
2014-06-05, 07:31 AM
(2014-06-05, 12:06 AM)Julz Wrote: [ -> ]Alright, I tested a little further and I got it to work. I uploaded the older file again and I put the following:how it use in my forum
/** * Style usernames on forums list * * @param array &$forum Reference to forum data */ public function buildForumbits(&$forum) { if ($forum['lastposteruid'] != 0) { $this->cache['users'][$forum['lastposteruid']] = $forum['lastposter']; $forum['lastposter'] = "#STYLE_USERNAMES_UID{$forum['lastposteruid']}#"; } else { $forum['lastposter'] = "{$forum['lastposter']}"; } }
Thanks for your help though! I appreciate it a lot! (: