Code: [ Select all ]
$bbcode_tpl['img'] = "<img src=\"$1\" border=\"0\" alt=\"\" />";
$bbcode_tpl['lytebox'] = "<a href=\"$3\" rel=\"lytebox\"><img style=\"border:2px dotted;\" src=\"$3\" width=\"$1\" height=\"$2\" border=\"0\" alt=\"\" /></a>";
$replacements[] = $bbcode_tpl['img'];
$patterns[] = "#\[lytebox width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9]):$bbcode_uid\](.*?)\[/lytebox:$bbcode_uid\]#si";$replacements[] = $bbcode_tpl['lytebox'];
$patterns[] = "#\[youtube\]http://[A-Za-z0-9.]{2,5}.youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#si"; $replacements[] = $bbcode_tpl['youtube'];
$patterns[] = "#\[youtube\]http://[A-Za-z0-9.]{2,5}.youtube.com/watch\?v=([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is"; $replacements[] = $bbcode_tpl['youtube']; $patterns[] = "#\[youtube\]http://youtu.be/([0-9A-Za-z-_]{11})[^[]*\[/youtube\]#is"; $replacements[] = $bbcode_tpl['youtube'];
/************************************************************************* Build the Latest X News Items - to replace the {NEWS} tag************************************************************************/
} //End IF for Latest X News Items
/************************************************************************* Build the Latest X News Items - to replace the {NEWS} tag************************************************************************/ if ( $_POST['msnl_news'] > 0 && $msnl_sTemplateNm != "notemplate" ) { $forum_id = 4; // set to your news forum id, you can get your id by looking at its url modules.php?name=Forums&file=viewforum&f=4 ------ f=4 so 4 is the forum i am using. $i = 0; $msnl_sRows = ""; $sql = "SELECT " ."t.`topic_id` AS topic_id, " ."t.`forum_id` AS forum_id, " ."`topic_last_post_id`, " ."`topic_title`, " ."`topic_views`, " ."`topic_replies`, " ."`post_time`, " ."ut.`username` AS ut_username, " ."ut.`user_id` AS ut_user_id, " ."up.`username` AS up_username, " ."up.`user_id` AS up_user_id " ."FROM `" .$prefix."_bbtopics` t, `" .$prefix."_bbforums` f, `" .$prefix."_bbposts` p, `" .$prefix."_users` ut, `" .$prefix."_users` up " ."WHERE " ."f.`forum_id` = t.`forum_id` " ."AND " ."`post_id` = `topic_last_post_id` " ."AND " ."ut.`user_id` = `topic_poster` " ."AND " ."up.`user_id` = `poster_id` "; if ( $msnl_iHideReadOnly == 1 ) { //Exclude posts which should be hidden $sql .= "AND `auth_view` = '0' AND `auth_read` = '0' "; } $sql .= "AND `topic_moved_id` = '0' " . "AND f.`forum_id`=$forum_id ORDER BY `topic_id` DESC LIMIT 0, ". $_POST['msnl_news']; $result11 = msnl_fSQLCall( $sql ); if ( !$result11 ) { //Bad SQL call msnl_fRaiseAppError( _MSNL_ADM_MAKE_ERR_DBGETPOSTS ); } else { //Successful SQL call while ( $row = $db->sql_fetchrow( $result11 ) ) { $msnl_iTopicID = intval( $row['topic_id'] ); $msnl_iForumID = intval( $row['forum_id'] ); $msnl_iPostID = intval( $row['topic_last_post_id'] ); $msnl_sTopicTitle = stripslashes( $row['topic_title'] ); $msnl_iTopicViews = intval( $row['topic_views'] ); $msnl_iTopicReplies = intval( $row['topic_replies'] ); $msnl_sPostTime = msnl_fFormatDate( $msnl_asPHPBBCfg['default_dateformat'], $row['post_time'], $msnl_asPHPBBCfg['board_timezone'] ); $msnl_sTopicPosterNm = stripslashes( $row['ut_username'] ); $msnl_sTopicPosterID = intval( $row['ut_user_id'] ); $msnl_sLastPosterNm = stripslashes( $row['up_username'] ); $msnl_iLastPosterID = intval( $row['up_user_id'] ); $i = ++$i; //Keep track of row number $msnl_sRowTmp = $latestnewsrow; $msnl_sRowTmp = str_replace( "{ROWNUMBER}", $i, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTOPICLASTPOSTID}", $msnl_iPostID, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTOPICID}", $msnl_iTopicID, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTOPICREPLIES}", $msnl_iTopicReplies, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTOPICTITLE}", $msnl_sTopicTitle, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTPUSERID}", $msnl_iTopicPosterID, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTPUSERNAME}", $msnl_sTopicPosterNm, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FVIEWS}", $msnl_iTopicViews, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FTIME}", $msnl_sPostTime, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FUSERID}", $msnl_iLastPosterID, $msnl_sRowTmp ); $msnl_sRowTmp = str_replace( "{FUSERNAME}", $msnl_sLastPosterNm, $msnl_sRowTmp ); $msnl_sRows .= $msnl_sRowTmp; } //End While $msnl_sLatestNews = $latestnewstop . $msnl_sRows . $latestnewsend; $msnl_sLatestNews = str_replace( "{AMOUNT}", $_POST['msnl_news'], $msnl_sLatestNews ); } //End IF DB call successful} else { //Will not be including Latest Forum Posts $msnl_sLatestNews = "";} //End IF for Latest X News Items
$forum_id = 4; // set to your news forum id, you can get your id by looking at its url modules.php?name=Forums&file=viewforum&f=4 ------ f=4 so 4 is the forum i am using.
$forum_id = 4;
$latestnewstop = "<div class=\"content\"><div class=\"title\"><a href=\"{SITEURL}/modules.php?name=News\">Our {AMOUNT} latest news items.</a></div><table width=\"100%\" align=\"center\"> <tr class=\"subtitle\"> <td width=\"5%\"> </td> <td> Title </td> <td width=\"15%\"> Topic </td> <td width=\"15%\"> Author </td> </tr>";$latestnewsrow = "<tr class=\"row\"> <td> <a href=\"{SITEURL}/modules.php?name=News&file=article&sid={NEWSID}&mode=&order=0&thold=0\"> {ROWNUMBER} </a> </td> <td> <a href=\"{SITEURL}/modules.php?name=News&file=article&sid={NEWSID}&mode=&order=0&thold=0\"> {TITLE} ({HITS} hits) </a> </td> <td> <a href=\"{SITEURL}/modules.php?name=News&new_topic={TOPICID}\"> {TOPIC} </a> </td> <td> {AUTHOR} </td> </tr>";$latestnewsend = "</table></div>";
$latestnewstop .= "<div class=\"content\"><div class=\"title\"><a href=\"{SITEURL}\" title=\"Our latest news items\">Our {AMOUNT} latest news items.</a></div><table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" align=\"center\"> <tr class=\"subtitle\"> <td width=\"5%\"> </td> <td> Topic </td> <td width=\"7%\"> Comments </td> <td width=\"10%\"> Author </td> <td width=\"7%\"> Viewed </td> <td width=\"23%\"> Latest Comment </td> </tr>";$latestnewsrow =" <tr class=\"row\"> <td> {ROWNUMBER} </td> <td> <a href=\"{SITEURL}/modules.php?name=Forums&file=viewtopic&t={FTOPICID}\"> {FTOPICTITLE} </a> </td> <td> {FTOPICREPLIES} </td> <td> <a href=\"{SITEURL}/modules.php?name=Forums&file=profile&mode=viewprofile&u={FTPUSERID}\"> {FTPUSERNAME} </a> </td> <td> {FVIEWS} </td> <td> {FTIME} <br> <a href=\"{SITEURL}/modules.php?name=Forums&file=profile&mode=viewprofile&u={FUSERID}\"> {FUSERNAME} </a> </td> </tr>";$latestnewsend ="</table></div>";
<a href=\"modules.php?name=Your_Account&op=userinfo&username=".mysql_result($result2, 0, 'username')."\">".mysql_result($result2, 0, 'username')."</a>
<a href=\"modules.php?name=Your_Account&op=userinfo&username=".mysql_result($result2, 0, 'username')."\">".UsernameColor(mysql_result($result2, 0, 'username'))."</a>
$name == 'News'
|| $name == 'Forum_News'
if((empty($name) || $name == 'News' || $name == 'Forum_News' || $name == 'Reviews' || $name == 'Stories Archive' || $name == 'Downloads' || $name == 'Web Links' || $name == 'Content') && !defined('IN_PHPBB')) {
$hometext = str_replace("", '<br>', $hometext); return $hometext;
$hometext = str_replace("", '<br>', $hometext); $hometext = evo_img_tag_to_resize($hometext); return $hometext;
$bbcode_tpl['size_close'] = "</span>";
//Float Left/Right edits $bbcode_tpl['fr_open'] = "<div class=\"floatr\">"; $bbcode_tpl['fr_close'] = "</div>"; $bbcode_tpl['fl_open'] = "<div class=\"floatl\">"; $bbcode_tpl['fl_close'] = "</div>"; //StickyNote edits $bbcode_tpl['sn_open'] = '<div class="rotate-1"><div class="postit"><font color="#000000">'; $bbcode_tpl['sn_close'] = "</font></div></div>";
$hometext = str_replace("[/size:$bbcode_uid]", $bbcode_tpl['size_close'], $hometext);
//Float Left/Right Edits $hometext = str_replace("[fr:$bbcode_uid]", $bbcode_tpl['fr_open'], $hometext); $hometext = str_replace("[fl:$bbcode_uid]", $bbcode_tpl['fl_open'], $hometext); $hometext = str_replace("[/fr:$bbcode_uid]", $bbcode_tpl['fr_close'], $hometext); $hometext = str_replace("[/fl:$bbcode_uid]", $bbcode_tpl['fl_close'], $hometext); //StickyNote Edit $hometext = str_replace("[sn:$bbcode_uid]", $bbcode_tpl['sn_open'], $hometext); $hometext = str_replace("[/sn:$bbcode_uid]", $bbcode_tpl['sn_close'], $hometext);
//Float Left/Right edits $bbcode_tpl['fr_open'] = "<div class=\"floatr\">"; $bbcode_tpl['fr_close'] = "</div>"; $bbcode_tpl['fl_open'] = "<div class=\"floatl\">"; $bbcode_tpl['fl_close'] = "</div>"; //StickyNote edits //$bbcode_tpl['sn_open'] = '<div class="rotate-1"><div class="postit"><font color="#000000">'; //$bbcode_tpl['sn_close'] = "</font></div></div>";
.addthis_toolbox { height: 5px;}
output generated using printer-friendly topic mod. All times are GMT - 7 Hours