I'd really like to add a text link underneath the image on the page that
has the e-card icon graphic. I want to do this so it is obvious for less
computer-savvy people -- have it say "Send this picture to a friend."
I can see that it's possibly in the displayimage.php file, but there are
so many variables in that file and I don't know the code for a dynamic
link to go to the send e-card page.
I appreciate any help that anyone can provide. Thanks.
Edit themes/yourtheme/theme.php instead. If the corresponding section doesn't exist in your theme, copy the block (not the entire content of the file) from themes/sample/theme.php instead
The problem is that it's not a feature of any theme.
Where in the theme.php file would I add the code?
(it would appear underneath the image)
AND
Where do I find the code that Coppermine uses to
create a link to the 'Send e-card' page?
Does anybody know? Thanks.
Copy// HTML template for the image navigation bar
$template_img_navbar = <<<EOT
<tr>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="100%">
{PIC_POS}
</td>
<!-- BEGIN report_file_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
</td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif" border="0" align="middle" alt="{ECARD_TITLE}" /></a>
</td>
<!-- END ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif" border="0" align="middle" alt="{PREV_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif" border="0" align="middle" alt="{NEXT_TITLE}" /></a>
</td>
</tr>
EOT;
from themes/sample/theme.php into a new line before?>
of themes/yourtheme/theme.php
Then edit<!-- BEGIN ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif" border="0" align="middle" alt="{ECARD_TITLE}" /></a>
</td>
<!-- END ecard_button -->
as you see fit.
Just to confirm, will this code allow me to add a text link underneath the
normal-sized image? (The displayimage.php has the icon menu, with the
picture underneath, and I want the text link underneath the picture.)
I'll try this out tonight. Thanks for coming through again. If it doesn't work
with the current template I have in place, I'll try to get it to work with the
main template and then just modify the design of the original template to
match the I am currently using.
http://www.soulatino.com/gallery/index.php
Thanks again!
Quote from: rob1111 on April 26, 2007, 09:19:06 PM
Just to confirm, will this code allow me to add a text link underneath the
normal-sized image?
No, this is the image navigation menu. I thought that this was what you wanted to change.
Yes, I apologize for not being more clear (clearer?). That's sort of why
I said in an earlier response that this wasn't a feature in any other theme,
as far as I know.
If it's too difficult to code, let me know. But for the meantime, I'll keep
digging away to try and understand this code. Thanks.