Author: joey_4ers » Wed Jan 31, 2007 2:55 pm
..
That didnt work ..
renameing the /includes/def_tree.php file made it very intermitant .. which was alot better
making these changes
//define('CACHE_TREE', true);
//define('CACHE_WORDS', true);
//define('CACHE_THEMES', true);
made it happen all the time.
here is te def_tree.php
[code]<php> idx,// $tree['type'][idx] => type of the row, can be 'c' for categories or 'f' for forums,// $tree['id'][idx] => value of the row id : cat_id for cats, forum_id for forums,// $tree['data'][idx] => db table row,// $tree['main'][idx] => parent id,// $tree['sub'][id] => array of sub-level ids,//-------------------------------------------------------------------------------------------------- $tree = array( 'keys' => array('c1' => 0, 'f4' => 1, 'f5' => 2, 'f33' => 3, 'f34' => 4, 'f35' => 5, 'f36' => 6, 'f37' => 7, 'f38' => 8, 'f39' => 9, 'f40' => 10, 'f6' => 11, 'f30' => 12, 'c2' => 13, 'f7' => 14, 'f41' => 15, 'f9' => 16, 'f29' => 17, 'f24' => 18, 'f31' => 19, 'f28' => 20, 'f10' => 21, 'f15' => 22, 'f16' => 23, 'f17' => 24, 'f18' => 25, 'f19' => 26, 'f20' => 27, 'f21' => 28, 'f22' => 29, 'f11' => 30, 'f12' => 31, 'f13' => 32, 'f14' => 33, 'f32' => 34, 'c3' => 35, 'f25' => 36, 'f23' => 37, 'c4' => 38, 'f27' => 39, 'f26' => 40), 'type' => array('c', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'c', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'c', 'f', 'f', 'c', 'f', 'f'), 'id' => array('1', '4', '5', '33', '34', '35', '36', '37', '38', '39', '40', '6', '30', '2', '7', '41', '9', '29', '24', '31', '28', '10', '15', '16', '17', '18', '19', '20', '21', '22', '11', '12', '13', '14', '32', '3', '25', '23', '4', '27', '26'), 'data' => array( array( 'cat_id' => '1', 'cat_title' => 'Guild Public Access', 'cat_order' => '10', 'cat_main_type' => 'c', 'cat_main' => '0', 'cat_desc' => '', 'icon' => '', 'main' => 'Root', ), array( 'forum_id' => '4', 'cat_id' => '1', 'forum_name' => 'Public General Discussion', 'forum_desc' => 'Discuss public matters here.', 'forum_status' => '0', 'forum_order' => '20', 'forum_posts' => '32', 'forum_topics' => '6', 'forum_last_post_id' => '12942', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '1', 'auth_reply' => '1', 'auth_edit' => '1', 'auth_delete' => '3', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '3', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'c', 'auth_cal' => '3', 'auth_ban' => '5', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'c1', ), array( 'forum_id' => '5', 'cat_id' => '1', 'forum_name' => 'Recruitment', 'forum_desc' => 'Apply for membership in the Conclave', 'forum_status' => '0', 'forum_order' => '30', 'forum_posts' => '48', 'forum_topics' => '15', 'forum_last_post_id' => '13184', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '3', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'c', 'auth_cal' => '3', 'auth_ban' => '5', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'c1', ), array( 'forum_id' => '33', 'cat_id' => '5', 'forum_name' => 'Druids', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '40', 'forum_posts' => '21', 'forum_topics' => '5', 'forum_last_post_id' => '10297', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '34', 'cat_id' => '5', 'forum_name' => 'Hunters', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '50', 'forum_posts' => '34', 'forum_topics' => '12', 'forum_last_post_id' => '12017', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '35', 'cat_id' => '5', 'forum_name' => 'Mages', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '60', 'forum_posts' => '56', 'forum_topics' => '14', 'forum_last_post_id' => '12108', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '36', 'cat_id' => '5', 'forum_name' => 'Priests', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '70', 'forum_posts' => '20', 'forum_topics' => '6', 'forum_last_post_id' => '12745', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '37', 'cat_id' => '5', 'forum_name' => 'Shaman', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '80', 'forum_posts' => '15', 'forum_topics' => '6', 'forum_last_post_id' => '10589', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '38', 'cat_id' => '5', 'forum_name' => 'Warlocks', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '90', 'forum_posts' => '48', 'forum_topics' => '16', 'forum_last_post_id' => '11624', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ), array( 'forum_id' => '39', 'cat_id' => '5', 'forum_name' => 'Warriors', 'forum_desc' => '', 'forum_status' => '0', 'forum_order' => '100', 'forum_posts' => '77', 'forum_topics' => '18', 'forum_last_post_id' => '11900', 'prune_next' => '', 'prune_enable' => '0', 'points_disabled' => '1', 'auth_view' => '0', 'auth_read' => '0', 'auth_post' => '0', 'auth_reply' => '0', 'auth_edit' => '1', 'auth_delete' => '5', 'auth_sticky' => '3', 'auth_announce' => '3', 'auth_global_announce' => '5', 'auth_vote' => '1', 'auth_pollcreate' => '1', 'auth_attachments' => '3', 'auth_download' => '0', 'auth_news' => '3', 'forum_link' => '', 'forum_link_internal' => '0', 'forum_link_hit_count' => '0', 'forum_link_hit' => '0', 'icon' => '', 'main_type' => 'f', 'auth_cal' => '3', 'auth_ban' => '3', 'auth_greencard' => '5', 'auth_bluecard' => '1', 'auth_delayedpost' => '3', 'main' => 'f5', ),
Last edited by
joey_4ers on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.