Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 07:59:19 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149678 Posts in 21101 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 2 [3]   Go Down
Print
Author Topic: New Module: Foldergallery  (Read 7677 times)
WebBird
Guest
« Reply #50 on: February 16, 2010, 10:13:25 AM »

Hm. Which Lightbox? The included one? (Shutter)
Logged
grawi

Offline Offline

Posts: 8


« Reply #51 on: March 07, 2010, 08:51:25 AM »

Hello
Thank you very much for very good module. That is what I was looking for.
I have added slimbox lightbox to it because shutter lighbox does not work correctly in Chrome.
I have one problem that I can not solve myself (I am not very good in PHP). That is problem with Polish characters. Gallery descriptions taken from database and displayed on frontpage are correct (I mean Polish special chars), but displayed at the backend do not show correct special chars.
I use utf8 codding on my page, but all tables are created as latin1.
I tried to change tables from latin1 to utf8 general ci but without good results - at frontend everything is correct - at the backend there are no Polish chars.

Colud ypu please advise me how to solve that problem ?

Cheers
Grawi
Logged
Paradontax

Offline Offline

Posts: 55



« Reply #52 on: March 08, 2010, 07:42:26 PM »

Hm. Which Lightbox? The included one? (Shutter)

Yes the included one and i think it is only a IE8 problem.



Logged
WebBird
Guest
« Reply #53 on: March 09, 2010, 03:59:30 PM »

I am no JS specialist. Maybe you should try another Lightbox, or have a look at the Shutter homepage. I'm sorry, but I don't know how to help rolleyes
Logged
robin

Offline Offline

Posts: 18


« Reply #54 on: April 09, 2010, 10:14:19 PM »

Hello there,

I am using WB 2.8.1 for about a week now. So call me a newbie  grin

I have tried almost all image galleries i coul find. And i can say i like folder gallery. I want to upload loads of images to share with family and friends. Don't care about tagging them, just upload all pictures from one month in a new folder. Folder Gallery seems to work nice to facilitate that.

But. I am not just posting to say: Great Module you made! But let me start with it anyway: Great module you made!  grin

I am trying to adjust the way it looks. But having some troubles finetuning the .css files. I have 2 issues left. One I really want to fix before telling everyone i have a new site. The other is just getting it prettier.

I want to remove the titles that foldergallery puts above the thumbnails. It says: "Image Gallery Categories" on the index of the directories and: "Image Gallery" when i selected one. I don't need it replaced with any $tring, i just want it gone. Any hints on how to do that? See attached file, or: http://familie.hatc.nl/pages/foto-album.php for more details.

Then something i would like because it would look nice: The database-option is nice for giving the folders nice names. Great! But the text is displayed under the thumbnail for every folder. Would it be possible to let get it on top of that folder with a certain opacity? I use such a feature with the text over my banner.jpg. I copied that from someone else and have no clue how i could use such a trick with the foldernames in foldergallery. Anyone any t suggestions for me?

I hope i wrote all this clear enough. If not i will be happy to ellaborate some more on it Smiley

Thanks guys!

Logged
BlackBird

Offline Offline

Posts: 1937



WWW
« Reply #55 on: April 11, 2010, 03:14:50 PM »

I want to remove the titles that foldergallery puts above the thumbnails.

Just remove the placeholder(s) from the template file(s). ('htt' subdirectory)

Then something i would like because it would look nice: The database-option is nice for giving the folders nice names. Great! But the text is displayed under the thumbnail for every folder. Would it be possible to let get it on top of that folder with a certain opacity?

Same as above.
Logged

Alle großen Veränderungen beginnen im Kleinen
robin

Offline Offline

Posts: 18


« Reply #56 on: April 11, 2010, 10:25:08 PM »

Well that wasn't of much help to be honest  huh

After two hours of hacking the view.htt and frontend.css files I was able to remove the navigation and titles.

I wasn't able to copy-past the .ss style to make the text underneath the image move over it while being a bit see-through. In another part of my site i used this for it:
Code:
.stripe {
margin: -40px 0px 0px 0px;
padding: 0;
height: 40px;
float: bottom;
opacity: 0.5;
filter: alpha(opacity=50);
background-color: #FFFFFF;
}

But when i put such text at .cat-caption nothing much changes except for the CAPS to become normal text.

If anyone has some suggestions: thanks very much!

Cheers, Robin.
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #57 on: April 11, 2010, 10:47:43 PM »

The problem is that for changes like these you will need a good understanding and knowledge of CSS and HTML.
It takes time to get that knowledge. Hours and hours of trying (and making mistakes) will be a way to get there.
That is why professional website developers can exist and get paid to do these kind of things.

I will give it a shot anyway..

The code you are looking for is found in the view.htt file. (if I understand the question correctly)
Code:
<div class="thumbwrapper">
<div class="thumbnail">
<a href="{CAT_LINK}">
<img src="{THUMB_LINK}" />
</a>
</div>
<a href="{CAT_LINK}">
<span class="cat-caption">{CAT_CAPTION}</span>
</a>
</div>
This is building the thumbnail and the link with the caption.
If you want the caption above the thumbnail, move the part
Code:
    <a href="{CAT_LINK}">
      <span class="cat-caption">{CAT_CAPTION}</span>
    </a>
above the <div class="thumbnail"> line.
If you want it inside the image, move it within the div structure and position it with margins in the css.

Logged

Professional WebsiteBaker Developer
robin

Offline Offline

Posts: 18


« Reply #58 on: April 11, 2010, 11:36:53 PM »

HOERA!!!   grin

Thank you Ruud. That was just what i needed! I fixed it. It was such a complex .htt document and the .css that went with it. I was able to fix i and am very happy with the result.

I totally agree on what you said about it being a proffession. I hope i don't have to change it for a while Wink

Thanks again!
Robin.
Logged
robin

Offline Offline

Posts: 18


« Reply #59 on: April 20, 2010, 08:38:27 PM »

modified: 21 april 2010:
I allready had removed all files, removed all directories and let the database resync. Now i renamed the folders when putting them back into /media/gallery. That suppresses the problems. I guess the bug will still be there, but at least it is not showing. So would still like to have a peek at the datafile to check that one, but i am not getting the error i posted about below anymore.

Cheers, Robin.


Hello,

I have a error when working the module. I have been using it succesfully for some time. I was so stupid to add a folder containing () and that messed it up. I renamed the folder to another name, but keep having troubles. It seems as if in the data somewhere the old names are stored. I tried removing all files and folders and removing the filenames and descriptions when using the editpage from the back-end.

Is there any way to edit the file in which the module stores the filenames? And if so, how is that called and where do i find it???

Thanks for you help fellow Bakers.

Cheers, Robin

Code:
Fehler beim Verzeichniss erstellen


Warning: getimagesize(/var/www/g36119/hatc.nl/subdomains/familie/media/gallery/2010-04 April 2010 (2)/IMG_0199.JPG) [function.getimagesize]: failed to open stream: No such file or directory in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 51

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 71

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 76

Warning: imagefill(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 77

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 85

Warning: imagestring(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 90

Warning: imagerectangle(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 91

Warning: imagejpeg(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 93

Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 94

Warning: imagedestroy(): supplied argument is not a valid Image resource in /var/www/g36119/hatc.nl/subdomains/familie/modules/foldergallery/scripts/functions.php on line 95

« Last Edit: April 21, 2010, 08:57:26 AM by robin » Logged
BlackBird

Offline Offline

Posts: 1937



WWW
« Reply #60 on: April 21, 2010, 03:37:08 PM »

The file names are stored in the database, not in a file.
Logged

Alle großen Veränderungen beginnen im Kleinen
robin

Offline Offline

Posts: 18


« Reply #61 on: April 22, 2010, 07:36:59 PM »

@ Blackbird:

Thank you! Found it and was able to remove some info that should havebeen deleted indeed.

There is so much to learn for me. There will be a moment when i can contribute a bit myself Smiley

Cheers, Robin.
Logged
BlackBird

Offline Offline

Posts: 1937



WWW
« Reply #62 on: April 22, 2010, 08:36:20 PM »

Nobody knows all. rolleyes You just have to know who/where to ask. grin
Logged

Alle großen Veränderungen beginnen im Kleinen
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #63 on: June 15, 2010, 01:40:40 PM »

Jo, is someone still interested in this module?
Based on V 0.9b (from AMASP) I found and removed some bugs, you can have the changed files if you want.

One major bug was, that foldergallery saves the full paths (uncluding WB_URL). AND: the generateThumb-Function didnt check if original files exists at all.

So - if you migrate the installation from localhost to server (or server1 to server2) - the server hangs in a loop.
The same, if you use WB_URL = "";

What I did:
I made an upgrade.php, which replaces all full paths to paths without WB_URL.
I added WB_PATH and WB_URL in all scripts.
I added some checks to generateThumb(..) to prevent from overload. eg
Code:
if(!is_file($file)) { echo '<b>Missing file:</b> '.$file.'<br/>'; return 0;}
and so on..

And I changed the category-sorting to DESC, so new categories are on top.
Logged

*weg*
Vidar

Offline Offline

Posts: 36


« Reply #64 on: June 23, 2010, 08:28:18 AM »

chio,

atleast I'm still using and very much interested of this module. I thank you in advance for your deveploment efforts. I haven't had the chance to test your version yet, but I'm sure to do so in the near future.

I still sometimes (randomly) get thumbnail errors so I hope your tweaking of the code will help to get rid of those.

just to be sure: is it better to first uninstall and then do a clean istall or will the upgrade do the trick?

Thanks!
Logged
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #65 on: June 23, 2010, 09:53:06 AM »

The Version 1.0 is here:
http://www.websitebakers.com/pages/modules/image-galleries/foldergallery.php

There is no need to uninstall; but it could happen that you loose image-descriptions from older installations.
Of course: a uninstall/install is easy and clean.

Missing Thumbs:
One of the biggest problems with the previous version where "hang up" or loops of the server, if creating thumbs wasnt possible.
To prevent from timeouts, there are some limits now; eg. a stop after 80 new thumbs, or no thumbs from images greater than 5 megapixels (see info.php at the bottom). In this case you see a "mega-pixel"-icon instead of the thumb.

If there are thumbs missing: just fress F5 (reload) to create the next 80 Thumbs.
Logged

*weg*
Vidar

Offline Offline

Posts: 36


« Reply #66 on: June 24, 2010, 09:24:00 AM »

Hey,

I upgraded the module yeasterday. Everything worked out great and haven't seen any errors since.

Btw, thanks for the css work. I had to get rid of that yellow thumb-background but otherwise it fits into my template perfectly without the need to fork it around. Breadrcumb especially is great! Thanks again chio!
Logged
stvis

Offline Offline

Posts: 7


« Reply #67 on: September 28, 2010, 09:29:08 AM »

Hi Jürgen / Chio, Pumpi!

Thanks for this great module  smiley

On Idea i have for easier working with:

It would be nice if the image descriptions or folder-Descriptions could be loadet as Plain-Text files (or HTML?) into the Folders for automatic importing.

So e.g.: pic1.jpg -> pic1.txt... pic2.jpg -> pic2.txt... for the folder ->folder.txt ....

So it might be possible to do this work with the descriptions localy and not in the Backend of WB...

and one other thing: there seems to be some Problems with german umlauts... may be the module doesn't work in utf-8 mode?
If there are umlauts in the folder names, there are problems with them...

May be it's easily possible to implement this feature into the compare Database function?
« Last Edit: September 28, 2010, 09:50:19 AM by stvis » Logged
Roych

Offline Offline

Posts: 149



« Reply #68 on: October 05, 2010, 11:10:35 AM »

Hello maybe this was allready asked but didnt find anything.

I would like to add the description of the photos not just albums and subalbums is this posible.


Thank_you!
Logged
jrast

Offline Offline

Posts: 315



« Reply #69 on: October 05, 2010, 01:34:29 PM »

@stvis & Roych:

I noted this feautres for the next version.

But i think its better to create a single file for the whole folder. So, the file will look something like this:

description.txt:

myfolder          "Folder Description"
image1.jpg     "Image dsecription"
image2.jpg     "Description for this image"
... and so on.

what do you thing about this? do you think its better to have one .txt-file for all images or a .txt-file for every image?
Logged

- If life turns bad, just hang on! -
Roych

Offline Offline

Posts: 149



« Reply #70 on: October 05, 2010, 09:48:08 PM »

Hi

Well for me it would be better if the description could be added after the upload via FTP something similar to facebook gallery if you know what I mean. Something like this: you would upload all the folders and photos of your choice via FTP, and then you could write the name, description and maybe some tags for each uploaded photo in WB backend. If nothing would be written for the name of the album or the photos the original uploaded name would be used.

Hope you understand what I mean!

Well this would be the perfect image gallery for me, and if you add some fancy effect of showing the photos even bether.  wink



Is this even possible in WB.

Thx!
Logged
Roych

Offline Offline

Posts: 149



« Reply #71 on: October 07, 2010, 09:30:47 AM »

Hello

Dont know if this is the right place to ask this.

I would like my folder gallery to shov me the whole thumbnail not just a part of it how can I do this? I tried the CSS but nothing happens!
And maybe some description of a thumbnail would be great.

thank you in advance

Roych
Logged
Roych

Offline Offline

Posts: 149



« Reply #72 on: October 07, 2010, 12:37:43 PM »

anyone??  huh
Logged
stvis

Offline Offline

Posts: 7


« Reply #73 on: October 18, 2010, 12:01:47 PM »

@stvis & Roych:

I noted this feautres for the next version.

But i think its better to create a single file for the whole folder. So, the file will look something like this:

description.txt:

myfolder          "Folder Description"
image1.jpg     "Image dsecription"
image2.jpg     "Description for this image"
... and so on.

what do you thing about this? do you think its better to have one .txt-file for all images or a .txt-file for every image?

Jürgen, i'm sorry for delaying, was in holydays...

I dont know, what will be the easiest way to do... I think i need this files only one time for writing the descryption to the database.
So may be its possible to check the folder for a file named "descryptions.txt" which contains the informations like you show above. If there is a file, the database has to be updated like the informations in the file. If there is no "descryptions.txt" file, there is nothing to do...
Logged
jrast

Offline Offline

Posts: 315



« Reply #74 on: October 18, 2010, 12:15:37 PM »

I think that's possible.

But it's a feautre for the next version, so you'll have to wait quite a while.

Logged

- If life turns bad, just hang on! -
Pages: 1 2 [3]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!