FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » image gallerie (image gallerie)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
image gallerie [message #35574] Tue, 23 January 2007 06:54 Go to next message
marslander is currently offline  marslander   Belgium
Messages: 6
Registered: December 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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] Tue, 23 January 2007 19:42 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Make sure remote linking protection (admin setting) is disabled.

FUDforum Core Developer
Re: image gallerie [message #35586 is a reply to message #35582] Wed, 24 January 2007 00:39 Go to previous messageGo to next message
marslander is currently offline  marslander   Belgium
Messages: 6
Registered: December 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
hmm stupid question where is that option ?

don't see it in the admin part and and i'm using egroupware version doh so the 2.6 version of fudforum


and don't seem to find a linking protection in fud maybe in the code somewhere could you tell me where to find it ?


thx
Re: image gallerie [message #35587 is a reply to message #35586] Wed, 24 January 2007 01:00 Go to previous messageGo to next message
marslander is currently offline  marslander   Belgium
Messages: 6
Registered: December 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
hm could you give me how the forum itself ask upa image ?
the link he uses for it whit the database request in ?

maybe i can reuse that say trying to learn php programming and youforum is hell complicated for me for the moment

and maybe coulmd help me see bit better how he calls up the images and reads them from a directory outside the webdirectory

BS
Re: image gallerie [message #35610 is a reply to message #35586] Wed, 24 January 2007 18:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
"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 #35638 is a reply to message #35574] Fri, 26 January 2007 01:51 Go to previous messageGo to next message
marslander is currently offline  marslander   Belgium
Messages: 6
Registered: December 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
sry my fault

the images are not the i the server_root directory

so guess i have to call them whit mysql ..

but dunno how to do that yet ...

so will see where i can find that and recall same way as the forum does
Re: image gallerie [message #35655 is a reply to message #35574] Mon, 29 January 2007 06:42 Go to previous messageGo to next message
marslander is currently offline  marslander   Belgium
Messages: 6
Registered: December 2006
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
could you give me the part how you pullth image back out of the database or show them

since they are stored in a different directory i need to pull them back out true sql i guess

Re: image gallerie [message #35659 is a reply to message #35655] Mon, 29 January 2007 19:59 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
You need to look into the location field in the fud26_attach table.

FUDforum Core Developer
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: FUDFORUMS List
Next Topic: Moving single posts
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Dec 11 01:02:25 EST 2017

Total time taken to generate the page: 0.00715 seconds