Page 1 of 2 12 LastLast
Results 1 to 10 of 11
    1. jQuery Info Content module Details »»

      jQuery Info Content module

      Version: , by (New Pligger/Coder) spuavick is offline
      Developer Last Online: Apr 2011 Show Printable Version Email this Page
      Pligg Version: Unknown Rating:  Installs: 0
      Released: 09-30-2009 Last Update: Never Downloads: 35
      Not Supported

      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


      Show Your Support

      • This download may not be copied, reproduced or published elsewhere without author's permission.
  1. #2
    Constant Pligger prorock's Avatar
    Joined
    Jun 2009
    Posts
    125
    Thanks
    Received:0
    Given: 0
    demo please

  2. #3
    New Pligger/Coder spuavick's Avatar
    Joined
    Aug 2009
    Posts
    11
    Thanks
    Received:0
    Given: 0
    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 Attached Images

  3. #4
    New Pligger/Coder spuavick's Avatar
    Joined
    Aug 2009
    Posts
    11
    Thanks
    Received:0
    Given: 0
    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'
    	});

  4. #5
    Senior Member mwwoj's Avatar
    Joined
    Nov 2008
    Posts
    144
    Thanks
    Received:0
    Given: 0
    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?

  5. #6
    New Pligger/Coder spuavick's Avatar
    Joined
    Aug 2009
    Posts
    11
    Thanks
    Received:0
    Given: 0
    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'
    			});
    		}
    	});
    }

  6. #7
    Senior Member mwwoj's Avatar
    Joined
    Nov 2008
    Posts
    144
    Thanks
    Received:0
    Given: 0
    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, :-)

  7. #8
    New Pligger/Coder spuavick's Avatar
    Joined
    Aug 2009
    Posts
    11
    Thanks
    Received:0
    Given: 0
    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;
    		   });
    	});

  8. #9
    Senior Member mwwoj's Avatar
    Joined
    Nov 2008
    Posts
    144
    Thanks
    Received:0
    Given: 0
    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!

  9. #10
    New Pligger/Coder spuavick's Avatar
    Joined
    Aug 2009
    Posts
    11
    Thanks
    Received:0
    Given: 0
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Can anyone help with the Jquery Module???
    By pacifica in forum Questions & Comments
    Replies: 1
    Last Post: 07-10-2010, 03:15 PM
  2. Module Request: A jquery Featurify
    By oobie11 in forum Questions & Comments
    Replies: 9
    Last Post: 01-29-2010, 02:28 AM
  3. jQuery Standalone Pligg Module
    By ChuckRoast in forum Questions & Comments
    Replies: 16
    Last Post: 10-19-2009, 12:05 AM
  4. How to modify a module to use jQuery Plugin?
    By gjrb29 in forum Questions & Comments
    Replies: 3
    Last Post: 05-24-2009, 03:07 AM
  5. some help and info needed for new module
    By mcniac in forum Questions & Comments
    Replies: 0
    Last Post: 12-01-2008, 04:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg