attachments to show up on non forum pages

Discussion forum for MOD Writers regarding MOD Development.
Locked
webmasterbri
Registered User
Posts: 7
Joined: Mon Sep 17, 2007 11:28 am

attachments to show up on non forum pages

Post by webmasterbri » Wed Sep 26, 2007 3:15 pm

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.

KFCSpike
Registered User
Posts: 26
Joined: Wed May 18, 2005 11:27 am

Re: attachments to show up on non forum pages

Post by KFCSpike » Wed Sep 26, 2007 5:05 pm

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);

webmasterbri
Registered User
Posts: 7
Joined: Mon Sep 17, 2007 11:28 am

Re: attachments to show up on non forum pages

Post by webmasterbri » Wed Sep 26, 2007 6:49 pm

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.

KFCSpike
Registered User
Posts: 26
Joined: Wed May 18, 2005 11:27 am

Re: attachments to show up on non forum pages

Post by KFCSpike » Fri Sep 28, 2007 6:32 pm

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.

FRP
Registered User
Posts: 13
Joined: Wed Nov 28, 2007 11:37 am
Contact:

Re: attachments to show up on non forum pages

Post by FRP » Wed Nov 28, 2007 11:45 am

Hello,
I'm trying also to use attachment on non forum pages ? Any idea ?
Thanks...

Locked

Return to “[3.0.x] MOD Writers Discussion”