2011-06-27, 07:48 PM
2011-06-27, 07:52 PM
Install this plugin: http://mods.mybb.com/download/username-style
But first you need to open usernamestyle.php, find:
Replace with:
But first you need to open usernamestyle.php, find:
"compatibility" => "14*"
Replace with:
"compatibility" => "16*"
2011-06-27, 07:52 PM
By installing this plugin: http://mods.mybb.com/view/username-style
You've to edit the plugin too since it has a bug in forumbit area.
Since many users are facing the issue that when they Install this plugin, then their Moderated By: "Some Username" becomes Moderated By: Guests
So here is how to resolve this issue;
Alright, Open plugin file and find;
and Change it into the following;
This should resolve the issue
You've to edit the plugin too since it has a bug in forumbit area.
Since many users are facing the issue that when they Install this plugin, then their Moderated By: "Some Username" becomes Moderated By: Guests
So here is how to resolve this issue;
Alright, Open plugin file and find;
function usernamestyle_build_forumbits_forum(&$forum)
{
global $db, $mybb, $lang, $templates, $moderatorcache, $modlistsetting;
// Moderator column is not off
$mybb->settings['modlist'] = $modlistsetting;
if($mybb->settings['modlist'] != 0)
{
$moderators = "";
$donemoderators = array();
$parentlist = explode(",", $forum['parentlist']);
foreach($parentlist as $fid)
{
if(is_array($moderatorcache[$fid]))
{
foreach($moderatorcache[$fid] as $moderator)
{
if(in_array($moderator['uid'], $donemoderators))
{
continue;
}
$moderator['username'] = format_name($moderator['username'], $moderator['usergroup'], $moderator['displaygroup']);
$moderator['profilelink'] = build_profile_link($moderator['username'], $moderator['uid']);
$moderators .= $comma;
$moderators .= $moderator['profilelink'];
$comma = ", ";
$donemoderators[] = $moderator['uid'];
}
}
}
$comma = "";
if($moderators)
{
eval("\$forum['modlist'] = \"".$templates->get("forumbit_moderators")."\";");
}
else
{
$forum['modlist'] = "";
}
}
// To avoid overwriting by original code segment
$mybb->settings['modlist'] = 0;
// Format lastposter name
$query = $db->simple_select("users", "usergroup, displaygroup", "uid = '".$forum['lastposteruid']."'");
$user = $db->fetch_array($query);
$forum['lastposter'] = format_name($forum['lastposter'], $user['usergroup'], $user['displaygroup']);
}
and Change it into the following;
function usernamestyle_build_forumbits_forum(&$forum)
{
global $db, $mybb, $lang, $templates, $moderatorcache, $modlistsetting;
// Moderator column is not off
$mybb->settings['modlist'] = $modlistsetting;
if($mybb->settings['modlist'] != 0)
{
$moderators = "";
$done_moderators = array(
"users" => array(),
"groups" => array()
);
$parentlistexploded = explode(',', $forum['parentlist']);
foreach($parentlistexploded as $mfid)
{
if(is_array($moderatorcache[$mfid]))
{
foreach($moderatorcache[$mfid] as $modtype)
{
foreach($modtype as $moderator)
{
if($moderator['isgroup'])
{
if(in_array($moderator['id'], $done_moderators['groups']))
{
continue;
}
$moderators .= $comma.htmlspecialchars_uni($moderator['title']);
$done_moderators['groups'][] = $moderator['id'];
}
else
{
if(in_array($moderator['id'], $done_moderators['users']))
{
continue;
}
$moderators .= "{$comma}<a href=\"".get_profile_link($moderator['id'])."\">".format_name(htmlspecialchars_uni($moderator['username']),$moderator['usergroup'],$moderator['displaygroup'])."</a>";
$done_moderators['users'][] = $moderator['id'];
}
$comma = ", ";
}
}
}
}
$comma = "";
if($moderators)
{
eval("\$forum['modlist'] = \"".$templates->get("forumbit_moderators")."\";");
}
else
{
$forum['modlist'] = "";
}
}
// To avoid overwriting by original code segment
$mybb->settings['modlist'] = 0;
// Format lastposter name
$query = $db->simple_select("users", "usergroup, displaygroup", "uid = '".$forum['lastposteruid']."'");
$user = $db->fetch_array($query);
$forum['lastposter'] = format_name($forum['lastposter'], $user['usergroup'], $user['displaygroup']);
}
This should resolve the issue
2011-06-27, 10:07 PM
i installed this mod and now the ad management mod won't show.So i uninstalled this mod and still the ad mod not showing.
2011-06-27, 10:13 PM
You probably deleted the ad mod then, there is no way this plugin would conflict with the ad mod. Which ad mod are you talking about by the way?
2011-06-27, 10:15 PM
this one Here I accidently deactivated it then ii re-activated it adn now it's not showing the ads
2011-06-27, 10:18 PM
I believe if you deactivate and uninstall that plugin the ads are gone. You need to add the ads again.
2011-06-27, 10:20 PM
i tried and they don't show, should i try ftping the files again.
2011-06-27, 10:23 PM
Obviously, if you deleted the files (which you denied in the first place) you need to re-upload them.
But if you didn't and the plugin is showing up on the plugins page, then you just need to activate and insert the ads again.
But if you didn't and the plugin is showing up on the plugins page, then you just need to activate and insert the ads again.
2011-06-27, 10:39 PM
okay got is sorted thanks( rep given)