Solved: 1 Year, 1 Month, 3 Weeks ago xThreads & MentionMe connect?
#9
Solved: 1 Year, 1 Month, 3 Weeks ago
One alternative would be the following (very similar to the above).

Edit the custom thread field. Locate the Use Custom Input HTML setting and set to Yes.

In the new text area add an ID element to the HTML <input /> tag. Like so:
<input type="text" class="textbox"{NAME_PROP}{MAXLEN_PROP}{WIDTH_PROP_SIZE}{TABINDEX_PROP}{REQUIRED_PROP} value="{VALUE}" id="xthreads_custom_field_mentions" />

Open file /mybb/jscripts/MentionMe/autocomplete.js.

Find:
			$shoutbox = $('.panel > form > input[class="text"]');

Replace to:
			$shoutbox = $('.panel > form > input[class="text"]'),
			$xt_custom_field = $('#xthreads_custom_field_mentions');

Find:
		if ($shoutbox.length) {
			$shoutbox.prop("id", "dvz_shoutbox_input");
			new TextareaInterface("dvz_shoutbox_input");
		}

Add after:
		if ($xt_custom_field.length) {
			new TextareaInterface("xthreads_custom_field_mentions");
		}

Basically we are directly assigning an ID, instead of a more dynamic select of the element which probably failed for you.
Reply


Messages In This Thread
xThreads & MentionMe connect? - by ThistleProse - 2020-10-06, 09:39 AM
RE: xThreads & MentionMe connect? - by Omar G. - 2020-10-06, 11:29 AM
RE: xThreads & MentionMe connect? - by Omar G. - 2020-10-07, 06:56 AM
RE: xThreads & MentionMe connect? - by Omar G. - 2020-10-08, 04:50 AM
RE: xThreads & MentionMe connect? - by Omar G. - 2020-10-08, 10:25 PM
RE: xThreads & MentionMe connect? - by Omar G. - 2020-10-08, 10:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)