PiPictures always showing the same picture

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

PiPictures always showing the same picture

Post by jeffunk »

So I needed a little gallery and PiPictures seemed like a good choice cause I really like just uploading files to a directory and being done with it.  Quick and Simple.

And everything is now working fine, but just a note for anyone who may come after me with PiPictures make sure that on the page that you put the {pipictures} tag on you make a point of going to the options menu and unchecking cacheable.

Otherwise your url parameters won't be refreshed when you select a new catagory or picture.

Hope this saves you the time it cost me. ;D
katon

Re: PiPictures always showing the same picture

Post by katon »

Thanks, it's a nice tip.  There was a similar problem here, but it was caused by the tag enclosed in ... in FCKEditor.
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: PiPictures always showing the same picture

Post by nils73 »

By the way: I have been playing around with PiPictures and lightbox.js, which has been discussed around here a few times. With some slight modifications to the code you get a pretty good gallery script like the one I am using for Ansichtssache.
cyberman

Re: PiPictures always showing the same picture

Post by cyberman »

Perhaps you can let us know your modifications  ;) ...
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: PiPictures always showing the same picture

Post by nils73 »

Sorry, I should have posted it here before. But I am kind of lazy when it comes to posting my solutions because I keep forgetting to comment the code. However, here is what you need to do.

1) Download the attached files (function.PiPictures.php.txt & lightbox.tpl.txt)
2) Upload function.PiPictures.php to plugins-direcotry
3) Upload lightbox.tpl to tmp/templates folder
4) Make sure you have the latest version of lightbox.js at hand
5) Insert the following module-code into the gallery-page:

{PiPictures default="mygallerynamehere" showtitle=0 shownavbuttons=0 showscrollbuttons=0 template="lightbox.tpl"}

That is it. If you have already installed functions.PiPictures.php you can simply upload lightbox.tpl and use it with lightbox.js.

Regards,
Nils

[attachment deleted by admin]
mustis

Re: PiPictures always showing the same picture

Post by mustis »

where do I upload  lightbox.js ??
mustis

Re: PiPictures always showing the same picture

Post by mustis »

why doesent this work??
Done as it says above.

lightbox v2
cmsms 1.0.2
pipcitures (latest)
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: PiPictures always showing the same picture

Post by nils73 »

mustis wrote:
where do I upload  lightbox.js ??
I think this is the main-problem you had. You need to upload the files for lightbox to your webserver where CMSMS is installed, maybe some kind of subfolder (i.e. javascript) and then link to this location inside the section of your template.

[quote author=mustis link=topic=3904.msg41293#msg41293 date=1162563594

why doesent this work??
Done as it says above.

lightbox v2
cmsms 1.0.2
pipcitures (latest)
The only mistake I could find in your source-code is that you have referenced the JavaScript files in your head-section as absolute local paths, but you will need relative paths. Furthermore it seems that permissions are not set correctly.

As to your question if I can make a module out of it: It is not neccessary to do so. There are so many nice galleries for CMSMS and this is just an add-on for an existing tag. You could also get it to work with CMSMS default galleries tag with just a little tweaking of PHP code.

Regards
Nils
mustis

Re: PiPictures always showing the same picture

Post by mustis »

Hi

I can still not figure it out.

Can you have a look?

http://www.bobilsenteret-innlandet.no/b ... side=bilde

Best regards
Mustis
katon

Re: PiPictures always showing the same picture

Post by katon »

This seems to be using the default ImageGallery tag, not the pipictures tag.
mustis

Re: PiPictures always showing the same picture

Post by mustis »

{PiPictures default='mygallerynamehere' showtitle=0 shownavbuttons=0 showscrollbuttons=0 template='lightbox.tpl'}

thats the content on the page
katon

Re: PiPictures always showing the same picture

Post by katon »

When I click the thumbs at the bottom of your page, the big image changes okay.
Last edited by katon on Mon Nov 13, 2006 11:15 am, edited 1 time in total.
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: PiPictures always showing the same picture

Post by nils73 »

You still have a path-problem, because the lightbox.js is not found. Simply change in your template

bobil/javascript/js/lightbox.js

to

javascript/js/lightbox.js

and please make sure you are using the PiPictures-version and the lightbox.tpl from this thread. It should work then. Right now it seems you are using PiPictures with default template.

Regards,
Nils
mustis

Re: PiPictures always showing the same picture

Post by mustis »

I have put the lightbox.tpl in tmp/templates

Why dont it work then?
nils73
Power Poster
Power Poster
Posts: 520
Joined: Wed Sep 08, 2004 3:32 pm

Re: PiPictures always showing the same picture

Post by nils73 »

As far as I can tell you have severe problems in your website with path-settings. A lot of things do not work due to this, like on http://www.bobilsenteret-innlandet.no/c ... e=verksted there is the following error:

Warning: _include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in /home/1/b/bobilsenteret-in/www/cms/lib/smarty/Smarty.class.php on line 1913

and in your HTML-Header there you have set twice on all pages as well as the following CSS-reference:

http://www.bobilsenteret-innlandet.no/. ... /theme.css

There are more errors throughout the page. You should fix those errors first and I will be glad to help you once again.

Regards
Nils
Post Reply

Return to “Tips and Tricks”