Thank you for uploading File:MediaWikiFarm Extension Presentation.pdf. However, it currently is missing information on its copyright and licensing status. Wikimedia Foundation, who kindly hosts MediaWiki.org, takes copyright law very seriously. It may be deleted soon, unless we can verify that it has an acceptable license status and a verifiable source. Please add this information by editing the image description page. The page on copyright tags may help you to find the correct tag to use for your file.
User talk:Nicolas NALLET/Flow
This file has been marked for deletion
The file was deleted due to missing information regarding copyright license status.
(Sorry to write in Engilsh)
Hello! This is a final reminder that the Wikimedia Foundation survey will close on 28 February, 2017 (23:59 UTC). The survey is available in various languages and will take between 20 and 40 minutes. Take the survey now.
If you already took the survey - thank you! We won't bother you again.
About this survey: You can find more information about this project here or you can read the frequently asked questions. This survey is hosted by a third-party service and governed by this privacy statement. If you need additional help, or if you wish to opt-out of future communications about this survey, send an email through EmailUser function to User:EGalvez (WMF) or surveys@wikimedia.org. About the Wikimedia Foundation: The Wikimedia Foundation supports you by working on the software and technology to keep the sites fast, secure, and accessible, as well as supports Wikimedia programs and initiatives to expand access and support free knowledge globally. Thank you! --EGalvez (WMF) (talk) 08:24, 24 February 2017 (UTC)
Hello! The Wikimedia Foundation is asking for your feedback in a survey. We want to know how well we are supporting your work on and off wiki, and how we can change or improve things in the future.[1] The opinions you share will directly affect the current and future work of the Wikimedia Foundation. You have been randomly selected to take this survey as we would like to hear from your Wikimedia community. To say thank you for your time, we are giving away 20 Wikimedia T-shirts to randomly selected people who take the survey.[2] The survey is available in various languages and will take between 20 and 40 minutes.
You can find more information about this project. This survey is hosted by a third-party service and governed by this privacy statement. Please visit our frequently asked questions page to find more information about this survey. If you need additional help, or if you wish to opt-out of future communications about this survey, send an email to surveys@wikimedia.org.
Thank you! --EGalvez (WMF) (talk) 21:27, 13 January 2017 (UTC)
- ↑ This survey is primarily meant to get feedback on the Wikimedia Foundation's current work, not long-term strategy.
- ↑ Legal stuff: No purchase necessary. Must be the age of majority to participate. Sponsored by the Wikimedia Foundation located at 149 New Montgomery, San Francisco, CA, USA, 94105. Ends January 31, 2017. Void where prohibited. Click here for contest rules.
ok thanks for replying
Hi Nicolas, in case you're still looking for a solution for this, I managed to tweak the code from version 1.0.1 to be able to display pdf thumbnail in fancyboxthumb correctly (alongside with other types)
This is my change to the code:
if ( !defined( 'MEDIAWIKI' ) )
die( 'This is a MediaWiki extension, and must be run from within MediaWiki.' );
//Register Credits
$wgExtensionCredits['other'][] = array(
'name' => 'FancyBoxThumbs',
'url' => 'http://www.mediawiki.org/wiki/Extension:FancyBoxThumbs',
'author' => '[http://www.gilluminate.com Jason Gill]',
'description' => 'Displays thumbnailed images in a Mac-style "lightbox" that floats overtop of web page. A simple and fancy lightbox alternative',
'version' => '1.0.1'
);
$wgHooks['BeforePageDisplay'][] = 'efBeforePageDisplay';
function efBeforePageDisplay($out)
{
global $wgScriptPath, $wgTitle, $wgRequest;
// Don't load if in the Special namespace (to prevent clobbering Semantic Forms or other extensions that load jQuery).
// Also don't load if we're doing any sort of action on the page.
$action = $wgRequest->getVal("action");
if($wgTitle->getNsText() != "Special" && $action != "formedit")
{
$FBT_Dir = '/extensions/FancyBoxThumbs/fancybox';
//Only load jQuery if for some reason it's not present
$out->addScript('<script type="text/javascript">var jQueryScriptOutputted = false;function initJQuery() {if (typeof(jQuery) == "undefined") {if (! jQueryScriptOutputted) {jQueryScriptOutputted = true;document.write(\'<scr\'+\'ipt type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></scr\'+\'ipt>\');}setTimeout("initJQuery()", 50);}}initJQuery();</script>');
$out->addScriptFile($wgScriptPath.$FBT_Dir.'/jquery.fancybox-1.3.4.js');
$out->addScript('<link rel="stylesheet" href="'.$wgScriptPath.''.$FBT_Dir.'/jquery.fancybox-1.3.4.css" type="text/css" />');
##uses jquery to rewrite the href, rather than traditional php methods that can break the CMS nature of WikiMedia
$out->addScript('<script type="text/javascript">'
.'jQuery.noConflict();'
.'(function($) {'
.'$(document.body).ready(function() {'
.'$("a.image").each(function(){'
.'var img_split1 = $(this).children().first().attr("src").split("/thumb");'
.' if(img_split1[1] == null) { img_split1[1] = img_split1[0]; img_split1[0] = \'\';};' // Not a thumb but a full image
.' var img_type = img_split1[1].substr(img_split1[1].length -4);' // cut the last 4 (!) characters to fetch .jpg and jpeg
.' var img_type_pdf = img_split1[1].substr(img_split1[1].length -7);' // cut the last 7 (!) characters to test if it is pdf thumbnail or not
.' var img_split2 = img_split1[1].split(img_type);'
.' var img_src = img_split1[0]+img_split2[0]+"."+img_type;'
.' if(img_type_pdf == "pdf.jpg") var img_src = img_split1[0]+"/thumb"+img_split2[0]+"."+img_type;'//if pdf thumbnail, insert "/thumb" address back to the href
.' var img_src = img_src.replace("..", ".");' // change ..jpg to .jpg but do not change .jpeg
.' $(this).attr("href", img_src);' //href to the image source
.' $(this).attr("rel", "group");'
.'});'
.'$("a.image").fancybox({"transitionIn":"elastic","transitionOut":"elastic","titlePosition":"inside"});'
.'});'
.'})(jQuery)'
.'</script>');
}
return true;
}
Regards,
WOW COOL! It work for our site!
THANK YOU!
You're welcome, Zoglun
Hi Nicolas. I fixed the "Mail object returned error:" from ContactPage on my site. Don't know if your error was for the same reason, and I'd still like to find a better fix, but at least I don't get the error anymore :). See: http://www.mediawiki.org/wiki/Extension_talk:ContactPage#mailing_error
This post was posted by Nickenge~mediawikiwiki, but signed as Nickenge.
Votre wikis sont excellent. Ils me donnent plusieurs idee pour le mien. Merci
p/s: now I am going back to create a navigation bar like your wiki , it is gonna be tough Phuyem (talk) 21:16, 4 June 2014 (UTC) |