Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 22:24

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 30. Mar 2006, 21:46 
In the "HOW-TO" section I read the following:

"You can get the image name by using the variable $image! This makes it possible to include a different file for each image."

How do I use the variable $image?


Top
  
 
 Post subject:
PostPosted: 30. Mar 2006, 22:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This is intended if you want to display some text around the image with hte file image.txt.

a file called image.php can be used as well (change the extension in the config.php).
for example you could write a image.php that includes a file e.g. image1.txt, image2.txt - this makes it possilbe to display a different text for each image (if the caption is not enough!). I made this extension for a art gallery where each image has a big description.

in short - you write php code in the image.php and can use the variable $image in there.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 28. Jul 2006, 20:41 
Offline

Joined: 25. May 2006, 00:49
Posts: 13
Hi,

can you post a image.php samplefile? it is enough for one or two pictures, I just want to see how to make the content of the file!!!

Thanks
R.


Top
 Profile  
 
 Post subject:
PostPosted: 31. Jul 2006, 00:30 
:!: :!: :!:
Can you please type or send a sample code for the mentioned PHP file...
:!: :!: :!:


Top
  
 
 Post subject:
PostPosted: 31. Jul 2006, 09:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
an example is in the example folder:

<?php
include ($image . ".txt");
?>

thats it ;).
You should use html as big navigation type because otherwise ajax is used an this does not exchange the inluded text.


Top
 Profile  
 
 Post subject:
PostPosted: 10. Aug 2006, 23:19 
Offline

Joined: 25. May 2006, 00:49
Posts: 13
Hi,
Thanks for the sampel.

Only for the first picture it shows the text but the text remains the same for all pictures!!!!

I already did the following:

$default_big_navigation="HTML";

thx
R.


Top
 Profile  
 
 Post subject:
PostPosted: 11. Aug 2006, 08:08 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Is the page reloading when you click on a thumb (is the html version of the thumb shown? ) -

if you enter the image page from different thumbs - is the correct text shown?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 11. Aug 2006, 23:57 
Offline

Joined: 25. May 2006, 00:49
Posts: 13
Hi,

Actually I do not know what you exactly mean.

See here the Gallery.

The first 3 images have a corresponding text file.

http://www.vvat.at/twg14/index.php?twg_ ... g_offset=0

Thanks
KR
R.


Top
 Profile  
 
 Post subject:
PostPosted: 13. Aug 2006, 17:40 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
is the text Gruppe?

2. The foldername has a typo !

3. if you only want the text there - why dont you use captions?

Michael


Top
 Profile  
 
 Post subject:
PostPosted: 13. Aug 2006, 17:56 
Offline

Joined: 25. May 2006, 00:49
Posts: 13
Hi Michael,

1)
The Text for the first picture is "Gruppe"
The Text for the Second picture is "Gruppe Alle"
The Text for the third picture is a long text...
Rest of pictures have at the moment no text.

When you go to http://www.vvat.at/twg14/index.php?twg_ ... preis+2006
an klick on the third picture you will get the correct text and also for the other pictres.

It doesn't work when you go http://www.vvat.at/twg14/index.php?twg_ ... Gruppe.jpg
and click on next> and next> etc... the text doesn't change.

2) I dont know what you mean with "Typo"

3) OK, I will check how "Captions" work.

Thanks
R.


Top
 Profile  
 
 Post subject:
PostPosted: 13. Aug 2006, 18:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This is right - because you don't use HTML as default navigation for the big navigation (the scolling version is DHTML!).

chaekc if you have changed this value in my_config.php!

2. Typo = Rechtschreibfehler : Veranstslterpreis 2006

3. Captions - enable login - then login - then you can type captions (I think this what you are actually looking for !)
Most of my demos have this!

You should also check the switches below show_caption - there are several options to use the filenames as captions - this is a way to set the captzions offline!


/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 13. Aug 2006, 18:12 
Offline

Joined: 25. May 2006, 00:49
Posts: 13
THANK YOU

IT Works


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 55 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy