MyBB Community Forums

Full Version: MentionMe 3.2.12 (for MyAlerts 2.x)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[Image: T6K8NKn.png]
MentionMe 3.2.12
for MyBB 1.8.x
and MyAlerts 2.x


by
Wildcard

DownloadGitHubWiki

Follow WildcardSearch On Twitter for Faster Updates:
[Image: q1W0aFv.png]

MentionMe is the original, all-in-one solution for Twitter-style tagging on MyBB Forums.
Features:

Built-in auto-complete
without requiring two plugins


[Image: 4bYcbx1.png]

Mentions are formatted by user group (admin controllable)


[Image: MgvxY8j.png]

Postbit button for single or multiple mentions (admin controllable)


[Image: 8n2ezDP.png]

Compatible with MyAlerts

[Image: AXk7QkU.png]



  • supports standard textarea, SCEditor (default WYSIWYG), CKEditor (Rin Editor, etc.), [Image: 68747470733a2f2f692e696d6775722e636f6d2f...662e706e67] MHEditor (doylecc)
  • [Image: 68747470733a2f2f692e696d6775722e636f6d2f...662e706e67]DVZ Shoutbox Supported
  • full text search
  • displays avatars in autocomplete popup
  • uses and prioritizes users from the current thread, when applicable
  • uses name caching so rarely needs to query
  • highly configurable; easy to customize styles
  • prefix mentions with @, a custom symbol, or with no prefix
  • abides by user's ignore list when sending alerts
  • checks permissions when sending alerts

Dependencies:

The PHP extension mbstring must be installed in order to use this plugin.

Resources:

Support
I make no guarantees of support but I will always try. If you need support for this plugin please create a support thread at MyBB forums.

Bugs/Issues

Please report any problems found at the GitHub repository for this project, in this thread or in a new thread on MyBB Community Forums. Although I will answer questions at my own forum, I prefer not to.

Info
For plugin usage and installation, see the Mention Me wiki on GitHub.

Change Log:

3.0.2, 3.0.3, 3.0.4
3.1, 3.1.1, 3.1.2, 3.1.3, 3.1.4
3.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.2.10, 3.2.11, 3.2.12

Improve MentionMe!

I have started a GitHub repository for this plugin. Ideas and bug reports are welcome there and anyone wanting to collaborate is more than welcome Smile

https://github.com/WildcardSearch/MentionMe

Thanks to all of you that gave help and feedback Smile
Is there a integration with mentioning on DVZ Shoutbox?
Yes it does.

The autocomplete feature doesn't work with third-party plugins, but the mention detection/linking works fine.
Does this plugin works for other editors like Rin Editor?
(2016-12-16, 07:32 PM)nollidnosnhoj Wrote: [ -> ]Does this plugin works for other editors like Rin Editor?

I think that is CK Editor?

If so, the answer is not yet. It is a planned feature for the next minor version.
Thanks for this release i have tested and works fine.

Anyway i wait due you make several changes, to try to contribute with some additions i made.

But i send it to you this week if you do not added yet this weekend.

Ok i see there are many changes but i share what i try to add:

To review if alert is present and mentionme integration review saves 1 query:

/*
 * used by _info to verify the mention MyAlerts setting
 *
 * @return bool true if MyAlerts installed,
 * false if not
 */
function mention_get_myalerts_status()
{
	static $status = false, $checked = false;

	if ($checked) {
		return $status;
	}
	
	global $db, $cache;
	$checked = true;
	// Load cache data and compare if version is the same or don't
    $myalerts_plugins = $cache->read('mybbstuff_myalerts_alert_types');

	if($myalerts_plugins['mention']['code'] == 'mention' && $myalerts_plugins['mention']['enabled'] == 1){
		return true;
	}
	return false;	
}

To integrate MentionMe with Myalerts without uninstall.
// Integration of MyAlerts without uninstall or deactivate...
function mentionme_myalerts_integrate(){
	global $db, $cache;
	// Verify if myalerts exists and if compatible with 1.8.x then add alert type
	if(function_exists("myalerts_info")){
		// Load myalerts info into an array
		$my_alerts_info = myalerts_info();
		// Set version info to a new var
		$verify = $my_alerts_info['version'];
		// If MyAlerts 2.0 or better then do this !!!
		if($verify >= "2.0.0"){
			// Load cache data and compare if version is the same or don't
			$myalerts_plugins = $cache->read('mybbstuff_myalerts_alert_types');
			if($myalerts_plugins['mention']['code'] != 'mention'){
			//Adding alert type to db
			$alertTypeManager = MybbStuff_MyAlerts_AlertTypeManager::createInstance($db, $cache);
				$alertType = new MybbStuff_MyAlerts_Entity_AlertType();
				$alertType->setCode('mention');
				$alertType->setEnabled(true);
			$alertTypeManager->add($alertType);
			flash_message("MyAlerts and Mention Me by Wildcard were integrated succesfully", 'success');
			admin_redirect('index.php?module=config-plugins');			
			}
			else{
				flash_message("MyAlerts version is wrong and can not integrate with Mention Me by Wildcar or already integrated", 'error');
				admin_redirect('index.php?module=config-plugins');			
			}
		}
		else{
			flash_message("MyAlerts is not working yet on your board, verify this and try again latter", 'error');
			admin_redirect('index.php?module=config-plugins');			
		}
	}	
}

And i use this link to set it:


	$integrate = '<a href="index.php?module=config-plugins&amp;action=mentionme_myalerts_integrate">Integrate with MyAlerts</a>';

And i use this part to add it:

				// if not, warn them and provide instructions for integration
				$myalerts_report = <<<EOF
				<li style="list-style-image: url(styles/{$cp_style}/images/icons/warning.png)">{$lang->mention_myalerts_integration_message}				
				</li>
				<li style=list-style-image: url(styles/{$cp_style}/images/MentionMe/settings.gif); margin-top: 10px;>{$integrate}
				</li>
EOF;

I have another parts but i have to download your latest repo to se how do you do at the end, this code should serve but use it if you wish.
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1062 - Duplicate entry 'mention' for key 'unique_code'
Query:
INSERT INTO mybb_alert_types (id,code,enabled,can_be_user_disabled) VALUES (0,'mention',1,1)
(2016-12-17, 12:41 AM)Dark Neo Wrote: [ -> ]Thanks for this release i have tested and works fine.

Thanks for all the suggestions. I will look into it.



@AlexanderPep

It seems you have another plugin installed for mentions. Just uninstall the other plugin first.
With ck editor, afrer making post it work properly BUT while making post it dosent show username suggestion.
It is compatible only with the default MyBB SCEditor... for CKeditor you have to wait until v3.1 will be out Smile