Quantcast

[SRF] 1.7; SRF_Gallery.php patch allowing a gallery to be displayed as carousel using jcarousel plug-in

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[SRF] 1.7; SRF_Gallery.php patch allowing a gallery to be displayed as carousel using jcarousel plug-in

James HK
Hi Jeroen,

SRF_Gallery.php sometimes can lead to a large display thumbnails
therefore we thought we provide a patch [1] which allows to use the
jcarousel plug-in [2] to display galleries as a carousel.

It is a fairly simple enhancement therefore the best way to implement
this enhancement is through a small patch on the original
SRF_Gallery.php to keep maintenance low.

Depending on the new introduced parameter galleryformat=carousel the
required jquery plug-in is loaded and handles the display of the
gallery items.

The integration was tested with Firefox and Chrome on SMW 1.7, SRF 1.7
and MW 1.18.

[3] is included

PS : Their is a Fatal error when the Gallery is executed on the
Special:Ask page which causes a Fatal Call to a member function
getMaxIncludeSize() on a non-object which is caused by $imgCaption =
$wgParser->recursiveTagParse( $imgCaption );. The  $imgCaption =
$wgParser->transformMsg( $imgCaption, ParserOptions::newFromUser( null
) ); might solve this for the execution in Special pages but I haven't
included any patch for it, so it would be nice if some else could
review this part to make sure Special:Ask doesn't produce any
getMaxIncludeSize() failure.

[1] https://github.com/mwjames/smw-srfgallerycarousel

[2] http://sorgalla.com/projects/jcarousel/

[2] https://bugzilla.wikimedia.org/show_bug.cgi?id=34411       

Cheers,

mwjames

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Semediawiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [SRF] 1.7; SRF_Gallery.php patch allowing a gallery to be displayed as carousel using jcarousel plug-in

badon
I just tested the examples in Opera, and it looks very nice. I did notice that autoscroll didn't seem to be working, though.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [SRF] 1.7; SRF_Gallery.php patch allowing a gallery to be displayed as carousel using jcarousel plug-in

Jeroen De Dauw-2
In reply to this post by James HK
Hey James,

Great work :)

I merged your patch, confirmed it worked and committed it in https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111953

Cheers

--
Jeroen De Dauw
http://www.bn2vs.com
Don't panic. Don't be evil.
--

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Semediawiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Loading...