• Welcome to Simple Machines Community Forum. Please login or sign up.
January 27, 2022, 09:03:25 PM

News:

SMF 2.0.19 has been released! Please update. Read more.


@mention members

Started by Dragooon, May 02, 2014, 01:07:58 PM

Previous topic - Next topic

Arantor

What about everywhere else that profile pages are linked?
No good deed goes unpunished
All helpful urges should be circumvented

brettuk

Quote from: Arantor on July 27, 2018, 12:27:12 PM
What about everywhere else that profile pages are linked?

Ideally I need all of those with rel nofollow too, but it's a big job!

Arantor

No, ideally what you need is not having the links there at all. nofollow has long been discouraged.
No good deed goes unpunished
All helpful urges should be circumvented

boydster

Hello, I'm trying to implement this on a test/dev environment right now and running into some trouble. I moved everything, including the install.php, into the root directory, then ran path/to/root/install.php. I can now give permissions for Mentions to different membergroups. I can see a "Mentions" option in user profiles. But nothing is populating the Mention lists.

Further, when I type a reply, and write something like "@user2 this is a test" (without quotation marks) there is no autocomplete. I've tried this under multiple user accounts, referencing other users. No autocomplete. No new entry in the Mentions list.

I can see caret.js and jquery.atwho.js are both in my default scripts directory.

What am I missing here? Testing on SMF 2.0.14 and 2.0.15.

Kindred

why are you not using the package manager to install the mod?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

boydster

Wow. I... I don't even have a wise response for that. I hadn't tried that functionality yet. In fact, I had already implemented the Public Ban list on my test setup just from making the manual updates to the code.

Thanks for showing me the easy way! It's working perfectly now.

CyanGaming

I don't know what's happening, but my mentions aren't showing up. When people mention me, they're getting deleted before I even see them. Not sure if this was caused by me mentioning myself 1 time? I have no idea why it's happening, but it seems to work fine on other people's profiles.

Mick.

Pretty sweet mod bruh! Imma run off and see if I can make @mentions work with SimplePortal Shoutbox.  :o

palmdoc

Nice mod. I get the autocomplete for regular members but I can't seem to tag admin. Bug or feature?

brettuk

Good mod, I have been using this for a while now - thank you.

do you know which file I need to edit to change the <a href=""> code? As I would like to add a rel="nofollow" to these links.

Cheers.

WantSome

Hi!  I'm really loving this mod, been using it for a while.

Is it possible to add the function to mention everybody in the userbase?  Would that cause a massive issue?

I'd like to use it for certain global announcements and newsletters to draw member's attention to these posts that often get overlooked.

Thanks!

delta5

December 02, 2018, 11:48:46 AM #591 Last Edit: December 02, 2018, 03:57:57 PM by Kindred
Can anyone please tell me what is happening here?

Undefined
https://www.fedupwithliberals.com/index.php?action=post2;start=0;msg=6236;de99a09=b377e7c144d4d0f108734e60dbd27bcf;board=71
8: Undefined index: approved
/home/s7x1c79cv7ls/public_html/Sources/Subs-Post.php
Line: 2416


2405: function modifyPost(&$msgOptions, &$topicOptions, &$posterOptions)
2406: {
2407: global $user_info, $modSettings, $smcFunc, $context;
2408:
2409: $topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
2410: $topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
2411: $topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;
2412:
2413:
2414: mentions_process_post($msgOptions, $topicOptions, $posterOptions);
2415: if (!empty($msgOptions['mentions']))
==>2416: mentions_process_store($msgOptions['mentions'], $msgOptions['id'], $msgOptions['subject'], $msgOptions['approved']);
2417: // This is longer than it has to be, but makes it so we only set/change what we have to.
2418: $messages_columns = array();
2419: if (isset($posterOptions['name']))
2420: $messages_columns['poster_name'] = $posterOptions['name'];
2421: if (isset($posterOptions['email']))
2422: $messages_columns['poster_email'] = $posterOptions['email'];
2423: if (isset($msgOptions['icon']))
2424: $messages_columns['icon'] = $msgOptions['icon'];
2425: if (isset($msgOptions['subject']))
2426: $messages_columns['subject'] = $msgOptions['subject'];
2427: if (isset($msgOptions['body']))
2428: {
2429: $messages_columns['body'] = $msgOptions['body'];
2430:
2431: if (!empty($modSettings['search_custom_index_config']))
2432: {
2433: $request = $smcFunc['db_query']('', '
2434: SELECT body
2435: FROM {db_prefix}messages
2436:


—edit — please use code bbc tags and do some cleaning of the output

landyvlad

Quote from: WantSome on November 28, 2018, 05:11:17 PM
Hi!  I'm really loving this mod, been using it for a while.

Is it possible to add the function to mention everybody in the userbase?  Would that cause a massive issue?

I'd like to use it for certain global announcements and newsletters to draw member's attention to these posts that often get overlooked.

Thanks!

I agree. If this was practical to do, it'd be very useful for the reasons WantSome describes.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

delta5

Update: I went from PHP 7.0 to 7.1, and this error and a few others have not returned so far.

North East Man

This is a great mod, although it seems like there is an issue with using it on an iPad. 

When you tap the @ plus user name it just hangs.  You can't type any more, move down to the next line, can't do anything.  Sometimes after clicking in other fields like the subject and back to the message it unblocks and allows you to type the rest of the message, but more and more often it just hangs and you have to leave the post and come back to it. 

Reported by several users.  Is this something that is know about and has a fix?

landyvlad

Not related to this ,mod specifically but from time to time I have errors reported by members, and invariably they are using ipads / iphones.

Seems that these errors almost always commence after a new version of iOS is installed. In other words, Apple's fault.

Maybe see if that's the case.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Mick.

Hey Dragooon, I really dig your mod. Today got this idea of implementing a tooltip showing the members avatar when hover the @mention. Not a big deal, just drafted the css and the html needed. Now just implement the php calls. Im working on it, I'll share the hack when done.

Concept here.... https://www.idesignsmf.com/index.php/page,page314.html

efk

Not sure if this already exist, but if don't, is it possible to add for every member an option to disable notifications for mentions since its bugged, requiring few more clicks to get rid of notification and doesn't seem to cooperate with New post/topic in boards, always showing something New in board or notification on profile and require to check post twice using both methods to reach post. Not a problem but its annoying, I even threatened my members to stop mentioning my nick or plugin gonna be removed  :laugh:

delta5

Hi guys, can anyone tell me whats going on here? This is coming from a fresh install of 2.0.15 on PHP 7.1

Apply Filter: Only show the error messages of this member Sling Blade
Apply Filter: Only show the error messages of this IP address 73.212.203.223   
   Reverse chronological order of list Today at 07:12:07 PM
Apply Filter: Only show the error messages of this session 21a70068071f5aae6200c40f84b0296a
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URLhttps://www.protrucker.net/index.php?Apply Filter: Only show the errors with the same message8: Undefined index: hidden_sApply Filter: Only show the errors from this file File: /home/s7x1c79cv7ls/public_html/protrucker/Themes/default/languages/Mentions.english.php (main sub template - eval?)
Line: 429

This is happening on two different forums.

jsx

Why is this text not displayed here?

Allow members to tag other members and alert them via mentioning them via @username syntax



It must to cause some error.

Advertisement: