2011-12-07, 11:07 PM
So this plugin is incompatible only for one hook (afaik), this is the hook:
Here is the function:
I had had read the wiki:
http://wiki.mybb.com/index.php/1.6.5#Plu...em_Changes
And Dylan thread:
http://community.mybb.com/forum-127.html
But I get lost in here:
http://community.mybb.com/thread-106729-...#pid777822
Pavemen's script doesn't look to be working for me either:
http://community.mybb.com/thread-108595.html
Hopefully somebody here can help me, thanks.
Profile Albums.
Hook:
Function:
Edit... mmm, looks like this one is already compatible?
$plugins->add_hook("admin_user_groups_edit_graph_tabs", "imeiGroupJoinPermission_addtab");
Here is the function:
function imeiGroupJoinPermission_addtab($tabs)
{
$tabs['jp']="Joining Permissions";
}
I had had read the wiki:
http://wiki.mybb.com/index.php/1.6.5#Plu...em_Changes
And Dylan thread:
http://community.mybb.com/forum-127.html
But I get lost in here:
http://community.mybb.com/thread-106729-...#pid777822
Pavemen's script doesn't look to be working for me either:
http://community.mybb.com/thread-108595.html
Hopefully somebody here can help me, thanks.
Profile Albums.
Hook:
$plugins->add_hook("build_friendly_wol_location_end", "profilealbums_whosonline");
Function:
function profilealbums_whosonline(&$plugin_array)
{
global $lang;
$lang->load("profilealbums", false, true);
if(preg_match('/member\.php\?action\=albums\&\;uid/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "<a href=\"{$plugin_array['user_activity']['location']}\">{$lang->locprofilalbums}</a>";
}
if(preg_match('/usercp\.php\?action\=profilealbums/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "<a href=\"usercp.php?action=profilealbums\">{$lang->loccreatealbum}</a>";
}
if(preg_match('/albums\.php\?aid/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "<a href=\"{$plugin_array['user_activity']['location']}\">{$lang->locprofilalbums}</a>";
}
if(preg_match('/albums\.php\?image/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "<a href=\"{$plugin_array['user_activity']['location']}\">{$lang->locimagprofi}</a>";
}
if(preg_match('/albums\.php\?action\=upload/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = "{$lang->locuploadimg}";
}
if(preg_match('/albums\.php\?action\=editalbum/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = $lang->loceditalbums;
}
if(preg_match('/albums\.php\?action\=editimage/',$plugin_array['user_activity']['location']))
{
$plugin_array['location_name'] = $lang->loceditimageprof;
}
return $plugin_array;
}
Edit... mmm, looks like this one is already compatible?