This topic has 7 replies, 3 voices, and was last updated 8 years by Andrei.

  • Author

    Tagged: ,

  • #102000
     AlamSyed
    Participant

    This is my scenario,

    I create a private Forum of type category , then I create two public forums to type forum which are the children of that category forum.  I get a nice category level organization, when I click on the url,

    Home/  Forums/  Private: DummyCategory.

    But when I click on one of the forums ::  Home/ Forums/ Private: DummyCategory/  DummyForum1

    all the posts that do not belong to that forum shows up. It means if I post in DummyForum2 or 1 or any forum, when I click Home/ Forums/ Private: DummyCategory/  DummyForum1 , all the posts show up.

    It can’t be by design ? Is this a bug ?  Most likely some settings need to be changed in the bbpress I suppose , any idea ?

     

    #102001
     AlamSyed
    Participant

    Just for additional details I am using code to add into the forum. I can get the parent child relations between the forums displayed properly, the insertion of the topic goes to the right parent forum. But then that bug shows up.

    COPY CODE
    if (!function_exists('bbp_insert_topic')) {
    				require_once '/includes/topics/functions.php';
    			}
    			
    			echo "All fine here ??? Did it reached ";
    			$forum_ID = $selectmyID;
    			$terms = array(bbp_get_topic_tag_tax_id() => $key_pieces);
    			// The topic data.
    			$topic_data = array(
    			'post_parent' 		=> $forum_ID, // forum ID of Projects  hard coded
    			'post_status'       => bbp_get_public_status_id(),   // Subscribed users can see this
    			'post_content'		=> $my_content,
    			'post_title' 		=> $slug,
    			'comment_status' 	=> 'open',
    			'menu_order' 		=> 0,
    			'tax_input'		    => $terms  
    			);
    			
    			// The topic meta.
    			$topic_meta = array(
    			'forum_id'    => $topic_data['post_parent'],
    			'reply_count' => 0
    			);
    			
    			// NOTICE! Understand what this does before running.
    			$post_id = bbp_insert_topic($topic_data, $topic_meta);
    			bbp_stick_topic($post_id , true);                         // Making it super sticky !
    			
    		 
    			echo "The post id returned is " . $post_id;
    			echo "Sucessfully inserted the post" . $slug . " programmatically !!!!";
    #102141
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #102560
     AlamSyed
    Participant

    Thanks. I am just trying to understand why this functionality is broken, I don’t think its anything related to kleo theme, but it would be very nice if you guys can point me in the right direction to resolve this.

    #102770
     Andrei
    Moderator

    Unfortunately this is a pretty custom case, maybe it’s something related to the way you’re insering your topics or maybe it’s something from bbpress.

    As you supposed this is not related to Kleo, it’s pretty custom and because it needs some testing/debugging time I cannot get involved into it.

    I recommend you to either try your luck on the bbpress forums or hire a devloper to debug and fix your issue.

    Please let me know if I can help you with anything else.

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #102826
     AlamSyed
    Participant

    I will follow your advice on checking on bbpress forums. However what I am doing is not a very custom case, this is the general way to insert posts programatically in bbpress. There is nothing fancy going on in the code, just a simple insert, and as I said I can see the parent of the post being correct yet there is a bug. But anyways thanks for your help.

    #103168
     AlamSyed
    Participant

    I am posting this for all those who may encounter this problem when starting out like me. I was able to resolve this issue using bbpress forums, it was a silly error, the way to resolve this is to make the topic sticky rather than super sticky so it doesn’t shows up in all forums. Here is the link to my bbpress discussion.

    #103206
     Andrei
    Moderator

    Thanks for posting this over here, glad you got your issue solved.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?