Page 1 of 1

attachments to show up on non forum pages

Posted: Wed Sep 26, 2007 3:15 pm
by webmasterbri
Rewriting my entire site to use phpbb3 on every page but when i grab posts to use as a news article on an external page the attachment doesn't show up. I have read through 27 pages of this forum and found no answers. So I'd like to find out if any of you have found a way to get attachments to display on pages on your site that are not part of phpbb3.

Re: attachments to show up on non forum pages

Posted: Wed Sep 26, 2007 5:05 pm
by KFCSpike
I'm doing similar but I don't need attachments - I only use inline images (i.e. Img bb code).
If this is enough I can let you see my code.

If this is not enough and you really need genuine attachments to show, I suggest you have a look at viewtopic.php and look at the code around:

Code: Select all

parse_attachments($forum_id, $message, $attachments[$row['post_id']], $update_count);

Re: attachments to show up on non forum pages

Posted: Wed Sep 26, 2007 6:49 pm
by webmasterbri
i've tried it several ways including the way you suggested and none seem to work. I even tried doing it with just inline images but the images don't display on the page.

Re: attachments to show up on non forum pages

Posted: Fri Sep 28, 2007 6:32 pm
by KFCSpike
PM sent - I don't think the code will be of interest to anyone else (and its not been tested very well so might be buggy!) so thought it best not to post it in the thread.
Hope it helps you work out your own requirements.

Re: attachments to show up on non forum pages

Posted: Wed Nov 28, 2007 11:45 am
by FRP
Hello,
I'm trying also to use attachment on non forum pages ? Any idea ?
Thanks...