Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to use Jquery Hovercard in Socialengine framework

I am using jquery plugin: http://designwithpc.com/Plugins/Hovercard#demo

everything works fine in my local system. but I don't know how to use the same in the socialengine framework.

can anyone help me where I can keep js file I have two js file?

  1. jquery.min.js
  2. hovercard.js

How to include and use it in Activity module exact location is bellow,

activityviewsscripts_activityText.tpl

You can also see the page here: http://demo-se.spur-i-t.com/ . I want to use under term What's new when hovering over profile image.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
281 views
Welcome To Ask or Share your Answers For Others

1 Answer

First off, jQuery and Social Engine don't always play nice. SocialEngine comes with Mootools, so using it will make your life a bit easier. That said, you can add reference to your JS files into: applicationmodulesCorelayoutsscriptsdefault.tpl.

Then you will find that you have namespace conflicts between jQuery and Mootools. To resolve this you will need to change the namespace of all resulting jQuery by adding the following line at the head of the same file.

var $j = jQuery.noConflict();

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...