Smileys on external page

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
Registered User
Posts: 261
Joined: Tue Feb 25, 2003 8:10 am
Location: This Post

Smileys on external page

Post by Mooncow » Fri Apr 01, 2016 3:40 pm

Hi, so I've pulled some topics to an external page on my website, but following the upgrade to 3.1 the smileys do not show: (4th 5th and 6th posts down for examples)

The parsing from the smiley code to image URL works, but instead of the regular root path defined, it adds my server file structure!

This is the root and includes i have:

Code: Select all

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : 'forum/';
require_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
require_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
require_once('functions_news.' . $phpEx);
I love teh phpBB

User avatar
Registered User
Posts: 3806
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: Smileys on external page

Post by MarkDHamill » Sat May 28, 2016 2:41 am

There is a generate_text_for_display function in phpBB. I think you'd need to call that as it should take smilies, BBCode etc and turn it into HTML.

In phpBB 3.2 it will become moot as posts will store as HTML in the database, at least new posts.
Get the latest versions of my Digests and Smartfeed extensions.
Need phpBB services or a phpBB consultant? I offer most phpBB services.

Post Reply

Return to “Extension Writers Discussion”