EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: SocialPop Modal (jQuery) is not working  (Read 8999 times)

0 Members and 1 Guest are viewing this topic.

Offline desi4um

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
SocialPop Modal (jQuery) is not working
« on: July 20, 2012, 02:03:41 pm »
I have installed and integrated ezPortal to our existing SMF 2.0.2 site. It is great portal in terms of customization, ease of maint etc.

I need expert help to figure out why HTML code in HTML ezBlock for ScoialPop is not working whereas same is working as html standalone file.

Please find the code i am using and please suggest your advice. Thanks in advance.

Code: [Select]

<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script>
  !window.jQuery && document.write('<script src="js/jquery.js"><\/script>')
</script>
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script src="http://platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="js/jquery.socialmodal.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/socialmodal.css">
<script language="javascript">
$(function() {
$('body').socialmodal({
uniqueName: 'autoloadmodal',
subtitle: 'C\'mon, try to share and then try other examples.',
plusone: 'http://forum.so1vn.vn',
count: 0,
manualClose: true,
});

//look at special styling
$('body').socialmodal({
uniqueName: 'examplepremium',
title: 'Premium content',
content: 'You can see there: <ul><li><strong>special CSS styling</strong></li><li>advanced callback<ul><li>share this and you will see premium content</li><li>refresh page - text will be visible because callback is set to call after document loads.</li></ul></ul><strong>Isn\'t that awesome?</strong>',
facebook: 'http://www.facebook.com/profile.php?id=00000000',
plusone: false,
twitter: 'pixelshub',
onclick: '#premium',
afterDocReady: true,
callback: function(success) {
if (success==true) {
$('#message').html('It\'s not a magic, it\'s jQuery Social Modal Box plugin!').slideDown(2000);
$('#premium').hide();
}
},
});
$('body').socialmodal({
uniqueName: 'exampledownload',
title: 'Download',
subtitle: 'Pay with tweet - tweet or wait',
count: 60,
facebook: false,
plusone: false,
onclick: '#download',
callback: function(success) {
window.location.href = 'img/thumb.jpg';
},
});
});
</script>

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: SocialPop Modal (jQuery) is not working
« Reply #1 on: July 22, 2012, 08:00:13 pm »
Any errors or a link to a page where you have the code at?
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline desi4um

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: SocialPop Modal (jQuery) is not working
« Reply #2 on: August 09, 2012, 10:39:23 am »
It was probably the code was not right to work as HTML...

Changed the code and now it is working fine....Thanks for your kind attention.

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
12596 Views
Last post December 01, 2008, 10:59:09 pm
by petro
1 Replies
6745 Views
Last post April 18, 2009, 01:30:32 pm
by mghq
11 Replies
16809 Views
Last post December 23, 2009, 08:06:53 pm
by swampysc
7 Replies
11475 Views
Last post March 17, 2012, 05:04:41 pm
by jcarv
10 Replies
15361 Views
Last post October 09, 2014, 10:49:33 am
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal