Gallery Programs

P

Podz

I'm after a php gallery program that will display pictures and captions.
I've tried - and dislike - Gallery, Coppermine, can't get spgm to
display the captions so am after any personal rec's ?
Thumbnail creation is not important, mysql I would prefer not to use.
There seem to be very many such programs and scripts, but a personal
plus from someone would be good.

Thanks
P.
 
M

MightyKitten

Podz said:
I'm after a php gallery program that will display pictures and
captions. I've tried - and dislike - Gallery, Coppermine, can't get
spgm to display the captions so am after any personal rec's ?
Thumbnail creation is not important, mysql I would prefer not to use.
There seem to be very many such programs and scripts, but a personal
plus from someone would be good.

Thanks
P.

Tried alt.comp.lang.php?



Basically it is very simple: I created my own technique for my webalbums

Create a webalbum template (basic layout and mechanics)
create a bunch of textfiles with PHP variables,
Let the webalbum template read in the right textfile with each reload, using
PHP parameters with links:


<?PHP
// Name of this textfiel would be "2.inc"
// If a single album has 9 pictures on a page:

$Page_tilte ="Test Album";
$This_album_Nummer = 2;
$Number_of_Albums = 8;

$Picture_holder_1_name = "This is my first picture";
$Picture_holder_1_loc = "../pict/pic_001.jpg";

$Picture_holder_2_name = "This is my second picture";
$Picture_holder_2_loc = "../pict/pic_002.jpg";

//... (skipping boring repats)

$Picture_holder_9_name = "This is my second picture";
$Picture_holder_9_loc = "../pict/pic_009.jpg";

// Be sure you use the same parameter names for each file
?>

Create a webpage that serves at template

For each link to a new album, be sure to add a parameter to the link url
(like <a href="bigpicture.php?id=2 target="mainframe" > first page </a> )
Read the parameter in the template page
use PHP to include the textfile ( $id.".inc" in this case)
Now you can use the parameters in the gallery template using <?PHP echo
$VariableName; ?>

Hope this gives you a global idea about how to set it up.


MightyKitten
 
P

Podz

Hope this gives you a global idea about how to set it up.
Thanks MK, it does ... I really do need to sit and try to craft
precisely what I want instead of trying to alter all the other stuff I
can find.

Thanks for replying :)

P.
 
B

burnr

Basically it is very simple: I created my own technique for my
webalbums

Create a webalbum template (basic layout and mechanics)
create a bunch of textfiles with PHP variables,
Let the webalbum template read in the right textfile with each reload,
using PHP parameters with links:


<?PHP
// Name of this textfiel would be "2.inc"
// If a single album has 9 pictures on a page:

$Page_tilte ="Test Album";
$This_album_Nummer = 2;
$Number_of_Albums = 8;

$Picture_holder_1_name = "This is my first picture";
$Picture_holder_1_loc = "../pict/pic_001.jpg";

$Picture_holder_2_name = "This is my second picture";
$Picture_holder_2_loc = "../pict/pic_002.jpg";

//... (skipping boring repats)

$Picture_holder_9_name = "This is my second picture";
$Picture_holder_9_loc = "../pict/pic_009.jpg";

// Be sure you use the same parameter names for each file
?>

Create a webpage that serves at template

For each link to a new album, be sure to add a parameter to the link
url (like <a href="bigpicture.php?id=2 target="mainframe" > first page
</a> ) Read the parameter in the template page
use PHP to include the textfile ( $id.".inc" in this case)
Now you can use the parameters in the gallery template using <?PHP
echo $VariableName; ?>

Hope this gives you a global idea about how to set it up.


MightyKitten

Being a n00b to php kind of (you'd think I'd know more by now), I
appreciate the instructions. I've archived this article :)

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top