creata.physics Posted March 8, 2011 Share Posted March 8, 2011 Sorry, can you please dump $cat for me then so I can get a good idea one what were working with? Also did you at least try changing it to $cat[0]? it seems the structure of $nforums seems to be the same, or am i missing something? Quote Link to comment Share on other sites More sharing options...
doddsey_65 Posted March 8, 2011 Author Share Posted March 8, 2011 its alot since i updated the database with new records but here is the dump of $cat array(2) { [0]=> array(9) { ["f_fid"]=> string(1) "8" ["p_id"]=> string(1) "0" ["f_name"]=> string(7) "Testing" ["f_description"]=> string(0) "" ["f_topics"]=> string(1) "0" ["f_posts"]=> string(1) "0" ["f_last_post"]=> NULL ["f_last_post_time"]=> NULL ["f_last_poster"]=> NULL } [1]=> array(2) { [0]=> array(10) { ["f_fid"]=> string(1) "2" ["p_id"]=> string(1) "1" ["f_name"]=> string(12) "New Features" ["f_description"]=> string(112) "This is the place to visit if you want to know what new feature have already been implemented. Updated Regularly" ["f_topics"]=> string(1) "9" ["f_posts"]=> string(2) "20" ["f_last_post"]=> string(21) "jQuery Pagination Fix" ["f_last_post_time"]=> string(10) "1298989371" ["f_last_poster"]=> string(9) "doddsey65" ["subforums"]=> NULL } [1]=> array(10) { ["f_fid"]=> string(1) "9" ["p_id"]=> string(1) "8" ["f_name"]=> string(15) "Test Playground" ["f_description"]=> string(134) "If you want to test some of the features ASF has to offer then this is the place to do so. Please don't test features in other forums." ["f_topics"]=> string(1) "1" ["f_posts"]=> string(1) "1" ["f_last_post"]=> string(13) "Testing Topic" ["f_last_post_time"]=> string(10) "1299012792" ["f_last_poster"]=> string(5) "spicy" ["subforums"]=> NULL } } } i did change it to $cat 1 but that just replaced the category name with the forum name and showed several categories for each forum each with the forum name. Here is the address for the github repository so you can have a better look. https://github.com/doddsey65/ASF-A-Simple-Forum/blob/master/functions/functions.php Quote Link to comment Share on other sites More sharing options...
creata.physics Posted March 8, 2011 Share Posted March 8, 2011 Do you happen to have a messenger client so you can add my msn and we can take this a little more in depth? If so go ahead and add me, creata.physics [at] gmail [dot] com I do see that your main cat is in $cat[0] and the children are in $cat[1], im assuming this is another rendering problem since the array is 100% correct, so if you can add me we can get this corrected a lot faster, if not we'll just get it resolved here on the forums. Quote Link to comment Share on other sites More sharing options...
doddsey_65 Posted March 8, 2011 Author Share Posted March 8, 2011 ive added you on gmail. it is a rendering problem i think but its beyond me as to why its behaving as such Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.