View Single Post
Old May 12th, 2007, 02:38 PM   #1 (permalink)
globalstrata
Junior Member
Verified Customer
 
Join Date: Apr 2007
Posts: 29
Question Adding more code display information under an Image's "Addition Info" Section

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 = "&lt;a href=&quot;$imgurl&quot;&gt;&lt;img src=&quot;$imgurl&quot; /&gt;&lt;/a&gt;";

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
globalstrata is offline   Reply With Quote