I want to add code for people to people to see a clickable HTML code for each image. To do this, I know that I have to modify the following:
- <language>.php
- showphoto.tmpl
- showphoto.php
1. In <language>.php, I added $Globals['pp_lang']['htmlcodeclick']
2. In showphoto.tml, I searched for $Globals['pp_lang']['htmlcode'], copied the row for the table and pasted it just below.
3. Modified the code that I duplicated to use $Globals['pp_lang']['htmlcodeclick'] instead of $Globals['pp_lang']['htmlcode']
4. In that duplicate code that I create in step #2, I modified {$showhtmlcode} to say {$showhtmlcodeclick}
5. In the showphoto.php, I searched for $showhtmlcode (around code line 1453) and just below I added the following line:
$showhtmlcodeclick = "<a href="$imgurl"><img src="$imgurl" /></a>";
Now, I have three questions:
1. How do I change the form so the field shows multiple lines?
2. How do I change the $imgurl so it display the thumbnail instead of the medium picture?
3. Are the pictures saved in the database? If so, is there any way that I can save them in disk instead?
I have already started modifying the code. You can see a sample of what I am doing by going to:
http://photos.origanime.com/showphot...2/limit/recent. As you see, the field is not displaying the whole code.
Thanks,
Gladys