Page 1 of 1
PiPictures always showing the same picture
Posted: Wed Mar 29, 2006 2:33 am
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.

Re: PiPictures always showing the same picture
Posted: Wed Mar 29, 2006 6:57 am
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.
Re: PiPictures always showing the same picture
Posted: Fri Mar 31, 2006 8:29 am
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.
Re: PiPictures always showing the same picture
Posted: Fri Mar 31, 2006 10:23 am
by cyberman
Perhaps you can let us know your modifications

...
Re: PiPictures always showing the same picture
Posted: Sun Apr 02, 2006 11:53 am
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]
Re: PiPictures always showing the same picture
Posted: Fri Nov 03, 2006 12:01 pm
by mustis
where do I upload lightbox.js ??
Re: PiPictures always showing the same picture
Posted: Fri Nov 03, 2006 2:19 pm
by mustis
why doesent this work??
Done as it says above.
lightbox v2
cmsms 1.0.2
pipcitures (latest)
Re: PiPictures always showing the same picture
Posted: Sun Nov 05, 2006 9:03 am
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
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 10:33 am
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
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 10:53 am
by katon
This seems to be using the default ImageGallery tag, not the pipictures tag.
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 11:04 am
by mustis
{PiPictures default='mygallerynamehere' showtitle=0 shownavbuttons=0 showscrollbuttons=0 template='lightbox.tpl'}
thats the content on the page
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 11:14 am
by katon
When I click the thumbs at the bottom of your page, the big image changes okay.
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 12:23 pm
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
Re: PiPictures always showing the same picture
Posted: Mon Nov 13, 2006 1:32 pm
by mustis
I have put the lightbox.tpl in tmp/templates
Why dont it work then?
Re: PiPictures always showing the same picture
Posted: Thu Nov 16, 2006 3:32 pm
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