News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

[attachment=1] won't get parse

Started by asmith, December 14, 2008, 05:17:22 PM

Previous topic - Next topic

asmith

Hi,

I've used the attachment positioning 1.21.   everything works fine. But when I try to  :

parse_bbc($message);

in a non-forum, SSI included page.

it shows [attachment=1] on the page. The reason is obvious, the attachment tag is not defined in subs.php  . It is defined in display.php

Can anyone show me the fastest way so that my parse_bbc function parse it right too ??

Thanks in advance

SMF 1.1.7

niko

Quote from: asmith on December 14, 2008, 05:17:22 PM
Hi,

I've used the attachment positioning 1.21.   everything works fine. But when I try to  :

parse_bbc($message);

in a non-forum, SSI included page.

it shows [attachment=1] on the page. The reason is obvious, the attachment tag is not defined in subs.php  . It is defined in display.php

Can anyone show me the fastest way so that my parse_bbc function parse it right too ??

Thanks in advance

SMF 1.1.7

It wouldn't be possible since parse_bbc doesn't have any information about file. you might wanna look how mod does it and replicate functionality.

Also you should keep discussion about mods in mod's support topic.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Advertisement: