

![]() |
| | Thread Tools |
jQuery Info Content module | |||||
|
Developed by spuavick Developer Last Online: Apr 2011
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
}) IMPORTANT You must have installed jQuery 1.3.2 to use this module. Download Now
Show Your Support
|
Similar Downloads | ||||
| Download | Developer | Category | Replies | Last Post |
| jQuery Login Panel | spuavick | Free Modules | 9 | 01:36 PM 02-19-2011 |
| Comments |
| |||
|
demo please
|
| |||
|
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. Last edited by spuavick; 09-30-2009 at 08:28 PM. |
| |||
|
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'
}); |
| |||
| Quote:
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? |
| |||
|
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'
});
}
});
} |
| |||
| Quote:
I could pay/donate via chipin, paypal please answer via PM, :-) |
| |||
|
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;
});
}); example: Code: $(this).infoContent({
title: 'Photo', // you can change this
info: '<img src="'+url+'"/>',
footer: '' // some change in footer,
w: 800
}); 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" 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 08:22 PM. |
| |||
| Quote:
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:
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:
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! |
| |||
| Quote:
The file jquery.infocontent-min.js you find in modules/jquery_infoContent/js/ directory Quote:
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;">»</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:
open the file /modules/upload/templates/upload_thumb.tpl in line 94, and 96 to link to Code: <a href =(...) Code: <a class = "upload-img" href = (.. .) 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;
});
}); and do not need any more philosophy here![]() thanks a lot |
![]() |
| 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 | 434 | 02-09-2012 08:54 PM |
| Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 | redwine | Questions and Comments | 11 | 12-20-2010 04:18 PM |
| Sphere Related Content Module | chuckroast | Modules for Sale | 5 | 03-02-2010 10:27 AM |
| jQuery Standalone Pligg Module | chuckroast | Questions and Comments | 16 | 10-19-2009 04:05 AM |
| New Module Content Plugin (Beta) Wikipedia and Media plugin | grusha | Free Modules | 6 | 11-24-2008 02:00 PM |