trying to fix Display a preview of the user profile on hover
3 posters
Page 1 of 1
trying to fix Display a preview of the user profile on hover
i been trying to use this javascript from http://fmdesign.forumotion.com/t404-display-a-preview-of-the-user-profile-on-hover#3246and its not working:
- Code:
$(function() {
var links = $('a[href^="/u"]').filter(function() {
if (this.firstChild && this.firstChild.tagName) {
if (this.firstChild.tagName != 'IMG') {
return this;
}
} else {
return this;
}
}),
usersinfo = {};
links.tooltipster && links.not('.mentiontag, .tooltipstered').filter(function() {
if (!$(this).closest('#tabs')[0]) {
return this;
}
}).tooltipster({
animation : 'fade',
interactive : true,
contentAsHTML : true,
minWidth : 300,
maxWidth : 300,
delay : 500,
arrowColor : "#EEE",
autoClose : true,
content : 'Loading...',
functionBefore: function(origin, continueTooltip) {
continueTooltip();
var userid = $(this).attr('href').replace(/.*?\/u(\d+).*/, '$1');
if (origin.data('ajax') !== 'cached') {
if (usersinfo[userid] != undefined) {
origin.tooltipster('content', usersinfo[userid]).data('ajax', 'cached');
} else {
$.ajax({
type: 'GET',
url: "/ajax/index.php",
dataType: "html",
data: {
f: "m",
user_id: userid
},
success: function(html) {
usersinfo[userid] = html;
origin.tooltipster('content', html).data('ajax', 'cached');
}
});
}
}
}
});
});
Last edited by Goppyrules on Thu May 18, 2017 11:48 pm; edited 1 time in total
Goppyrules- Forumember
- Posts : 125
Reputation : 2
Language : english
Re: trying to fix Display a preview of the user profile on hover
Ange Tuteur wrote:Hi @Goppyrules,
Please provide a link to your forum so that I may inspect the issue.
http://monarchduelacademy.forumotion.me/forum
Goppyrules- Forumember
- Posts : 125
Reputation : 2
Language : english
Re: trying to fix Display a preview of the user profile on hover
You have a JavaScript error on your forum that's preventing it from working :
Look for a script that contains content similar to the code below and remove it:
Look for a script that contains content similar to the code below and remove it:
- Code:
content="summary"/><meta name="twitter:site"content="@Forumotion"/><meta name="twitter:title"content="Alpha Knights Academy"/><meta property="og:description"content="Here at Alpha Knights Academy, we play Yu-Gi-Oh! Come and join us. Have fun! "/><meta name="title"content="Alpha Knights Academy"/><link rel="stylesheet"href="/0-ltr.css"type="text/css"/><link rel="search" type="application/opensearchdescription+xml" href="/improvedsearch.xml" title="Alpha Knight Forums" /><link rel="search" type="application/opensearchdescription+xml" href="https:$(document).ready(function(){});<script type="text/javascript"src="https://static.criteo.net/js/ld/publishertag.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/mentions/tooltipster.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/mentions/init.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/jquery/cookie/jquery.cookie.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/jquery/toolbar/FAToolbar.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/json/json2.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/jquery/printf/printf.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/jquery/dotdotdot/jquery.dotdotdot-1.5.6.js"></script><script type="text/javascript"src="https://illiweb.com/rs3/98/frm/jquery/notif/FA.js"></script><script type="text/javascript">
Re: trying to fix Display a preview of the user profile on hover
it works now. thank you for your help. problem solved.
Goppyrules- Forumember
- Posts : 125
Reputation : 2
Language : english
Re: trying to fix Display a preview of the user profile on hover
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Display a Preview of Groups on Hover
» Center a User's Profile Display During Posts
» Post Profile Appear On Hover
» Profile avatar on Hover
» Profile Field On Hover
» Center a User's Profile Display During Posts
» Post Profile Appear On Hover
» Profile avatar on Hover
» Profile Field On Hover
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum