Hi,
What's the tag for the full url of a picture? (in theme.php, http://www.mydomain.com/albums/pic01.jpg)
thanks!
try $picture_url (but in fact it depends on the context where you actually want to use it - not all vars exist everywhere). If the var $picture_url doesn't work for you, post more details.
GauGau
Thank you, but i doesn't show. Here are more details. Thank you!
I need a tag wich contains the full url to an image to show on displayimage.php.
Not this link: http://www.hekijknou.nl/fotoalbum/displayimage.php?pos=-5645 but this link: http://www.hekijknou.nl/fotoalbum/albums/2004_35_01/IMG_0001.jpg
When you open this page: http://www.hekijknou.nl/fotoalbum/displayimage.php?pos=-5645 you will see that i've added an row with has this text: Maak gebruik van onze afdrukservice (i.s.m. foto Verschoore)
I want to add another row wich says something like: Send this photo as a real card (not an e-card). When you click it, it should go to http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=10-10-20
But card_id should not be 10-10-20 but: http://www.hekijknou.nl/fotoalbum/albums/2004_35_01/IMG_0001.jpg
So i need a tag ($picture_url) so that i can make a link in theme.php: <a href="http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=$picture_url" target="_blank">Send this photo as a real card (not an e-card)</a>
The adress that shows in the browser should be: http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=http://www.hekijknou.nl/fotoalbum/albums/2004_35_01/IMG_0001.jpg
Example (theme.php):
// 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="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
</td>
<td align="center" valign="middle" class="navmenu" witdh="100%">
{PIC_POS}
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
</td>
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" 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="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
</td>
</tr>
<tr>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="100%">
<a href="http://www.hekijknou.nl/weblog/verschoore.html" onClick="window.open('http://www.hekijknou.nl/weblog/verschoore.html','7741','width=380,height=350,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=0,top=0,screenx=50,screeny=50');return false">Maak gebruik van onze afdrukservice (i.s.m. foto Verschoore)</a>
</td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
</tr>
<tr>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="100%">
<a href="http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id={picture_url}" target="_blank">Send this photo as a real card (not an e-card)</a>
</td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
<td align="center" valign="middle" class="navmenu" width="48"> </td>
</tr>
EOT;
$picture_url exists in displayimage.php, but not in theme.php
To do what you're looking for, edit displayimage.php, find $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
$pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
$pic_html .= "</a>\n";
} else {
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
}
and replace with something like $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
$pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
$pic_html .= "</a>\n";
$pic_html .= "<br />\n";
$pic_html .= "<a href=\"http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=".$CONFIG['ecards_more_pic_target'].$picture_url."\" target=\"_blank\"> Send this photo as a real card (not an e-card)</a>\n";
} else {
$pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
$pic_html .= "<a href=\"http://sendacard.posthuis.nl/index.php?client_id=xxxxxx&card_id=".$CONFIG['ecards_more_pic_target'].$picture_url."\" target=\"_blank\"> Send this photo as a real card (not an e-card)</a><br />\n";
}
(not tested though).
Joachim
P.S. I can't make heads or tails of the code you posted, with all this color and highlighting. Please use the bbcode tag [ c o d e ]echo 'Hello world';[ / c o d e ] (without the spaces) to denote code in postings on this (and other) boards.
Thanks! This is what i was looking for :)