Jump to content

User talk:Nicolas NALLET/Flow

About this board

WikiSEO

Hi Nicolas. Yes I'm the author of WikiSEO. I've just responded to the topic on the talk page. I hope to get to that bug soon. Watch the extension page of github repo for changes.

--Andrujhon (talk) 10:52, 17 March 2013 (UTC)

ok Thanks !

See U,

Nicolas NALLET (talk) 20:04, 17 March 2013 (UTC)


File copyright problem with File:MediaWikiFarm Extension Presentation.pdf

3
Steinsplitter (talkcontribs)

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.

Ciencia Al Poder (talkcontribs)

This file has been marked for deletion

Tropicalkitty (talkcontribs)

The file was deleted due to missing information regarding copyright license status.

Reply to "File copyright problem with File:MediaWikiFarm Extension Presentation.pdf"

Your feedback matters: Final reminder to take the global Wikimedia survey

1
MediaWiki message delivery (talkcontribs)

(Sorry to write in Engilsh)

Reply to "Your feedback matters: Final reminder to take the global Wikimedia survey"

Share your experience and feedback as a Wikimedian in this global survey

1
MediaWiki message delivery (talkcontribs)
  1. This survey is primarily meant to get feedback on the Wikimedia Foundation's current work, not long-term strategy.
  2. 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.
Reply to "Share your experience and feedback as a Wikimedian in this global survey"

FancyBoxThumbs for pdf format

5
Bennylin (talkcontribs)

No, I haven't. I tried to hack the code, to no avail. Bennylin (talk) 10:29, 6 January 2015 (UTC)

Bennylin (talkcontribs)

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,

Deletedaccount4567435 (talkcontribs)

WOW COOL! It work for our site!

THANK YOU!

Bennylin (talkcontribs)

You're welcome, Zoglun

Reply to "FancyBoxThumbs for pdf format"

ContactPage error fix

1
Nickenge~mediawikiwiki (talkcontribs)
Reply to "ContactPage error fix"
Phuyem (talkcontribs)
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)

Reply to "A beer for you!"
There are no older topics