Support Forum

Mentions question

WE Wendell
Wendell
Member

i just installed mentions and have 2 questions.

1. how do i style it like the one here? coz mine is just plain.

2. how come there’s no username appearing after i type ‘@’?

17 Answers

New Answer

IK Ike
Ike
Member

Hey Wendell,

My guess would be there is some kind of conflict between your WP theme and forum CSS. Will gladly take a look but of course for that we would need access. If you could PM me, Yellow Swordfish and Mr Papa with a link to your site, login details and a brief description of the problem with a link to this thread one of us can take a look.

As for styling, not sure what you mean and it’s hard to tell from the screenshot but we can take a quick look at that too..

IK Ike
Ike
Member

OK – For the future, please when you private message an admin include all admins. We are in different timezones and have different abilities so it’s always useful to include all three, it will get looked at quicker in most cases and if one of us doesn’t know the answer the other might!

In this case, the reason no names are appearing seems to be because it’s getting stuck in loading state. Checking the console I can see three conflicts – one with BP chat and one with the mentions plugin. My guess would be this is somewhat related although I don’t know for sure.

On the mentions plugin we are getting:

TypeError: this.editor.__bindings is undefined

Which basically means it’s never going to load. The conflict should be resolved to rule it out – Are you able to disable BP chat?

WE Wendell
Wendell
Member

it was indeed bpchat. 

bummer though as i also need that feature badly…

IK Ike
Ike
Member

I’ve had a quick look around and the only plugin I can find called bpChat is this one which appears to be in beta still.

I would suggest talking to the plugin developers directly. Since it’s still in beta you’d hope they’d be interested in fixing any problems, however conflicting with a forum plugin that isn’t bbPress could put them off!

WE Wendell
Wendell
Member

Ike said
I’ve had a quick look around and the only plugin I can find called bpChat is this one which appears to be in beta still.

I would suggest talking to the plugin developers directly. Since it’s still in beta you’d hope they’d be interested in fixing any problems, however conflicting with a forum plugin that isn’t bbPress could put them off!

this is the bpchat plugin that ive been using –> http://codecanyon.net/item/wordpress-buddypress-users-chat-plugin/10776067

if i get to talk to the developer, what should i tell him? 

YS Yellow Swordfish
Yellow Swordfish
Member

I would just send them the errors being reported in the console for starters…

WE Wendell
Wendell
Member

Yellow Swordfish said
I would just send them the errors being reported in the console for starters…

where can i find the errors? sorry noob question.

IK Ike
Ike
Member

The simplest way – using Firefox for example (although other browsers have their own tools) is to right click on the page and choose ‘Inspect Element’, then choose the ‘Console’ tab.

Make sure the ‘JS’ box is set to show errors and not warnings, then you might need to refresh the page, but keep the browser console open and you should see errors appear.

YS Yellow Swordfish
Yellow Swordfish
Member

This FAQ will give you more information on using the console: https://simple-press.com/documentation/codex/faq/how-to/how-to-use-your-web-browser-console/

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

WE Wendell
Wendell
Member

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?

MP Mr Papa
Mr Papa
Member

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…

YS Yellow Swordfish
Yellow Swordfish
Member

It might be worth you taking a look at this FAQ as well: https://simple-press.com/documentation/codex/faq/troubleshooting/what-is-this-jquery-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.

WE Wendell
Wendell
Member

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?