MyBB Community Forums

Full Version: Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I used this plugin:
http://community.mybboard.net/thread-63279.html

I have another issue,Now I have a different problem,When I use the plugin above I get this:
[Image: 29qbdw2.png]

What do I need to fix here?

Quote:<?php
/**
* Framed Avatar (Online,Ofline,Away) 3.0
* Bomfile
* www.mybbdestek.com
* www.mybb.gen.tr
*/


function avatar_info()
{
return array(
"name" => "Framed Avatar (Online,Offline,Away)",
"description" => "Online, offline, away in case add avatar frame.",
"website" => "http://www.mybbdestek.com",
"author" => "Bomfile",
"authorsite" => "http://www.mybb.gen.tr",
"version" => "3.0",
"guid" => "",
"compatibility" => "14*",
);
}
function avatar_activate()
{
global $db, $viewing, $cache;
include MYBB_ROOT."/inc/adminfunctions_templates.php";

$postbit_avatar = array(
"template" => "",
);
$postbit_away = array(
"template" => "<div align=\"center\">
<table id=\"Avatar_Table\" width=\"130\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td rowspan=\"3\">
<img id=\"01\" src=\"images/avatar/aw/aw01.png\" width=\"19\" height=\"123\" /></td>
<td colspan=\"2\">
<img id=\"02\" src=\"images/avatar/aw/aw02.png\" width=\"113\" height=\"12\" /></td>
</tr>
<tr>
<td>
<a href=\"{\$post[\'profilelink_plain\']}\"><img src=\"{\$post[\'avatar\']}\" height=\"94\" width=\"94\" alt=\"{\$lang->postbit_status_away}\" /></a>
</td>
<td rowspan=\"2\">
<img id=\"04\" src=\"images/avatar/aw/aw03.png\" width=\"19\" height=\"111\" /></td>
</tr>
<tr>
<td>
<img id=\"05\" src=\"images/avatar/aw/aw04.png\" width=\"94\" height=\"17\" /></td>
</tr>
</table>
</div>",
);
$postbit_offline = array(
"template" => "<div align=\"center\">
<table id=\"Avatar_Table\" width=\"130\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td rowspan=\"3\">
<img id=\"01\" src=\"images/avatar/off/off01.png\" width=\"19\" height=\"123\" /></td>
<td colspan=\"2\">
<img id=\"02\" src=\"images/avatar/off/off02.png\" width=\"113\" height=\"12\" /></td>
</tr>
<tr>
<td>
<a href=\"{\$post[\'profilelink_plain\']}\"><img src=\"{\$post[\'avatar\']}\" height=\"94\" width=\"94\" alt=\"{\$lang->postbit_status_offline}\" /></a>
</td>
<td rowspan=\"2\">
<img id=\"04\" src=\"images/avatar/off/off03.png\" width=\"19\" height=\"111\" /></td>
</tr>
<tr>
<td>
<img id=\"05\" src=\"images/avatar/off/off04.png\" width=\"94\" height=\"17\" /></td>
</tr>
</table>
</div>",
);
$postbit_online = array(
"template" => "<div align=\"center\">
<table id=\"Avatar_Table\" width=\"130\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td rowspan=\"3\">
<img id=\"01\" src=\"images/avatar/on/on01.png\" width=\"19\" height=\"123\" /></td>
<td colspan=\"2\">
<img id=\"02\" src=\"images/avatar/on/on02.png\" width=\"113\" height=\"12\" /></td>
</tr>
<tr>
<td>
<a href=\"{\$post[\'profilelink_plain\']}\"><img src=\"{\$post[\'avatar\']}\" height=\"94\" width=\"94\" alt=\"{\$lang->postbit_status_online}\" /></a>
</td>
<td rowspan=\"2\">
<img id=\"04\" src=\"images/avatar/on/on03.png\" width=\"19\" height=\"111\" /></td>
</tr>
<tr>
<td>
<img id=\"05\" src=\"images/avatar/on/on04.png\" width=\"94\" height=\"17\" /></td>
</tr>
</table>
</div>",
);



$db->update_query("templates", $postbit_avatar, "title='postbit_avatar'");
$db->update_query("templates", $postbit_away, "title='postbit_away'");
$db->update_query("templates", $postbit_offline, "title='postbit_offline'");
$db->update_query("templates", $postbit_online, "title='postbit_online'");
$db->query("UPDATE ".TABLE_PREFIX."forums SET disporder='1' WHERE parentlist NOT LIKE '_' AND parentlist NOT LIKE '__' AND parentlist NOT LIKE '___' AND parentlist LIKE '%,%,%'");
$cache->update_forums();


}

function avatar_deactivate()
{

global $db;
require MYBB_ROOT.'/inc/adminfunctions_templates.php';


$postbit_avatar = array(
"template" => "<a href=\"{\$post[\'profilelink_plain\']}\"><img src=\"{\$post[\'avatar\']}\" alt=\"\" {\$avatar_width_height} /></a>",
);
$postbit_away = array(
"template" => "<a href=\"{\$post[\'profilelink_plain\']}\" title=\"{\$lang->postbit_status_away}\"><img src=\"{\$theme[\'imgdir\']}/buddy_away.gif\" border=\"0\" alt=\"{\$lang->postbit_status_away}\" /></a>",
);
$postbit_offline = array(
"template" => "<img src=\"{\$theme[\'imgdir\']}/buddy_offline.gif\" title=\"{\$lang->postbit_status_offline}\" alt=\"{\$lang->postbit_status_offline}\" />",
);
$postbit_online = array(
"template" => "<a href=\"online.php\" title=\"{\$lang->postbit_status_online}\"><img src=\"{\$theme[\'imgdir\']}/buddy_online.gif\" border=\"0\" alt=\"{\$lang->postbit_status_online}\" /></a>",
);


$db->update_query("templates", $postbit_avatar, "title='postbit_avatar'");
$db->update_query("templates", $postbit_away, "title='postbit_away'");
$db->update_query("templates", $postbit_offline, "title='postbit_offline'");
$db->update_query("templates", $postbit_online, "title='postbit_online'");
}
function avatar()
{
global $db;

$db->query("UPDATE ".TABLE_PREFIX."forums SET disporder='1' WHERE parentlist NOT LIKE '_' AND parentlist NOT LIKE '%,_' AND parentlist NOT LIKE '__' AND parentlist NOT LIKE '___' ");
$cache->update_forums();
}

?>
I am busy and can't tell you which, but try finding the div that says aligncenter, change to aligh left.