SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: willerby on April 03, 2009, 09:14:08 AM

Title: SMF Gallery Block
Post by: willerby on April 03, 2009, 09:14:08 AM
Not sure this is a bug or just not yet a feature!

As mentioned elsewhere, this works for SMF Gallery-Lite but path query needs changing in Sources/SPortal2.php from 'Gallery2' to 'Gallery' for this block to work with SMF Gallery Pro.  An extra bit of code in future releases would fix this.

This may not be supported but seems to work fine with the changes except that guests can see thumbnails of images in the gallery that they are restricted from viewing. When they click on the thumbnail they get the standard error message - not allowed to see this etc - so not a big issue.

I believe other portals only show gallery thumbnails that the user is allowed to view (rather than  random selection of all)?

Maybe something for next time...

W
Title: Re: SMF Gallery Block
Post by: [SiNaN] on April 03, 2009, 09:21:31 AM
As I mentioned in the other topic, we weren't able to test the block on Pro version.

And how do you restrict certain images being viewed by definite groups? Could it be a Pro-only feature too?
Title: Re: SMF Gallery Block
Post by: willerby on April 03, 2009, 09:26:14 AM
Ah. I forgot that's the reason I bought the pro-version! In that you can set permissions by member group...   :-[
Title: Re: SMF Gallery Block
Post by: [SiNaN] on April 03, 2009, 09:33:34 AM
Okay then. As far as I know, Pro version includes some SSI functions. You can use them in PHP blocks.
Title: Re: SMF Gallery Block
Post by: willerby on April 03, 2009, 09:46:25 AM
Thanks Sinan but that's not something I've done before. Any SMF / php tutorials that can help me out?
Title: Re: SMF Gallery Block
Post by: [SiNaN] on April 03, 2009, 09:48:46 AM
Well, you just select the "Custom PHP" block to add. Then call the right function in the content just, something like this:

Code: [Select]
ssi_gallery_pics();
I'm not sure what that function is though, you can find it in your SSI.php file. Also you may want to check [README] SSI FAQ's (http://www.simplemachines.org/community/index.php?topic=14906.0).
Title: Re: SMF Gallery Block
Post by: [SiNaN] on April 09, 2009, 03:09:34 AM
Reported:

http://simpleportal.net/index.php?issue=173.0
Title: Re: SMF Gallery Block
Post by: willerby on April 09, 2009, 04:01:03 AM
Thnaks SiNaN. Will look in to
SimplePortal 2.3.8 © 2008-2024, SimplePortal