Advertisement:

Author Topic: @mention members  (Read 160594 times)

Offline Cruiser79

  • Newbie
  • *
  • Posts: 3
Re: @mention members
« Reply #540 on: August 16, 2017, 08:02:30 AM »
Hi all.

New admin of a forum here, installed the mod yesterday.

I would like to know which code lines should I change in order to "translate" the new menu options to Greek.

For example, Mentions under Profile should look like Με ανέφεραν

Also, I wand to change all other verbal statements that appear on my forum to Greek for this mod

Thanks in advance

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,276
  • Gender: Male
    • Kindred-999 on GitHub
Re: @mention members
« Reply #541 on: August 16, 2017, 08:24:31 PM »
I believe, like most mods, the file would be modification.YOURLANGAUGE.php
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Cruiser79

  • Newbie
  • *
  • Posts: 3
Re: @mention members
« Reply #542 on: August 18, 2017, 05:02:52 AM »
Thanks for your reply.

As a temporary solution, I changed mentions.english.php and mentions.english-utf8.php verbal statements to Greek. My forum has very few non-Greek members so it won't be a problem.

Another question: I use SMFPacks WYSIWYG Editor, not the SMF default. In such case, there is no dropdown menu to autocomplete username after a few letters. However, after syntax @username and posting on a topic, the "tag" works perfectly. Any ideas on how to have a dropdown on SMFPacks WYSIWYG Editor?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,576
  • Gender: Male
    • i30 Owners Club
Re: @mention members
« Reply #543 on: August 18, 2017, 05:22:27 AM »
Quote from: Cruiser79
Any ideas on how to have a dropdown on SMFPacks WYSIWYG Editor?

Why not ask them on smfpacks.com - did you pay for it? It's not really relevant in the @mentions support thread ;)

Offline Cruiser79

  • Newbie
  • *
  • Posts: 3
Re: @mention members
« Reply #544 on: August 27, 2017, 10:53:10 AM »
Quote from: Cruiser79
Any ideas on how to have a dropdown on SMFPacks WYSIWYG Editor?

Why not ask them on smfpacks.com - did you pay for it? It's not really relevant in the @mentions support thread ;)

I am sorry I wasn't clear enough, I meant having a dropdown using @mention members

Offline WhiteRozePetals

  • Newbie
  • *
  • Posts: 8
Re: @mention members
« Reply #545 on: August 29, 2017, 09:55:28 PM »
Hello,

Somehow my mentions modification got corrupted or a missing file. It was causing issue on my website so it wasn't working. I was getting this error:
Warning: require_once(/home/rozeh/forum.decadencescans.com/Sources/Mentions.php): failed to open stream: Permission denied in /home/rozeh/forum.decadencescans.com/Sources/Load.php on line 325

Fatal error: require_once(): Failed opening required '/home/rozeh/forum.decadencescans.com/Sources/Mentions.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/rozeh/forum.decadencescans.com/Sources/Load.php on line 325


I deleted the mentions.php and then it ended up working so I was able to get into my admin panel. I then went to uninstall the mod and it would give me a 500 error. So then I read up on some articles on how to manually uninstall the mod (basically follow the code backwards.) I did this but the mod is still showing up in my installed packages (but not in the browse packages sections) so I can't try to reinstall a clean version because when I download the package and hit install it says it's already installed.

Any help is greatly appreciated. :)

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #546 on: November 11, 2017, 10:51:48 PM »
this doesn't seem to work for member names of only a single character.

is there a way around this ?

yeah i know it's odd that one of my guys has a single capital letter but it still ought to work.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline Gluz

  • Native Language Support Specialist
  • Sr. Member
  • *
  • Posts: 984
  • Gender: Male
Re: @mention members
« Reply #547 on: November 12, 2017, 01:11:01 AM »
In /Themes/default/scripts/mentions.js change:
Code: [Select]
if (query.length < 2)to:
Code: [Select]
if (query.length < 1)
With that the member suggestion drop down will show when typing only one letter after the @, the Mention itself works without modify that file, because it search through any possible member name.
Need help with PHP, HTML, CSS, Themes or MODs?

Quote
Think in spanish, habla en inglés.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #548 on: November 12, 2017, 01:32:32 AM »
thank you SO much - i was thinking that a minimum of one character would return a cumbersome list of member names but the guys name fortunately is "Z".

i should've looked at the code myself - sorry to bother but you were prompt regardless !

appreciated ... i have been looking up the member's id and then adding into the BBCode. I got tired of that and am happy now.

It's a great mod and i'm surprised that Simple Machines haven't adopted it !
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #549 on: November 12, 2017, 03:08:23 AM »
my first Javascript change  ... note when implementing Javscript code modifications - clear the browser cache afterwards to reload the script because (this may help somebody else as novices like me (there must be others out there)) I have just learned that website scripts run in one of two places [source: http://www.codeconquest.com/website/client-side-vs-server-side/]:

Quote
JavaScript is an example of the client side (also called the front-end) and PHP is an example of the server side (also called the back-end).

The client of a website refers to the web browser that is viewing it. The server of a website is, of course, the server that hosts it
« Last Edit: November 12, 2017, 03:35:32 AM by aegersz »
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,361
    • Arantor on GitHub
Re: @mention members
« Reply #550 on: November 12, 2017, 06:02:01 AM »
It's a great mod and i'm surprised that Simple Machines haven't adopted it !


You should maybe check out 2.1 before making bold claims like that ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #551 on: November 12, 2017, 06:23:47 AM »
funny you should "mention" that because i was thinking EXACTLY the same thing shortly after posting and asking myself why am i not running my favorite "forumware" (an original term of mine) latest release because it would have to be Simple Machines' flagship offering and why wouldn't they include such a facility ?

i also was wondering if there are plans for an upgrade path to 2.1 from 2.0(.nn) ?

i am defintely going to install the latest beta cut because it's only a test system and i want to use my existing database clone.

i guess my plethora of mods will be a HUGE issue and probably prevent me from actually ever migrating to it but at least it will keep me occupied, enlightened and the bold claims will stop ... :-X
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #552 on: November 12, 2017, 11:51:03 PM »
Yes of course there is an upgrade path. sorry to go off-topic.
[/derail]

yes, this is a very useful mod that has been rapidly adopted by my members and used frequently.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline icarus911

  • Newbie
  • *
  • Posts: 3
Re: @mention members
« Reply #553 on: January 08, 2018, 01:38:20 PM »
8: Undefined index: mentions
File: /var/www/html/Sources/Admin.php
Line: 199

Anyone else have this error?

Offline franhaselden

  • Semi-Newbie
  • *
  • Posts: 12
Re: @mention members
« Reply #554 on: January 10, 2018, 03:28:11 PM »
Just installed but seem to be having a few issues:

1) The admin checkbox "Enable mentions e-mail for current members" doesn't persist on save
2) The mentions don't seem to work. Typing @ will autopredict member names, and when posted they do link to the member, but the mentions panel for my own account shows no mentions and I receive no email.

Offline franhaselden

  • Semi-Newbie
  • *
  • Posts: 12
Re: @mention members
« Reply #555 on: January 11, 2018, 05:13:51 AM »
Follow-up.

Some members don't see the auto-complete popup at all.
Some members type names in with the @ symbol but when posted the name doesn't link or go bold (my <a> css) like expected.
Some members are receiving mentions, others are not. I've been mentioned 5 times now yet I've only ever got one mention on my panel.
I can't seem to pin down any consistent issue, just that the mention feature most regularly doesn't work.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #556 on: January 11, 2018, 05:29:54 AM »
mentions will only display a subset of the full list if the partial member name mentioned is too short.

check your error log because IME, mentions works well but your config and possible unforseen errors may cause such unreiability.

yes, look for errors please ... i assume that you don't get a notifications email and/or the Profile[n] indicator is not displayed.

SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline franhaselden

  • Semi-Newbie
  • *
  • Posts: 12
Re: @mention members
« Reply #557 on: January 11, 2018, 07:32:05 AM »
I can't see any error that pertains to the mentions mod.

It isn't a case of too short names. For example, my username is Francesca and even typing the full name out some members do not see any pop-up. Also, even if they just post @Francesca without the pop-up, should the mentions mod not still ping the mention once the post is published? It seems to for some people, but not for others.

It works intermittently. I did once see the [] notification in the profile banner, and also have one mention listed on my Mentions page. But that is it, just the once. Other members have more success and others are never able to post mentions nor see them themselves.
« Last Edit: January 11, 2018, 07:46:30 AM by franhaselden »

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,185
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: @mention members
« Reply #558 on: January 11, 2018, 07:53:04 AM »
no - the popup MUST run as it generates the BBCode with the member's id contained within and NOT the member's name !

otherwise you have to do it manually and that involves the tedious lookup of the member's id from the database or member list AND needs to be inserted into the BBCode.

as an admin, go and hit Modify on the posts that are you think might be causing this unreliability - you can inspect the post for the correct BBCode generation.

when you select the member name from the javascript popup, it should add a blank character also.

if all is well so far then i can't help you further and you need to wait for the mod writer or someone with more knowledge on this than myself.

i hope this helps.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline franhaselden

  • Semi-Newbie
  • *
  • Posts: 12
Re: @mention members
« Reply #559 on: January 11, 2018, 08:57:37 AM »
Quote
no - the popup MUST run as it generates the BBCode with the member's id contained within and NOT the member's name !

That's weird. I just tested this out. I wrote a member name like @member. The pop-up showed up, but I did not click it. When I posted, the username had been capitalised to @Member (as the user's name does indeed look) and links to their profile. So is it not based on the click of the pop-up, just that the pop-up at least shows?

I can see that several members have tried to mention me but indeed they are not links when I inspect. However these are the members that are reporting when they search @Francesca that no pop-up shows up so obviously it's that part of the mod that is not kicking off for some members. I wonder if it's something to do with their system specs. Do you know of any part of the mod that might require modern browsers, perhaps some are running older browsers. Though most are on Chrome or Firefox which should be evergreen. I will investigate further.

Also, is it correct you cannot mention yourself? I have a few times tried writing @Francesca myself. I can select my name form the pop-up and confirm that the name when posted then converts to my member ID instead. However, I don't see this mention. Is this deliberate.