MyBB Community Forums

Full Version: [Update] imei Group Join Permission + Profile Albums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So this plugin is incompatible only for one hook (afaik), this is the hook:
$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\&amp\;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?
Bump~
For the first, replace it with the following:

function imeiGroupJoinPermission_addtab(&$tabs)
{
    $tabs['jp']="Joining Permissions";
} 

The second looks like it's already 1.6.5 ready.
(2011-12-12, 05:01 PM)euantor Wrote: [ -> ]For the first, replace it with the following:

function imeiGroupJoinPermission_addtab(&$tabs)
{
    $tabs['jp']="Joining Permissions";
} 

The second looks like it's already 1.6.5 ready.

Yes, that is the solution, thanks Euantor.

The second plugin looks to be working right.
How is your profile albums working right?
Another error I have found is that I can't even access the albums.php page. It says I don't have permission.
^What are you talikng about? The albums plugin always worked for me, I was just checking if it need some changes, and it doesn't.

And I don't see a reason for it blocking you access, as it uses not permissions I think.
Well...I'm not sure. Go look at my thread and it will tell you the sql error I got also