Extension talk:SmoothGallery

From MediaWiki.org
Jump to: navigation, search


[edit] Archives

Start a new discussion

Contents

Thread titleRepliesLast modified
MW1.15 Not Working - Images on top of each other1012:05, 7 February 2012
SmoothGallery makes Cite does not work?005:59, 9 October 2011
Single Image-list not showing004:01, 30 September 2011
SmoothGallery 2.1020:58, 15 September 2011
Abandoned123:09, 14 August 2011
Broken in Linux120:29, 20 July 2011
Empty place instead gallery and warnings.1519:38, 14 June 2011
errors on mw 1.16.4002:01, 10 May 2011
Change caption font size100:29, 4 May 2011
Garbage Text In Section Headers / Incorrect Page Title700:34, 6 March 2011
HTML code comes with314:59, 26 February 2011
prevent from being in unused files207:05, 24 February 2011
external pictures doesn't work017:12, 12 January 2011
Extension installed and I can see blank page211:53, 11 November 2010
i cant skip to the next picture015:45, 10 November 2010
#sgallery hook and Image captions not working103:49, 3 September 2010
PHP Error103:03, 3 September 2010
external link icon appears in gallery + internal and external URL's in caption box do not function503:17, 9 August 2010
Error with PHP 5.3+113:37, 2 August 2010

MW1.15 Not Working - Images on top of each other

Extension version - 1.1h SmoothGallery - 2.0

When I use the following, I just get all images stacked on top of each other; {{#sgallery: |width=200 |height=300 |showarrows=false |showcarousel=false |showinfopane=false |timed=true |delay=4000 |imagelist=Image1.jpg Image2.jpg Image3.jpg }}

207.236.106.6114:41, 7 October 2010

I've tested this with 1.15. It works. I'd check to see if your javascript is being loaded properly. Do you have web developer? See if all of the javascript is loading.

Ryan lane04:54, 16 October 2010

I have the same result in MW-1.17wmf1. All the pictures are on top of each other. However, when I press button Show preview I got normal gallery layout like in wiki/Special:NewFiles (Gallery of New files). When I save page I have the problem. How to check that all JS are loading?

Arkasha00:44, 6 March 2011

Just to add. First try was in Firefox browser. Tried in IE-7, the problem remains even in preview mode.

Arkasha00:56, 6 March 2011
 

1.17 is a different beast. It is using Resource Loader, which this extension isn't written to support yet.

Ryan lane23:58, 11 March 2011

I just upgraded a mediawiki to 1.17.0 and noticed that SmoothGallery isn't working any more. When is SmoothGallery expected to be updated to work with Resource Loader?

Thank you, Christoph

188.22.159.3120:45, 29 June 2011

Still no answer so let's change the question. :-) Will there be an update for SmoothGallery working with Mediawiki 1.17.0 in the near future?

Regards Norbert

194.15.135.1208:58, 21 October 2011
 

The support desk answered something similar to what Ryan said so far (cf. OutputPage::addScript(), where I first thought it was a problem of the OutputPage::addScript() function).

Desperately voting for an update, Ryan! ;)

Umoenks08:06, 17 November 2011

Fix, works on MW 1.18 and SG 1.1h,
in SmoothGalleryClass.php find (line 283):

$outputPage->addScript( '<script src="' . $extensionpath . '/scripts/mootools.uncompressed.js" type="text/javascript"></script>' );
$outputPage->addScript( '<script src="' . $extensionpath . '/scripts/jd.gallery.js" type="text/javascript"></script>' );
$outputPage->addScript( '<script src="' . $extensionpath . '/scripts/HistoryManager.js" type="text/javascript"></script>' );

and replace it with:

$outputPage->addHeadItem( 'smgal1','<script src="' . $extensionpath . '/scripts/mootools.uncompressed.js" type="text/javascript"></script>' );
$outputPage->addHeadItem( 'smgal2','<script src="' . $extensionpath . '/scripts/jd.gallery.js" type="text/javascript"></script>' );
$outputPage->addHeadItem( 'smgal3','<script src="' . $extensionpath . '/scripts/HistoryManager.js" type="text/javascript"></script>' );

pass parameters fix, in SmoothGallery.php (line 112):

function initSmoothGalleryTag( $input, $argv, $parser ) {
        $output = initSmoothGallery( $input, $args, $parser );
 
        return $output;
}

replace

function initSmoothGalleryTag( $input, $argv, $parser ) {
        $output = initSmoothGallery( $input, $argv, $parser );
 
        return $output;
}
Zck 22:52, 6 February 2012 (UTC)22:52, 6 February 2012
 
 
 
 
 

SmoothGallery makes Cite does not work?

As I stated in the title, does SG makes Cite does not work? Whenever I inserted Template:Reflist or <reference>, it did not work. When I removed the SmoothGallery from that page, it worked.

Could you please help me how to fix it?

Naciella05:59, 9 October 2011

Single Image-list not showing

I just noticed that the latest revision + SmoothGallery 2.0 the image isn't shown when there is only one image in the list. (Firefox + Opera). Instead, just a white area is shown where the image should be. Not sure if this is a bug in the extension or in the original gallery framework.

rGd04:01, 30 September 2011

SmoothGallery 2.1

Notice that this extension is not currently compatible with SmoothGallery 2.1

What's involved to make this extension compatible? Thanks.
Hypergrove20:58, 15 September 2011

is this extension abandoned or is it still under devlopment?

82.245.211.11110:17, 14 August 2011

I'm willing to take patches, but I haven't had time to work on it in quite a while. I'll fix any security related items, but don't plan on doing much else for the time being.

Ryan lane23:09, 14 August 2011
 

Broken in Linux

We just migrated a copy of our existing MW 1.16 database to Linux and the Sgallery code broke. I am unsure whether there is a parameter that we are missing which Windows is more forgiving about, or if this is perhaps incompatible with Linux. Please advise.

168.251.194.2521:34, 19 July 2011

I've only ever tested it in Linux. Works fine for me.

Ryan lane20:29, 20 July 2011
 

Empty place instead gallery and warnings.

Warning: Invalid argument supplied for foreach() in /home/tarasius/public_html/extensions/SmoothGallery/SmoothGalleryClass.php on line 23
Warning: Invalid argument supplied for foreach() in /home/tarasius/public_html/extensions/SmoothGallery/SmoothGalleryClass.php on line 78

MediaWiki 1.16.0 PHP 5.2.14 (cgi) MySQL 5.0.91 SmoothGallery 1.1g

Tarasius.ua11:39, 3 November 2010

I'm receiving this exact same issue. I can't figure out anything to do to get the SmoothGallery to function properly. I see that this issue was reported back in November, has anyone else had this same issue and resolved it since then?

97.97.177.14816:12, 21 January 2011

Could you paste the wikitext you're using?

Emufarmers(T|C)23:43, 22 January 2011
<sgallery>
Noir01.jpg
Noir02.jpg
Noir03.jpg
Noir04.jpg
</sgallery>
97.97.239.19619:09, 24 January 2011

What happens if you run 1.1h instead?

Emufarmers(T|C)05:05, 25 January 2011

I'm running 1.1h. Is there some other info that I could give that would help figure out what the issue is?

TiredChildren15:24, 25 January 2011
 
 
 
 

need help on that too

82.245.211.11108:59, 16 March 2011
 

I have the same exact problem. I'm running MediaWiki 16.3, php 5.2.x. And here's what I am using in my page:

<sgallery> Affenpinscher.jpg Afghan_Hound.jpg American_Pit_Bull.jpg </sgallery>

Here's a link to the test site that I set up to play around:

http://www.thepetwiki.com/EStahl/mw/index.php?title=Foxes

If anyone could give me a hand with it, I'd really appreciate it.

Thanks!

RenaR19:36, 14 June 2011

The wiki text looks like this:

<sgallery>
Affenpinscher.jpg
Afghan_Hound.jpg
American_Pit_Bull.jpg
</sgallery>

Thanks again.

RenaR19:38, 14 June 2011
 
 

errors on mw 1.16.4

i got a couple of errors when i tried installing on my wiki, first using <sgallery> i got that there was an invalid argmuent supplied for foreach() on line 23 of smoothgalleryclass, when using #sgallery i got Fatal error: Call to undefined method Title::expand() in /home/aiowiki/aiowiki/w/includes/parser/Parser.php on line 926

redekopmark02:01, 10 May 2011

Change caption font size

hi, does anyone knows how to change the font size of the caption, I find it too small. thanks.

82.245.211.11111:38, 8 April 2011

It's likely set in the CSS somewhere. You should be able to override it in MediaWiki:Common.css

Ryan lane00:29, 4 May 2011
 

Garbage Text In Section Headers / Incorrect Page Title

By using the development version of the SmoothGallery extension, I was able to get a gallery to show up. However, for some reason the title of the page gets changed to File:ImageXX.jpg, where ImageXX.jpg is the last image in the list of files for the sgallery, and all section titles have strange text added to them. For example:

==History==

Displays:

UNIQ58e2197a757753b4-h-1--QINUHistory

I saw that someone previously had the issue with the garbage text in the section headers, but their fix was to not show the infopane. If I set my sgallery tag to

<sgallery showinfopane="false">

It does not solve the problem. Can anyone offer any help?

TiredChildren05:45, 24 February 2011

Okay, so a little more digging and it looks like I can get it working, though I can't use the <sgallery> tag. The following works for me:

 {{#sgallery:
 |showinfopane=false
 |imagelist=Image01.jpg
Image02.jpg
Image03.jpg
Image04.jpg
Image05.jpg
}}

Why would the parser function tag work and not the <sgallery> tag? Also, is there a way to set the infopane to false as a default so I don't have to use that tag every time?

TiredChildren06:03, 24 February 2011

I was able to find the file that contains the defaults. They're in SmoothGalleryParser.php. I used "showinfopane" => false, and now I can use <sgallery> to my heart's content. Now I just need to find out how to get the infopane working without garbling up my pages, and I'll be all set. Can someone PLEASE help with this?

TiredChildren07:01, 24 February 2011

I was thinking of dropping support for old style tags altogether. Is there a reason why you need to use this rather than the parser function style?

Ryan lane14:58, 26 February 2011

The <sgallery> tag just seems cleaner and easier to remember how to use than using the parser function style. That being said, people could always learn how to use the parser function version if need be.

The main issue though is that if showinfopane isn't set to false, there's all kinds of garbage text that shows up in the section headers and the page title gets changed.

TiredChildren17:50, 28 February 2011

Here's an example of a page that has the garbage text issue: http://www.threeawiki.com/Medic_Square²

TiredChildren17:56, 28 February 2011
 
 
 
 
 

HTML code comes with

Hi, I have tested 1.1h with SmoothGallery 2.0 on mw 1.15.1. (images via Foreignrepos) but a lot of html code comes to the column. What might be the problem?

Juan de Vojníkov02:16, 29 November 2010

I've never tried it with a ForeignRepo before...

Ryan lane03:29, 26 December 2010

So you recommend to test it with just locally uploaded files?

Juan de Vojníkov14:22, 26 February 2011

Yes.

Ryan lane14:59, 26 February 2011
 
 
 

prevent from being in unused files

hi, I've noticed that files used in smoothgallery shows up in the unused files special page, how do I prevent that? thanks

5p21:11, 22 January 2011

I haven't actually figured out how to get that to work, either. Sorry. I need to figure out how to update the link table on use, but never got a chance to figure it out.

Ryan lane02:21, 25 January 2011

Just noticed this issue as well. I would love to see a fix for this.

TiredChildren07:05, 24 February 2011
 
 

external pictures doesn't work

hello, I've installed SmoothGallery on MW 1.15.4 and then I enabled $wgSmoothGalleryAllowExternal, I put it to true and put the following code :

<sgallery>
http://website.com/picture.png%7Cdescription
</sgallery>

Result, SmoothGallery gives me the following error : SmoothGallery error:No images were found in this gallery. Make sure all images requested exist. The following images were not found:

where's the problem? how do I do fix that? thank you.

ren17:10, 12 January 2011

Extension installed and I can see blank page

Just want to report it. I have installed the extension to smoothgallery dir, there I placed also dirs css, images, scripts and other files of JonDesigns v 2.0 as it is not clear from installation manual how to settle it. Than I fixed the bug coming with 2.0 and then relized my wiki is blanked, so additionally I Fix the jd.gallery.css, but the problem persists.

mw 1.16.0 in MoWeS Portable package, Apache 2.2.11 on Windows Vista Home Premium, MySQL 5.1.35, PHP 5.3.0

--Juan de Vojníkov 18:29, 9 November 2010 (UTC)

Juan de Vojníkov18:29, 9 November 2010

If you are getting a blank page, its because of a problem with the extension. Check the php log to see if there are any errors.

Ryan lane10:01, 11 November 2010

Well, I dont understand PHP. So I may only send you a log and you can have a look if you like.

Juan de Vojníkov11:53, 11 November 2010
 
 

i cant skip to the next picture

hi, ive had sgallery installed for a while now. All of a sudden i cant click through to the next picture anymore. Check http://klusopedia.nl/klussen/Tips_hoe_te_zagen for an example. Who knows what might have cause this?

83.83.55.25315:45, 10 November 2010

#sgallery hook and Image captions not working

Hi,

I have Mediawiki 1.15 installed with SmoothGallery 2.0 and the latest version of the extension. All my files - JonDesign's stuff and this extension's PHP files are here:

/extensions/SmoothGallery/

The paths and everything are set correctly. However, I, till recently, was unable to get even the <sgallery> tag to work. I was getting the following error:

Fatal error: Unsupported operand types in /home/XXX/includes/parser/LinkHolderArray.php on line 33

I followed the steps outlined here and got it working. I am now getting the images in a panel properly and it seems great. However, there are three problems:

1) I cannot get the Image Titles to show up even if I use the '|' syntax. Same problem as mentioned by User:Mindbender here. Is this functionality working for people? It'd be really helpful if someone could let me know how

2) The #sgallery tag is not working at all. I dont even see the hook in my Special:Version page. What could be wrong? It doesnt seem to be a skin problem as I tried it with Monobook and Ontoskin2, but does not work. It would be of enormous help if someone could help me with this.

3) I am using images from Wikimedia Commons using $wgForeignFileRepos. Is there a way to get these images to show up in SmoothGallery? I dont seem to be having any success in that.

Thanks a lot in advance for any suggestions!

Veryhuman20:10, 28 August 2010

OK. Here are the updates:

1) Updating to the latest version - 1.1h presumably (whichever corresponded with Mediawiki 1.16.x) - solved the Image captions issue and the #sgallery issue. There is no need now to comment out the $local_parser lines in SmoothGalleryParser.php. Everything's working fine now.

2) However #sgallery does not accept images which are duplicates of wikimedia commons images. Something clashing with $wgForeignFileRepos.

3) <sgallery> tag is clashing with Semantic Mediawiki queries. It works if there is only the first part of the query eg:

{{#ask: [[Category:Cities]]
|limit=10
|format=list
}}

But does not work if you specify more eg:

{{#ask: [[Category:Cities]]
| ?country
|limit=10
|format=list
}}

The error produced is a popup message saying "Handler could not be removed"

Any suggestions?? Veryhuman 03:25, 3 September 2010 (UTC)

03:25, 3 September 2010
 

Hello,

I have tried adding this extension to a wiki that I am working on. The extension can be enabled without problems, but as soon as a user tries adding a gallery to their page, an Internal Server Error is returned. Looking through the logs, I found this:

PHP Fatal error: Unsupported operand types in /srv/www/htdocs/wiki/includes/parser/LinkHolderArray.php

As far as I can tell, this happens because the array $this->interwikis is undefined. This error happens even if I disable all other extensions. I found a hack to the file that got rid of the error, but the gallery does not display properly. I can't find apparent cause or solution. Do you have any ideas?

Thanks!

137.65.49.17115:41, 29 July 2010

I can't seem to trigger this. What version of MediaWiki and the extension are you using? Also, is the user using interwiki links in the gallery? I haven't tested using images via interwikis.

Ryan lane03:19, 9 August 2010
 

external link icon appears in gallery + internal and external URL's in caption box do not function

I'm testing to see if I can implement the smoothgallery tool you developed on my mediawiki (http://csdms.colorado.edu/wiki/Test6a). However, I'm facing some minor problems that I hope you can help out with.

Installation went all fine. I'm using the following software versions: Mediawiki 1.15.4 php 5.2.13 mysql 5.1.45 smoothgallery 1.1g

A few problems: 1) I get an external link symbol in my smooth gallery which I can't get away. The only way I can get the external link away is by setting the showinfopane="false" but than I loose the figure caption at the bottom and I would like to keep that. Any idea how to solve this?

2) I would like to add an internal link in the figure caption that appears at the bottom. So I tried to add something like: T071_james_syvitski.jpg|This is the description for picture1 test but it doesn't show the text or the link between the brackets. Is there a way to get links in the "showinfopane"?

Thank you!

71.56.219.159 Albert.21:06, 25 July 2010

I haven't had much of a chance lately to update this extension. I hope to update this, and look at these issues soon. Both of these are bugs (both of which I previously knew about).

Ryan lane17:51, 26 July 2010

Hi Ryan, I looked a bit into the external link symbol that shows up in the gallery. It turns out that I can suppress the icon by using the following layout parameter in front of the <sgallery>: <span class="plainlinks">. See also: m:Help:Link#Arrow icon. It is a bit of a work around but it works which is good enough for me. Now the only thing is being able to add a link in the figure caption at the bottom.

Cheers, Albert.

128.138.77.4114:06, 2 August 2010

Yeah, this was likely going to be the fix I used.

Ryan lane14:18, 2 August 2010

I just noticed that the disadvantage is that the arrows on the left and right side to scroll the images will disappear as well .....

Best, Albert.

128.138.77.4114:26, 2 August 2010

I've fixed issue #2 in 1.1h. I need internet explorer to test #1, I believe. I don't see this in safari or firefox, but I know these issues occur frequently with IE.

Ryan lane03:17, 9 August 2010
 
 
 
 
 

Error with PHP 5.3+

The following error occurs with SmoothGallery extension and PHP 5.3:

Detected bug in an extension! Hook smoothGalleryParserOutput failed to return a value

This is solved by changing the line in SmoothGallery.php:

function smoothGalleryParserOutput( &$outputPage, &$parserOutput )  {

to:

function smoothGalleryParserOutput( &$outputPage, $parserOutput )  {

Mediawiki specifies that the second parameter is not a reference, and when it was one, it broke the hook completely.

Robnich23:29, 1 August 2010

I'm pretty sure I already have this fix in SVN. If not, it is sitting on my local system waiting to be checked in.

Ryan lane13:37, 2 August 2010
 
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox