gallery/album with URL bbcode for forum

Soldato
Joined
29 Jul 2003
Posts
7,680
Hi guys

i'm looking for a gallery or album script (php) with URL bbcode for forum.

I really like celerondude's gallery but doesnt have URL bbcode.

http://www.shareapic.net/171358-Best-Tatoos-Ever.html if you scroll down to bottom you see a box of bbcode for forum, that's what i want but i need it on my web hosting.

after searching for gallery/album script (php) for hours, couldnt find one :(

anyone know a good one? prefer to upload images via FTP, much faster!

thanks :)
 
didn't we do this before? i gave a little script that scanned a directory for files and generated the bbcode for you? can't you just add that in to this script you have?
 
yeah marc2003, the script u made work very well.

the problem is the more pictures i upload to a folder, it will generate bbcodes for old images as well. thought it would be easier to have gallery/album and it will have a box of url bbcode for each gallery. so i easily copy/paste the bbcode to forum.
 
yeah i would love that but no idea how LOL celerondude gallery is brilliant gallery, just need box of bbcode link (clickable thumbnails to full sized pictures) for each album.

you done mind if you could them? i would really appreciated :)

thanks :)
 
just had a look at that script. bit too advanced for me. it has php classes. i have no idea how they work. :o

i can knock up a simple script that will scan a folder for files, create thumbnails and generate bbcode if that's any use?
 
just had a look at that script. bit too advanced for me. it has php classes. i have no idea how they work. :o

i can knock up a simple script that will scan a folder for files, create thumbnails and generate bbcode if that's any use?

Classes are just collections of related variables and functions.

First you create a class

Code:
$variablename = new classname();

Then you access that class' functions with

Code:
$variablename->functionName();

Classes are worth learning as it allows for very efficient, easily reusable code.

For instance, I have just wrote myself a couple of classes for accessing and querying a MySQL DB and validating input. I only need write [and perfect] them once, and should be able to use them in any other PHP project.
 
quick question, you know this box which is full of bbcode, what is it called?

a textarea.

@SiriusB, maybe one day i'll try and get my head around it. i only dabble with php and find functions easy enough to use for my purposes.... but classes....:eek:

edit:

yeah that would be great :)

thanks again

i've just started faffing about modifying an older script of mine to do this. it has a max thumbnail size of 200x200 (not necessarily square- it keeps the correct aspect.). i'll post here when done.
 
Last edited:
ok here it is. source code

save as index.php - change $here to suit you and create the files and thumbs subfolders via your ftp client. set the permissions on each folder to 777. :)

upload your images to the files folder only. the script will generate the thumbs when you click 'create thumbnails'. :p

limitations - no pagination so could be a big page if you have loads of images. also when uploading new files, don't do too many at a time otherwise you'll bring the server to halt when generating thumbnails - be patient while it works.
 
ok here it is. source code

save as index.php - change $here to suit you and create the files and thumbs subfolders via your ftp client. set the permissions on each folder to 777. :)

upload your images to the files folder only. the script will generate the thumbs when you click 'create thumbnails'. :p

limitations - no pagination so could be a big page if you have loads of images. also when uploading new files, don't do too many at a time otherwise you'll bring the server to halt when generating thumbnails - be patient while it works.


thanks for the script but no matter what i do, upload files to a folder, always get this message

you need to create the files and thumbs subfolders!
 
thanks for the script but no matter what i do, upload files to a folder, always get this message

sorry i wasn't clear. in the same folder as the script, you need to have 2 folders...

files
thumbs

then put your images in the files folder.

edit: here's a demo of what it looks like clicky (the delete buttons don't work in this example)
 
Last edited:
ok got it working (ish)

uploaded 10 pictures to files folder. then open root folder with firefox. says 1 new file(s) found with the error message

Warning: Invalid argument supplied for foreach() in /home/.pascha/xxxxxxxx/xxxxxxxx.com/marc2000/index.php on line 74

using your username folder to testing your script :)
 
Back
Top Bottom