mightofnight
Offline
Posts: 153
|
 |
« on: December 11, 2004, 03:40:52 AM » |
|
Well i have taken my favorite galleary program "pickle" and after some twiddinling of the code i got it to work using the code module! Click here to view the gallearyPickle is dependant on image majic. All you need to do is upload the pictures at their maximum size and pickle will generate the thumbnails for you and it will also let you choose different sizes to look at the picture. All i did was past the edited pickle code to the into the code module and uploaded some folders to the subdirectory of where the .php file was in the pages directory! if anyone is interested i eleborate more on this... i havn't a clue about module writting yet, nor the time this month 
|
|
|
|
|
Logged
|
-Travis
|
|
|
|
fienieg
Guest
|
 |
« Reply #1 on: December 12, 2004, 09:43:51 PM » |
|
Could you place the code for download 
|
|
|
|
|
Logged
|
|
|
|
mightofnight
Offline
Posts: 153
|
 |
« Reply #2 on: December 12, 2004, 10:37:14 PM » |
|
Could you place the code for download  I will try and have something tomorrow evening. there is a bug i need to fix and i won't have time till then 
|
|
|
|
|
Logged
|
-Travis
|
|
|
mightofnight
Offline
Posts: 153
|
 |
« Reply #3 on: December 14, 2004, 05:45:38 AM » |
|
Could you place the code for download  I will try and have something tomorrow evening. there is a bug i need to fix and i won't have time till then  Click Here To Download-make sure you read the directions.txt any problems let me know espically considering that i wrote the directions kinda fast. #Edit !Important - this will only work if your webserver has imagemagic installed! most of the better webhosting companies do have theis installed but you have to check! Also i disabled by default the ablility for it to resize pictures on the fly because i was having some trouble with using it's session variables. If you turn it back on it will work but it doesn't keep the setting as it's suppose to when you browse to the next picture. ALso the link names in the drop down combo boxx dont show up right, which in and by it's self is easy to fix but i would rather it work as it's suppose to!
|
|
|
|
|
Logged
|
-Travis
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #4 on: December 19, 2004, 10:19:34 PM » |
|
Hello mightofnight, I like this, and I am looking if I can make a module out of it. the picKLE gallery module It is looking good. (I am half way, now the dificult part)
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
mightofnight
Offline
Posts: 153
|
 |
« Reply #5 on: December 19, 2004, 10:32:54 PM » |
|
Cool! if you need any help let me know if i can be of any help.. also if you wnat to try and turn on the allow user resize and see if it works outside of the Eval() stament used for the code pages that would be cool.. as stated i was having problems with the session variables being transmitted i hanv't quite had the time to figure out where the bug was comming from... #Edit -- Download is acidently down! In a fatal error while moving stuff using the MS ftp download tool canceling not only canceled but deleted everything that was in my root directory  i am working on getting back...
|
|
|
|
|
Logged
|
-Travis
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #6 on: December 21, 2004, 11:28:10 PM » |
|
Oke, the module is done with some small problems You can download it here: download hereYou must use the addon page to install it. Or the new table will not be created that it needs. There are 2 problems. 1. The picKLE cache, you must create dir yourself ( ../wb/tem/pi_cach/ ) Don't know how to make a dir with installing module 2. Removing the module with the addon doesn't work well (getting error that a file is in use) I think the problem is the pickle script itself. Oke this module is at the moment tested on 2.2.x (Just upgraded to 2.2.3 and it still work ). I cannot support this module because this was my first php thing I ever did  Also I don't know if the module is according to specks, I hope that if Ryan has some time he wil look at it  . And now its time for me to go to bed.
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
|
Anonymous
Guest
|
 |
« Reply #7 on: December 22, 2004, 04:53:29 AM » |
|
looks good, i got it to work on the first try. i will play with it some seeing as xmass is comming up i will have a little bit of free time..
|
|
|
|
|
Logged
|
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #8 on: December 22, 2004, 08:58:00 AM » |
|
Already found a small error.
error was in the modify.php.
changed it in the zip file that you can download
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #9 on: December 25, 2004, 11:16:16 AM » |
|
Oke created a new version of the module. I solved problem 1 creating the cache dir When adding a page it checks if temp/pi_chache is there if not it now creates the directory temp/pi_chache/ You can download it here.
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
|
|
Steven Holder
The Template Master
Offline
Posts: 493
|
 |
« Reply #11 on: December 28, 2004, 04:24:20 AM » |
|
Just a precausion for people so they know to set a default folder right away when using this module. If you dont then people can have access to your entire site because it displays your file tree for your site instead of pictures unless you set a default folder for it to look in.
Just giving the shout out so people dont leave after installing one of these pages and then not setting a default folder. Actully, im not sure it would even display your PHP files and what not since its olny supposed to show pictures. Ill check later and report back I guess.
|
|
|
|
|
Logged
|
|
|
|
Steven Holder
The Template Master
Offline
Posts: 493
|
 |
« Reply #12 on: December 28, 2004, 04:25:47 AM » |
|
No worrys mates, they can see the first layer of the file tree but they cant get past it, if they click a folder, it takes them to your default page.
|
|
|
|
|
Logged
|
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #13 on: December 28, 2004, 05:28:33 PM » |
|
The script does display the folders then. But only displays files with picture extensions like jpg,png,gif or jpeg.
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #15 on: December 31, 2004, 12:22:16 PM » |
|
Well, I can set default a location like /media/gallery ??
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
Steven Holder
The Template Master
Offline
Posts: 493
|
 |
« Reply #16 on: December 31, 2004, 07:08:40 PM » |
|
/media/gallery dosent exist at time of creation. just set it as /media/
|
|
|
|
|
Logged
|
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #17 on: December 31, 2004, 07:23:13 PM » |
|
What is better.
Can set it default to /media
Can also set it default to /media/gallery and create the directory.
Or something else??
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
|
|
mightofnight
Offline
Posts: 153
|
 |
« Reply #19 on: January 14, 2005, 10:00:59 PM » |
|
I want to try and get pickle to work a little better and with a few more features that i have wanted (such as support for displaying avi files). Unforntually i havn't had much time i just movde and i has spent most of my last 2-3 weeks working on the house. and now i am behind on some other of my projects. :S If only the days were like 8 hours longer 
|
|
|
|
|
Logged
|
-Travis
|
|
|
|
fienieg
Guest
|
 |
« Reply #20 on: January 15, 2005, 06:17:42 AM » |
|
pickel and GD support would be a very nice feature i've got some issue's with imagemagick, i want it to work, but imagemagick don't want to work 
|
|
|
|
|
Logged
|
|
|
|
|
brown
Guest
|
 |
« Reply #21 on: January 21, 2005, 03:36:28 AM » |
|
just installed this and love it!, just wondering is there a way to change the template for pickle displaying?
|
|
|
|
|
Logged
|
|
|
|
Bennie_wijs
Offline
Posts: 230
|
 |
« Reply #22 on: January 21, 2005, 11:38:49 AM » |
|
its not a template, it displays insite the wb template What do you want to change then??
|
|
|
|
|
Logged
|
I believe what I want to Believe
|
|
|
mightofnight
Offline
Posts: 153
|
 |
« Reply #23 on: January 21, 2005, 04:44:50 PM » |
|
I think he means the actuall layout of the pics that pickle generates. Unfortnually pickle is not really able to do that. it's all coded in one script and the code isn't seperated from the display portion!
|
|
|
|
|
Logged
|
-Travis
|
|
|
|
brown
Guest
|
 |
« Reply #24 on: January 22, 2005, 08:24:58 PM » |
|
oh, too bad, so much for separating presentation from login 
|
|
|
|
|
Logged
|
|
|
|
|