image gallerie [message #35574] |
Tue, 23 January 2007 11:54 |
marslander
Messages: 6 Registered: December 2006
Karma: 0
|
Junior Member |
|
|
hey
i had a question from a friend asking if i could pull out all the images from the forum and drop them in a gallerie whit there name and say in different subgalliers for each topic there is hm
and i'm runnign fud forum true egroupware and i don't do any programming in php ... but learining
i got this far say only trying to get all the images visible on one page whit there id and owner id for now but i get the id location and all
but the images don't show ?
<?php
include 'config.php.inc';
include 'opendb.php.inc';
$query = "SELECT id, original_name, owner, location FROM phpgw_fud_attach";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "id : {$row['id']} <br>" .
"original_name : {$row['original_name']} <br>" .
"owner : {$row['owner']} <br>" .
"location :{$row['location']} <br> " .
"<img file="{$row['location']}> <br><br>" ;
}
include 'closedb.php.inc';
?>
|
|
|
Re: image gallerie [message #35582 is a reply to message #35574] |
Wed, 24 January 2007 00:42 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Make sure remote linking protection (admin setting) is disabled.
FUDforum Core Developer
|
|
|
|
|
Re: image gallerie [message #35610 is a reply to message #35586] |
Wed, 24 January 2007 23:45 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
"Attachment Referrer Check:" is the option's name, if you search for it on the admin panel page you should find it.
The attachment displaying code simply takes the id of the attachment and returns content of the attachment back assuming it exists and you have access to it.
FUDforum Core Developer
|
|
|
|
|
Re: image gallerie [message #35659 is a reply to message #35655] |
Tue, 30 January 2007 00:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to look into the location field in the fud26_attach table.
FUDforum Core Developer
|
|
|