Changeset 25 for branches/portal_by_daris/manifest.xml
- Timestamp:
- 02/10/09 13:00:01 (3 years ago)
- Files:
-
- 1 modified
-
branches/portal_by_daris/manifest.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/portal_by_daris/manifest.xml
r23 r25 189 189 190 190 <hook id="ex_qr_get_topics"><![CDATA[ 191 $valid_portal_feed = array('news'); 192 ($hook = get_hook('xn_portal_by_daris_ex_qr_get_topics_add_valid_feed')) ? eval($hook) : null; 193 194 if (isset($_GET['portal_feed']) && in_array($_GET['portal_feed'], $valid_portal_feed)) 195 { 196 $query['SELECT'] .= ', t.first_post_id, p.message'; 197 $query['JOINS'][] = array('LEFT JOIN' => 'posts AS p', 'ON' => 't.first_post_id=p.id'); 198 $query['WHERE'] .= ' AND t.forum_id IN('.$forum_config['o_portal_'.$_GET['portal_feed'].'_forums'].')'; 199 } 191 if (isset($_GET['news_feed'])) 192 $query['WHERE'] .= ' AND t.forum_id IN('.$forum_config['o_portal_news_forums'].')'; 193 200 194 ]]></hook> 201 195 202 196 <hook id="ex_modify_cur_topic_item"><![CDATA[ 203 $valid_portal_feed = array('news'); 204 ($hook = get_hook('xn_portal_by_daris_ex_modify_cur_topic_item_add_valid_feed')) ? eval($hook) : null; 205 206 if (isset($_GET['portal_feed']) && in_array($_GET['portal_feed'], $valid_portal_feed)) 197 198 if (isset($_GET['news_feed'])) 207 199 { 208 200 require_once FORUM_ROOT.'include/parser.php'; … … 214 206 215 207 $desc = $lang_portal['News'].': <a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))); 216 217 ($hook = get_hook('xn_portal_by_daris_ex_modify_cur_topic_item')) ? eval($hook) : null;218 208 219 209 $desc .= '">'.$cur_topic['subject'].'</a><br />'."\n".parse_message(strlen($cur_topic['message']) > 400 ? substr($cur_topic['message'], 0, 400).'...' : $cur_topic['message'], 1);