jQuery Info Content module

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools
jQuery Info Content module
Developed by spuavick spuavick is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page
Designed for: Unknown
Released: 09-30-2009
Last Update: Never
Installs: 0
Not Supported by Author
This module allows you to display information windows with the specified title and content centered both horizontally and vertically against the browser window
example of self srypcie jQuery (basic options):
Code:
$(this).infoContent({
	title: 'Title',
	info: 'Some content',
	fade: true, // true or false, if true, adds a dark background will be transparent, if false, background is not
	footer: 'some info in the footer window',
	akcja: 'start' // call window
})
This module was used in the latest version of the module jQuery Login Panel.

IMPORTANT
You must have installed jQuery 1.3.2 to use this module.

Download Now

File Type: zip jquery_infoContent_v1.0.zip (30.8 KB, 124 views)

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post
jQuery Login Panel spuavick Free Modules 7 06:57 AM 03-10-2010

Comments
  #2 (permalink)  
Old 09-30-2009, 04:34 PM
Constant Pligger
Pligg Version: 1.0.1
Pligg Template: thestandard
 
Join Date: Jun 2009
Posts: 125
Send a message via Yahoo to prorock
demo please
Reply With Quote
  #3 (permalink)  
Old 09-30-2009, 05:22 PM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
i've only screens not demo available yet, at the one screen is used jQuery InfoContent with jQuery Login and the second screen jQuery InfoContent in action by clicking on the button to vote, where the votes had already been placed by the user.
Demo will be soon when I created own style for Pligg.
Attached Images
File Type: png jquery_login_with_jquery_infoContent.png (123.4 KB, 231 views)
File Type: png jquery_infoContent.png (120.0 KB, 139 views)

Last edited by spuavick; 09-30-2009 at 07:28 PM.
Reply With Quote
  #4 (permalink)  
Old 10-01-2009, 06:31 AM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
if you want the system instead of a warning window appeared (alert box) a nice box with the relevant information you need to open the file /templates/xmlhttp.php and change all the function calls alert for example jqAlert, and then at the end of the file, add a function jqAlert:
Code:
function jqAlert(string) {
	var string = string;
	$(this).infoContent({
		title: 'ERROR',
		info: string,
		footer: 'Communication service of the cause of the error. Try to fix the error and try again...',
		fade: true,  // true for opacity background or false for non background
		akcja: 'start'
	});
Reply With Quote
  #5 (permalink)  
Old 10-09-2009, 03:36 PM
Pligg Donor
Pligg Version: 1.0.1
Donation Level 1 
 
Join Date: Nov 2008
Posts: 111
Quote:
Originally Posted by spuavick View Post
if you want the system instead of a warning window appeared (alert box) a nice box with the relevant information you need to open the file /templates/xmlhttp.php and change all the function calls alert for example jqAlert, and then at the end of the file, add a function jqAlert:
Code:
function jqAlert(string) {
	var string = string;
	$(this).infoContent({
		title: 'ERROR',
		info: string,
		footer: 'Communication service of the cause of the error. Try to fix the error and try again...',
		fade: true,  // true for opacity background or false for non background
		akcja: 'start'
	});
Super module!

Hi, could you tell me how to use your module with upload module.
What I mean? When clicking on uploaded picture the picture opens in a new blank page.
How to use your module here to have the full picture opened in a pop-up box?
Reply With Quote
  #6 (permalink)  
Old 10-10-2009, 08:43 AM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
You need to find an entry in the upload module, which refers to an alert, or functions responsible for the display pop-up box, and swap call this function on an own (example uploadBox), create a new feature in which you can use the jQuery method $.get and a callback function.

Example usage:
Code:
function uploadBox() {

	url = 'link_to_upload_module_pop_up_ box';
	parameteres = 'if exists use json method' // ex. ({id:id,option1='some_option', ...});
	
	$.get({url, parameters, 
		function(sResponse) {
			var content = sResponse
			$(this).infoContent({
				title: 'Upload',
				info: content,
				fade: true, // true or false, if true, adds a dark background will be transparent, if false, background is not
				footer: 'some info in the footer window'
			});
		}
	});
}
Reply With Quote
  #7 (permalink)  
Old 10-10-2009, 10:58 AM
Pligg Donor
Pligg Version: 1.0.1
 
Join Date: Nov 2008
Posts: 111
Quote:
Originally Posted by spuavick View Post
You need to find an entry in the upload module, which refers to an alert, or functions responsible for the display pop-up box, and swap call this function on an own (example uploadBox), create a new feature in which you can use the jQuery method $.get and a callback function.

Example usage:
Code:
function uploadBox() {

	url = 'link_to_upload_module_pop_up_ box';
	parameteres = 'if exists use json method' // ex. ({id:id,option1='some_option', ...});
	
	$.get({url, parameters, 
		function(sResponse) {
			var content = sResponse
			$(this).infoContent({
				title: 'Upload',
				info: content,
				fade: true, // true or false, if true, adds a dark background will be transparent, if false, background is not
				footer: 'some info in the footer window'
			});
		}
	});
}
could you do it for me, please

I could pay/donate via chipin, paypal

please answer via PM, :-)
Reply With Quote
  #8 (permalink)  
Old 10-10-2009, 04:50 PM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
add the following code example at the end of the file jquery.infocontent-min.js
Code:
$(function(){
	$(".storycontent a > img").click(function(){
		var a = $(this).parent();
		var url = $(a).attr("href");
		  $(this).infoContent({
				  title: 'Photo', // you can change this
				  info: '<img src="'+url+'"/>',
				  footer: '' // some change in footer
			   });
			   $("div.info").css({"overflow":"hidden"}); // *
			   return false;
		   });

	});
* width of image, if more than 620, will be "cut off" if you change the background image, you can manually set the width of the frame by adding the option w: 800 at the end of the function call infoContent
example:
Code:
$(this).infoContent({
				  title: 'Photo', // you can change this
				  info: '<img src="'+url+'"/>',
				  footer: '' // some change in footer,
				  w: 800
			   });
You can see demo at this page Lewandowski: Nigdy nie marzyłem o grze w Legii - LegiaLive! - Serwis Kibiców Legii Warszawa | wysyp.com
But soon, this message will be deleted
--------------------
Finally, when I tested this with a module video_content have a problem with the link, it would be best to edit the file upload_thumb.tpl and lines 94 and 96 to add links such as a class
Code:
class = "upload-img"
o that the function jQuery would look like this:
Code:
$(function(){
	$("a.upload-img").click(function(){
		var url = $(this).attr("href");
		  $(this).infoContent({
				  title: 'Photo',
				  info: '<img src="'+url+'"/>'
			   });
			   $("div.info").css({"overflow-x":"hidden"});
			   return false;
		   });
	});

Last edited by spuavick; 10-10-2009 at 07:22 PM.
Reply With Quote
  #9 (permalink)  
Old 10-11-2009, 03:00 PM
Pligg Donor
Pligg Version: 1.0.1
 
Join Date: Nov 2008
Posts: 111
Quote:
Originally Posted by spuavick View Post
add the following code example at the end of the file jquery.infocontent-min.js
Thanks for your post!

I have no idea where jquery.infocontent-min.js is, :-(

What upload module you use? Standard one included in 1.0.1? Or PliggMediaMaster (PliggShop)?

Quote:
Originally Posted by spuavick View Post
You can see demo at this page Lewandowski: Nigdy nie marzyłem o grze w Legii - LegiaLive! - Serwis Kibiców Legii Warszawa | wysyp.com
But soon, this message will be deleted
--------------------
Super page! Sure you can delete the link :-) Thanks for sharing!

By the way, I have spotted one nice function on your page. When mouse is on "story summarry" a buttun "Wiecej" (read more?) shows. How have you done it?


Quote:
Originally Posted by spuavick View Post
Finally, when I tested this with a module video_content have a problem with the link, it would be best to edit the file upload_thumb.tpl and lines 94 and 96 to add links such as a class
Code:
class = "upload-img"
o that the function jQuery would look like this:
Code:
$(function(){
	$("a.upload-img").click(function(){
		var url = $(this).attr("href");
		  $(this).infoContent({
				  title: 'Photo',
				  info: '<img src="'+url+'"/>'
			   });
			   $("div.info").css({"overflow-x":"hidden"});
			   return false;
		   });
	});
Sorry, still cannot make it work :-(

As I said before, I am open to pay/donate :-) Please just send me the ready-to-go code :-)

Once more congratulations on your page!
Reply With Quote
  #10 (permalink)  
Old 10-11-2009, 08:05 PM
New Pligger/Coder
Pligg Version: 1.0.1
 
Join Date: Aug 2009
Location: Warsaw/Poland
Posts: 11
Quote:
Originally Posted by mwwoj View Post
I have no idea where jquery.infocontent-min.js is, :-(

What upload module you use? Standard one included in 1.0.1? Or PliggMediaMaster (PliggShop)?
Yes I use for this example a standard module upload for 1.0.1.
The file jquery.infocontent-min.js you find in
modules/jquery_infoContent/js/ directory
Quote:
Originally Posted by mwwoj View Post
By the way, I have spotted one nice function on your page. When mouse is on "story summarry" a buttun "Wiecej" (read more?) shows. How have you done it?
Yes is a read more
is very easy, here you have a sample code I wrote to get this effect, you can customize to your needs:
Code:
$(function(){
	$(".stories").hover(function(){
		$(this).find(".news-body-text span").append('<span class="more" style="background:#7ebe10;padding:1px 3px;margin:1px;color:#fff;font-weight:bold;">więcej <span class="raquo" style="color:#fc4000;">&raquo;</span></span>');
		$(this).find(".news-body-text span a").css({color:"#444"});
	},function(){
		$(this).find(".news-body-text span span.more").remove();
		$(this).find(".news-body-text span a").css({color:"#707070"});
	});
});
Quote:
Originally Posted by mwwoj View Post
Sorry, still cannot make it work :-(

As I said before, I am open to pay/donate :-) Please just send me the ready-to-go code :-)
ok so step by step to lead you how to do it ...

open the file /modules/upload/templates/upload_thumb.tpl in line 94, and 96 to link to
Code:
<a href =(...)
add a class to look like this
Code:
<a class = "upload-img" href = (.. .)
Pligg.tpl then open the file and before the </head> add a simple function
Code:
$(function(){
	$("a.upload-img").click(function(){
		var url = $(this).attr("href");
		  $(this).infoContent({
				  title: 'Photo',
				  info: '<img src="'+url+'"/>'
			   });
			   $("div.info").css({"overflow-x":"hidden"});
			   return false;
		   });
	});
Really needs to work and do not need any more philosophy here
Quote:
Originally Posted by mwwoj View Post
Once more congratulations on your page!
thanks a lot
Reply With Quote
Reply

Tags
jquery, popup window

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Video Plus - Embed Videos from Popular Web Hosts Yankidank Free Modules 288 03-13-2010 01:22 AM
Sphere Related Content Module chuckroast Modules for Sale 5 03-02-2010 09:27 AM
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 8 01-04-2010 07:06 PM
jQuery Standalone Pligg Module chuckroast Questions and Comments 16 10-19-2009 03:05 AM
New Module Content Plugin (Beta) Wikipedia and Media plugin grusha Free Modules 6 11-24-2008 01:00 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development