Forums

diplay photo in the loader

wissam.abdo@usj.edu.lb 12 Feb, 2013
Hi,
I have a form loader where i display mu registered users:

example, in the custom code I put:
<td><?php echo $worldassemblyform3['Name']; ?></td>
<td><?php echo $worldassemblyform3['First_Name']; ?></td>
.....

if i add the field of the photo, I'll have only the path (it is normal since only the path of the photo is saved in the database ).

My question is how can I display the photo in this form?

thank you
GreyHead 12 Feb, 2013
Hi wissam.abdo,

You can usually convert a path to a URL like this:
<?php
$url = str_replace(JPATH_SITE.DS, JURI::root(), $path);
?>

Bob
wissam.abdo@usj.edu.lb 15 Feb, 2013
but how can i use this script? (<?php
$url = str_replace(JPATH_SITE.DS, JURI::root(), $path);
?>)

my field named PHOTO, should i insert it AFTER this?
> </td></tr>
<tr><td><b><font color="darkred">List of registered users:</font></b></td></tr>
<tr><td><b>----------------------------------------------------------------------</b></td></tr>
<?php
foreach($form->data['worldassemblyform3'] as $worldassemblyform3):
?>
<tr>
GreyHead 15 Feb, 2013
Hi wissam.abdo,

Yes, probably but very hard to tell from the information you have posted.

Bob
This topic is locked and no more replies can be posted.