Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Mentions question
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 17, 2016 - 6:07 am

This FAQ will give you more information on using the console: https://simple-press.com/docum.....r-console/

But in this case, Ike actually posted the error text in post #4 of this thread,

andy-signature.png
YELLOW
SWORDFISH
Avatar
Wendell
Member
sp_UserOfflineSmall Offline
Feb 10, 2016 - 4:58 pm

hi @ike @yellow-swordfish 

 

this was the error message (why the mention auto-complete won't show when the bpchat plugin is active) --> 

TypeError: this.indexOf is not a function
Array.prototype.remove()
bpchat-ajax.js:13
m.access()
jquery.js:4
.attr()
jquery.js:5
AutoComplete.prototype.process()
plugin.min.js:1
.proxy/e()
jquery.js:2
tinyMCEPreInit.mceInit.postitem.mentions.source/<.success()
kabarangay-attendance-chatting-section:1662
m.Callbacks/j()
jquery.js:2
m.Callbacks/k.fireWith()
jquery.js:2
x()
jquery.js:5
.send/b()
jquery.js:5

 

what do you think?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2016 - 1:26 am

I dont see a link to your site?  we could check for simple js conflict... more than likely an older version of jquery or jquery ui is being loaded by the chat plugin...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2016 - 2:53 am

It might be worth you taking a look at this FAQ as well: https://simple-press.com/docum.....-conflict/

It is probable - although as Mr Papa said without seeing your site we can't be sure - that this is the problem. We have seen this with other chat plugins and in fact have another support issue at the moment to do with one called 'arrowchat' which is guilty of the force loading described in the FAQ.

If you find that this is the problem - then by all means ask the plugin authors to read it. It is very easy to make things compatible but using the proper WP API and standards.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Wendell
Member
sp_UserOfflineSmall Offline
Feb 11, 2016 - 10:31 pm

hi! the author of the chat plugin was able to fix it, so everything's good now.

small issue is users that have already been deleted are still appearing in the auto-complete list - so when you click the name it comes out as undefined. how can i purge the list so only active/current users appear?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 11, 2016 - 10:45 pm

it pulls the users from the database... so doubt they have been deleted... or if you deleted them, they were not deleted via the wp api... which means you might have mismatch between wp users and supplemental sp user info...  when wp deletes a user, it notifies plugins so they can also remove any extra info...

how many rows in wp users table in database?  how many in sfmembers table in database?

Avatar
Wendell
Member
sp_UserOfflineSmall Offline
Feb 11, 2016 - 10:58 pm

there's 11 in WP users, 24 in SF members... do i have to delete them manually?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2016 - 12:51 am

so how did you delete the wp users? through the wp admin panel or api?  then they would be removed from simple press... if you removed otherwise, no way for plugins to know they were deleted...

you will have to compare the tables...  in the wp users table, there is an ID column... that will correspond to the user_id column in the sfmembers table...  so if the user_id column does not match and ID column, you can remove that particular sfmembers row...

and uses should only be deleted through the wp api...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625