Resource icon

[bd] Tag Me for XenForo 1.3 3.2.0

No permission to download
Its a bug in this add-on. When it checks for template name, it does strict check without considering that class attribute might contain additional class names.

In tinymce_plugin.js replace
Code:
                    if (pageTemplateTitle == XenForo.bdTagMe_enabledTemplates[i]) {
with
Code:
                    if (pageTemplateTitle.indexOf(XenForo.bdTagMe_enabledTemplates[i]) >= 0) {
 
or better yet, replace it with
Code:
                    if ($pageContentNode.hasClass(XenForo.bdTagMe_enabledTemplates[i])) {
and then delete this line few lines above
Code:
                var pageTemplateTitle = $pageContentNode.attr('class');
 
Its a bug in this add-on. When it checks for template name, it does strict check without considering that class attribute might contain additional class names.

In tinymce_plugin.js replace
Code:
                    if (pageTemplateTitle == XenForo.bdTagMe_enabledTemplates[i]) {
with
Code:
                    if (pageTemplateTitle.indexOf(XenForo.bdTagMe_enabledTemplates[i]) >= 0) {
Yep, this has fixed it. Had to do it in both files (including the one in the full folder as well)
 
When i tag our admin group "@Administrator", then its linked to /members/administrator.0/. "@Moderator" is linked to /members/moderator.0/.

When I click on the links, my browser opens a xenforo error page under page "members" with text: "This was posted by a guest who does not have a profile to view."

It should better show all members of tagged group in a overlay, like it does at a post with more than 4 likes, if you know what i mean. i can post a screenshot if needed to understand how it should work.
 
Last edited:
When i tag our admin group "@Administrator", then its linked to http://swisssmp.ch/members/administrator.0/. "@Moderator" is linked to http://swisssmp.ch/members/moderator.0/.

When I click on the links, my browser opens a xenforo error page under page "members" with text: "This was posted by a guest who does not have a profile to view."

It should better show all members of tagged group in a overlay, like it does at a post with more than 4 likes, if you know what i mean. i can post a screenshot if needed to understand how it should work.
Administrator and Moderator when tag has no link, cannot be click.
 
@Evina, on my website, it's tagged AND has mentioned link (= is clickable).

Probably you haven't set in usergroup "administrator" the option checkbox to be tagable?
 
@Evina, on my website, it's tagged AND has mentioned link (= is clickable).

Probably you haven't set in usergroup "administrator" the option checkbox to be tagable?
Are you using the latest version?
It's not clickable on mine.
I enable admin/mods to be tagable.
 
or better yet, replace it with
Code:
                    if ($pageContentNode.hasClass(XenForo.bdTagMe_enabledTemplates[i])) {
and then delete this line few lines above
Code:
                var pageTemplateTitle = $pageContentNode.attr('class');
Thansk Arty, nice fix. This will be included in the next update.

When i tag our admin group "@Administrator", then its linked to http://swisssmp.ch/members/administrator.0/. "@Moderator" is linked to http://swisssmp.ch/members/moderator.0/.

When I click on the links, my browser opens a xenforo error page under page "members" with text: "This was posted by a guest who does not have a profile to view."

It should better show all members of tagged group in a overlay, like it does at a post with more than 4 likes, if you know what i mean. i can post a screenshot if needed to understand how it should work.
The original admin and mod user group is "Administrative" and "Moderating". Are you using user groups imported from vBulletin? Anyway, user group tagging should become a clickable link with a popup as you described. The link goes to http://domain.com/xenforo/members/tagged/user_group/3
 
Hey xfrocks, would it be possible for you to render the links via the username helper?
 
Post anyway with a correct name to verify the tagging please?
Your javascript may be cached, try refreshing too.
Yes, the @xfrocks after posting will work, but not while it's being posted.
I'll watch to see if it shows up later as all my JS are cdn cached by cloudfront.
 
Top Bottom