MarkDHamill wrote: I fixed the smilies path problem in the last release.
Code: Select all
$siteURL = $server_protocol . $server_name . $server_port . $script_name;
$smilies_url = $siteURL . $board_config['smilies_path'];
$smilies_path = preg_replace("/\//", "\/", $board_config['smilies_path']);
// End copied code
if (substr($siteURL,(strlen($siteURL)-1),1) <> '/')
{
$siteURL .= '/';
}
Code: Select all
$siteURL = $server_protocol . $server_name . $server_port . $script_name;
if (substr($siteURL,(strlen($siteURL)-1),1) <> '/')
{
$siteURL .= '/';
}
$smilies_url = $siteURL . $board_config['smilies_path'];
$smilies_path = preg_replace("/\//", "\/", $board_config['smilies_path']);
// End copied code
Code: Select all
$topics_only_str = ' AND t.topic_time > UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL ' . $limit . '))'
Code: Select all
## 2006-02-20 - Version 0.4 (Hopefully final Beta version!)
## - Fixed Smilies URL problem
## - An appropriate error message is generated if no arguments are used calling smartfeed.php
## - Included xml.gif image. Does not need to be used but can be used to link to smartfeed_url.php.
## - Included change to lang_faq.php to add a FAQ question about newsfeeds
## - Added a smartfeeds_constant.php include file, to fully separate out the non-language components of lang_constants.php
## - Tweaked feedcreator.class.php a bit in order to remove some feed validator warnings
Code: Select all
## 2006-02-25 - Version 1.0 (Production Release, if the phpBB gods approve)
## - Took out all MySQL specific functions and created equivalent functionality in PHP. Hopefully software is now DBAL compliant.
## - Renamed some variables to more accurately describe their functions
## - Moved fake email address to smartfeed_constants.php where it belongs
Code: Select all
$post_text = '<em>' . $row['username'] . '</em> ' . $lang['smartfeed_wrote'] . ' ' . $lang['smartfeed_at'] . ' <em>' . $row['Post Time'] . ' ' . $timezone . '</em>: ' . $row['post_text'];
Code: Select all
$post_text = '<em>' . $row['username'] . '</em> ' . $lang['smartfeed_wrote'] . ' ' . $lang['smartfeed_at'] . ' <em>' . date('d M Y h:i A ',$row['post_time']) . ' ' . $timezone . '</em>: ' . $row['post_text'];
Code: Select all
>[size=9:ea495928ee][color=blue:ea495928ee][b:ea495928ee]Daron Brewood[/b:ea495928ee][/color:ea495928ee]
Code: Select all
http://www.4winmobile.com/templates/subSilver/images/logo_phpBB.gif
Code: Select all
// Code from rss.php by Sascha Carlin, slightly modified
$post_text = '<em>' . $row['username'] . '</em> ' . $lang['smartfeed_wrote'] . ' ' . $lang['smartfeed_at'] . ' <em>' . date('d M Y h:i A ',$row['post_time']) . ' ' . $timezone . '</em>: ' . $row['post_text'];
$post_text = str_replace("\n", "\n<br />\n", $post_text);
$post_text = bbencode_second_pass($post_text, $row['bbcode_uid']);
$post_text = smilies_pass($post_text);
$post_text = preg_replace("/$smilies_path/", SMILIES_URL, $post_text);
$post_text = make_clickable($post_text);
// Variable reassignment and reformatting for user sig
$user_sig = $row['user_sig'];
$user_sig = bbencode_second_pass($user_sig, $post['user_sig_bbcode_uid']);
$user_sig = smilies_pass($user_sig);
$user_sig = preg_replace("/$smilies_path/", SMILIES_URL, $user_sig);
$user_sig = make_clickable($user_sig);
// End Code from rss.php by Sascha Carlin, slightly modified