Advertisement:

Author Topic: @mention members  (Read 186647 times)

Offline zapiy

  • Jr. Member
  • **
  • Posts: 251
Re: @mention members
« Reply #380 on: February 11, 2015, 02:52:31 PM »
Is ther no longer any support for this?

Offline PokémonS

  • Jr. Member
  • **
  • Posts: 313
    • Pokémon Stars Indonesia
Re: @mention members
« Reply #381 on: February 18, 2015, 10:58:59 AM »
Great mod, thanks! 'w'
Just a little wish. Just like Messages (x), I want Profle (x) and Mentions (x) gets bold please. 'w'



Still looking for this. 'w'
きみと手をつなごう つらいときはもっと
ゼロからはじめよう ほら ほら 手をつなごう
みんな手をつなごう つらいときはもっと
力を合わせよう ほら ほら 手をつなごう

Offline Gluz

  • Sr. Member
  • ****
  • Posts: 985
  • Gender: Male
Re: @mention members
« Reply #382 on: February 19, 2015, 03:05:24 PM »
I noticed that when a user gets a lot of mentions and it's paginated the base url of the mentions pages are wrong, and find the problem in /Sources/mentions.php:

Original:
Code: [Select]
// Set the options for the list component.
$listOptions = array(
'id' => 'mentions_list',
'title' => sprintf($txt['mentions_profile_title'], $context['member']['name']),
'items_per_page' => 20,
'base_href' => $scripturl . '?action=profile;area=tracking;sa=user;u=' . $memID,
'default_sort_col' => 'time',
'get_items' => array(
'function' => 'list_getMentions',
'params' => array(
'lm.id_mentioned = {int:current_member}',
array('current_member' => $memID),
),
),

Fixed:
Code: [Select]
// Set the options for the list component.
$listOptions = array(
'id' => 'mentions_list',
'title' => sprintf($txt['mentions_profile_title'], $context['member']['name']),
'items_per_page' => 20,
'base_href' => $scripturl . '?action=profile;area=mentions;u=' . $memID,
'default_sort_col' => 'time',
'get_items' => array(
'function' => 'list_getMentions',
'params' => array(
'lm.id_mentioned = {int:current_member}',
array('current_member' => $memID),
),
),

Just notice that the area is not tracking, is mentions and that way the pagination in mentions can be accessible.
Need help with PHP, HTML, CSS, Themes or MODs?

Quote
Think in spanish, habla en inglés.

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: @mention members
« Reply #383 on: March 06, 2015, 07:19:13 AM »
Found a bug. If you have more than one page of mentions on your profile you cannot click on page 2 or 3, etc. It takes you to "track user". You can see where it is linking me to when I hover my mouse over page 3. Page 2 is the same only it says start = 20




Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: @mention members
« Reply #384 on: March 06, 2015, 07:29:37 AM »
@Kimmie, the fix is the post before yours...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: @mention members
« Reply #385 on: March 10, 2015, 01:13:26 AM »
@Kimmie, the fix is the post before yours...

Thanks :). I was in a hurry when I posted mine so I was in and out


EDIT: Now I have another problem. Pages 2 and 3 are now blank





I copied and pasted his code, as you can see here:


Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,267
  • Gender: Female
Re: @mention members
« Reply #386 on: March 14, 2015, 08:29:43 AM »
Brazilian Portuguese translation attached here.

And a suggestion: This mod becomes much more useful if you don't have the @ in the post. This way you could write a normal phrase with the name and have a mention in it, and also use the @ if you want to :)

Offline Sorunome

  • Semi-Newbie
  • *
  • Posts: 30
    • Sorunome on GitHub
Re: @mention members
« Reply #387 on: March 16, 2015, 07:23:07 AM »
Suggestion: don't have @mentions parse inside of [code] tags

Offline TLMB

  • Semi-Newbie
  • *
  • Posts: 25
    • @TheVoidTLMB on Twitter
    • TLMB
Re: @mention members
« Reply #388 on: March 23, 2015, 08:25:05 AM »
Just a quick...

THANK YOU!

This mod rocks.

Offline ashter

  • Newbie
  • *
  • Posts: 7
Re: @mention members
« Reply #389 on: March 31, 2015, 04:55:42 AM »
while using this mod @mentions,
we have encounted a problem with topics not displaying, when an existing topic is cliked on it just displays a blank white page,
the same effect also applies to trying to create a new topic too,

the error message for this is, '"fatal error: Call to undefined function mentions_post_scripts() in /mnt/vol4/home/f/l/flygil/public_html/flygility/Sources/Display.php on line 70"

the relevant part of the sources/display.php

70  mentions_post_scripts();
71 // What are you gonna display if these are empty?!
72 if (empty($topic))
73 fatal_lang_error('no_board', false);

(full display.php script attached)

which points to it being related to the plugin "@mentions"
and indeed, when this plugin was unistalled everything worked fine.

it was working ok, but suddenly started giving the error mentioined above,
no changes were made to any scripts or mods etc before the errors started,

the only thing i can track down is to one member adding a mention to an existing post?

my question is, what needs changing in order for this mod to work ?

using smf 2.09

with these mods added

1.    RSS Feed Icon    1.1    
2.    @mention members 1.1.2    
3.    httpBL    2.5.1    
4.    InLine Attachments    
5.    SMF Quiz    1.1.0    
6.    List Of Users In Topic or Board 1.1    
7.    Stop Forum Spam    1.0    
8.    Add Social Media Icons To Profiles  1.2.0    
9.    Board Icons    1.0    
10.    video bbc   
11.    SimplePortal    2.3.6    
12.    Custom Copyright    1.0.4    
13.    Hide Content    1.1.3
14.    iurl Bbc [iurl]    1.0    
15.    FixCopy    2.0    
16.    Socialize    1.8    
17.    Remove SMF Logo    1.4    
18.    FlowPlayer    1.2    
19.    ENotify    2.0.2    
20.    OS & Browser Detection 1.5    
21.    Drafts    2.1    
22.    Default Avatar    2.3    
23.    SMF Gallery Pro    7.0.2    
24.    Users Online Today    2.1    
25.    URL Popup    1.0.2    
26.    Super Simple Thread Tags    1.1a    
27.    6 Custom buttons / tabs with Sub Menus (4) 0.5    
28.    Like Posts    2.0.3    
29.    Add Favicon.ico Support 1.101    
30.    Disable Right Click    4.1.2    
31.    Add Facebook Like, Tweet, and Google +1 1.0.3a    
32.    SMF Arcade    2.6    
33.    Do not enter    1.1

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,267
  • Gender: Female
Re: @mention members
« Reply #390 on: March 31, 2015, 05:46:23 AM »
I can confirm this happens, though I haven't seen it myself, I've had a member say a specific topic (with many mentions) sometimes opens a blank page. The only mod I have in common with ashter besides mentions is Drafts, too, and mentions is my most recently installed one.

I've been having the same topic lock itself randomly, but I'm not sure yet if its related.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: @mention members
« Reply #391 on: April 01, 2015, 10:15:11 AM »
@Fortytwo: You need to check your PHP error logs. It might happen that your available memory for PHP is exhausted.

Although I remember testing this MOD when it was submitted and posted like 100+ mentions

@ashter: was the MOD correctly installed? It seems to me that there is something missing, as you have an undefined function that the MOD clearly should add...

* margarett finds funny the usage of the @mentions here ehehehehe

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline ashter

  • Newbie
  • *
  • Posts: 7
Re: @mention members
« Reply #392 on: April 01, 2015, 12:00:59 PM »
@Fortytwo: You need to check your PHP error logs. It might happen that your available memory for PHP is exhausted.

Although I remember testing this MOD when it was submitted and posted like 100+ mentions

@ashter: was the MOD correctly installed? It seems to me that there is something missing, as you have an undefined function that the MOD clearly should add...

* margarett finds funny the usage of the @mentions here ehehehehe

i wondered if that may be the case, but don't know enough about php to figure out what the causes may be myself:-[

anyway, i uninstalled it and deleted it, and tried again with a fresh install, but got the same results :(
so having uninstalled and deleted it again, i download a fresh copy of the mod from the smf site,
uploaded and installed it, and it is now working !
seems like my first copy of the mod was corrupted in some way or the install did not go as plannned, but the fresh copy worked as it should have  :)

many thanks for the advice  :)

i'm beginning to think that the number of forums out there would drastically reduce in numbers if it were not for the great support found here on the smf community boards ::)  ;D
its very much appreciated, thanks.

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,267
  • Gender: Female
Re: @mention members
« Reply #393 on: April 01, 2015, 01:14:53 PM »
@Fortytwo: You need to check your PHP error logs. It might happen that your available memory for PHP is exhausted.

Although I remember testing this MOD when it was submitted and posted like 100+ mentions

@ashter: was the MOD correctly installed? It seems to me that there is something missing, as you have an undefined function that the MOD clearly should add...

* margarett finds funny the usage of the @mentions here ehehehehe
There are probably hundreds of mentions all over the forum already too, but that specific topic has a ton in the same post/page, some of which should not work (they have characters which are not supported yet, and people are using the base code + id). I haven't heard anyone else complain about any other topic, at least, and that one has been acting weird already.

Nothing relevant shows on smf logs, and on php logs there's just a bunch of unrelated "undefined index" errors. I'm leaving this one aside for the time being, I have no idea what could be causing one specific topic to lock itself or open a blank page, it isn't on logs like moderation either. Specially when it happens so randomly, been over a week without a case now.

:P

Offline LocMax

  • Semi-Newbie
  • *
  • Posts: 11
Re: @mention members
« Reply #394 on: April 03, 2015, 05:45:36 AM »
Erm, I am unable to use the mention feature on members who have symbols in their name like [] () and such. Any fix for it?

EDIT: eh, is this mod the same as the one from smfpacks? We bought the one from there, so... is there any difference?

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: @mention members
« Reply #395 on: April 03, 2015, 04:17:24 PM »
Erm, I am unable to use the mention feature on members who have symbols in their name like [] () and such. Any fix for it?

EDIT: eh, is this mod the same as the one from smfpacks? We bought the one from there, so... is there any difference?

Version1-1-3 is the newest version that will work with symbols like the examples you posted. This link will direct you right to the download-  http://www.simplemachines.org/community/index.php?topic=522005.msg3766946#msg3766946

This is similar to the smfpacks one, but they aren't the same. The differences are that the smfpacks mentions mod will show the person's avatar when using the autosearch; and in regards to being notified of being mentioned- this mod will have a notification in your profile tab, while the smfpacks mod will send you a PM that you were mentioned.

Not sure if the smfpacks mod works with being able to find the above symbols though.

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,267
  • Gender: Female
Re: @mention members
« Reply #396 on: April 03, 2015, 05:36:48 PM »
Erm, I am unable to use the mention feature on members who have symbols in their name like [] () and such. Any fix for it?

EDIT: eh, is this mod the same as the one from smfpacks? We bought the one from there, so... is there any difference?

Version1-1-3 is the newest version that will work with symbols like the examples you posted. This link will direct you right to the download-  http://www.simplemachines.org/community/index.php?topic=522005.msg3766946#msg3766946

This is similar to the smfpacks one, but they aren't the same. The differences are that the smfpacks mentions mod will show the person's avatar when using the autosearch; and in regards to being notified of being mentioned- this mod will have a notification in your profile tab, while the smfpacks mod will send you a PM that you were mentioned.

Not sure if the smfpacks mod works with being able to find the above symbols though.
Ahh, thought the version on the mod site was the most recent. Thanks for that, accents don't work on the version I have :)

And I think the locking problem I have is unrelated to this one, after all. I'll go notify the other mod author about that one :P But it still doesn't explain the blank pages.

Offline PokémonS

  • Jr. Member
  • **
  • Posts: 313
    • Pokémon Stars Indonesia
Re: @mention members
« Reply #397 on: April 07, 2015, 03:13:46 AM »
Great mod, thanks! 'w'
Just a little wish. I want Profle (x) and Mentions (x) gets bold please. 'w'



Still looking for this. 'w'

Again, still looking for this. 'w'
きみと手をつなごう つらいときはもっと
ゼロからはじめよう ほら ほら 手をつなごう
みんな手をつなごう つらいときはもっと
力を合わせよう ほら ほら 手をつなごう

Offline Professor Sea

  • Semi-Newbie
  • *
  • Posts: 25
    • Endo Labs
Re: @mention members
« Reply #398 on: April 07, 2015, 05:20:04 AM »
This seems like an excellent mod, how did I not notice it sooner?  ;D

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: @mention members
« Reply #399 on: April 11, 2015, 01:12:50 PM »
@Kimmie, the fix is the post before yours...

Thanks :). I was in a hurry when I posted mine so I was in and out


EDIT: Now I have another problem. Pages 2 and 3 are now blank





I copied and pasted his code, as you can see here:




Any fix for this yet? Thanks