- Timestamp:
- 03/31/11 14:52:35 (1 year ago)
- Files:
-
- phpBB2/index.php (modified) (5 diffs)
- phpBB2/posting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpBB2/index.php
r317 r336 128 128 // Start page proper 129 129 // 130 $sql = 'SELECT c.cat_id, c.cat_title, c.cat_order 131 FROM ' . FORUM_CATEGORIES_TABLE . ' c 132 ORDER BY c.cat_order'; 133 $result = $db->sql_query($sql, 31536000); 134 135 $category_rows = array(); 136 while ($row = $db->sql_fetchrow($result)) 137 { 138 $category_rows[] = $row; 139 } 140 $db->sql_freeresult($result); 130 131 $category_rows = $cache->obtainForumCats(); 132 141 133 // Begin Simple Subforums MOD 142 134 $subforums_list = array(); … … 321 313 // Okay, let's build the index 322 314 // 323 for($i = 0; $i < $total_categories; $i++) 324 { 325 $cat_id = $category_rows[$i]['cat_id']; 326 327 // www.phpBB-SEO.com SEO TOOLKIT BEGIN 328 $seo->set_url($category_rows[$i]['cat_title'], $cat_id, $seo->seo_static['forum_cat']); 329 // www.phpBB-SEO.com SEO TOOLKIT END 315 foreach ( $category_rows AS $cat_id => $category ) 316 { 330 317 331 318 // … … 338 325 $template->assign_block_vars('catrow', array( 339 326 'CAT_ID' => $cat_id, 340 'CAT_DESC' => $category _rows[$i]['cat_title'],327 'CAT_DESC' => $category['cat_title'], 341 328 'U_VIEWCAT' => append_sid($root_path . "phpbb2.php?" . POST_CAT_URL . "=$cat_id")) 342 329 ); … … 391 378 $topics = $forum_data[$j]['forum_topics']; 392 379 380 $seo->setForumUrl($forum_data[$j]['forum_id'], $forum_data[$j]['forum_name']); 381 393 382 // www.phpBB-SEO.com SEO TOOLKIT BEGIN 394 383 if( !$forum_data[$j]['forum_parent'] ) { 395 $seo->set_parent($forum_data[$j]['forum_id'], $seo->seo_static['forum'], $cat_id, $seo->seo_static['forum_cat']); 396 397 $seo->set_url($forum_data[$j]['forum_name'], $forum_id, $seo->seo_static['forum']); 398 $seo->set_parent($forum_data[$j]['topic_id'], $seo->seo_static['topic'], $forum_id, $seo->seo_static['forum']); 399 $seo->set_url($forum_data[$j]['topic_title'], $forum_data[$j]['topic_id'], $seo->seo_static['topic']); 384 385 $seo->set_parent($forum_data[$j]['topic_id'], $seo->seo_static['topic'], $forum_id, $seo->seo_static['forum']); 386 $seo->set_url($forum_data[$j]['topic_title'], $forum_data[$j]['topic_id'], $seo->seo_static['topic']); 400 387 401 388 $u_viewforum = append_sid($root_path . "phpbb2.php?page=viewforum&" . POST_FORUM_URL . "=$forum_id"); … … 557 544 558 545 // www.phpBB-SEO.com SEO TOOLKIT BEGIN 559 $seo->set_parent($forum_data['forum_id'], $seo->seo_static['forum'], $parent_id, $seo->seo_static['forum']); 560 561 $seo->set_url($forum_data['forum_name'], $forum_data['forum_id'], $seo->seo_static['forum']); 546 $seo->setForumUrl($forum_data['forum_id'], $forum_data['forum_name']); 562 547 563 548 phpBB2/posting.php
r324 r336 240 240 241 241 // www.phpBB-SEO.com SEO TOOLKIT BEGIN 242 $seo->setForumUrl($forum_id, $forum_name); 242 243 if ( $mode <> 'newtopic' ) { 243 $seo->set_url($post_info['topic_title'], $post_info['topic_id'], $seo->seo_static['topic']);244 }245 $seo->set_url($forum_name, $forum_id, $seo->seo_static['forum']);244 $seo->set_parent($post_info['topic_id'], $seo->seo_static['topic'], $forum_id, $seo->seo_static['forum']); 245 $seo->set_url($post_info['topic_title'], $post_info['topic_id'], $seo->seo_static['topic']); 246 } 246 247 // www.phpBB-SEO.com SEO TOOLKIT END 247 248
