Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,976 through 7,000 (of 32,519 total)
  • Author
    Search Results
  • #171501
    Robin W
    Moderator
    #171498
    mikehende
    Participant

    Thanks, I have already installed and activated the plugin but is there an easy user friendly tutorial for a site owner [not a coder] to setup and have the interface show on a page please?

    #171496
    Robin W
    Moderator

    Hey TK – love this layout – and hate that your commentary got lost – any chance you could give us some code and hints that would let others share this great work.

    I’m happy to help if stuff needs putting together eg i’m happy to write connecting sentences for non-experts if you do one liners for someone who knows what they are doing, and post stuff on the documentation part of bbpress etc.

    Would be a real shame for a great looking site not to become better used !!

    Feel free to contact me via my website if easier http://www.rewweb.co.uk

    #171493
    Robin W
    Moderator

    The user can do this by editing their profile.

    The do that by clicking their name or avatar anywhere on the site.

    Now that is not obvious, so

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#3-adding-an-amend-profilepassword-to-the-login-widget

    #171489
    Robin W
    Moderator

    which ‘shortcode plugin’ ?

    #171486
    Robin W
    Moderator

    Bumping actually has the opposite effect – as most mods look for posts with 0 replies, so by replying to your own post, we only get round to them later !

    start with

    Step by step guide to setting up a bbPress forum – Part 1

    #171480
    Robin W
    Moderator

    ok, now that you have explained what it is, I understand and can help !

    In the code is

     // 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 !

    If you had done this – ie Understand what this does before running.
    you would have known the answer –

    sticky sticks a topic to the top of the forum it belongs in.

    super-sticky sticks a topic to the top of all forums

    #171477
    AlamSyed
    Participant

    To insert a topic in a parent forum with given id. But after successful insertion the topic shows up in other forums and doesnt remain inside the parent forum. The code is a standard way to insert a topic in bbpress programmatically.

    I am just trying to learn this so I can build my website. Thanks for your attention.

    1. http://hookr.io/functions/bbp_insert_topic/
    2. https://github.com/rmccue/bbPress/blob/master/bbp-includes/bbp-topic-functions.php etc.
    #171476
    Robin W
    Moderator

    I answer q’s across many forums, and don’t have the time to work out what it is trying to do so what’s the purpose of the code then?

    #171474
    AlamSyed
    Participant

    WITHOUT THE CODE – what is the problem ? None !
    WITH THE CODE – what is the problem ? Topic shows up in outside parent forum !

    Robin W
    Moderator

    no sorry I still don’t know what exactly your issue is.

    WITHOUT THE CODE – what is the problem?

    #171449
    TKServer
    Participant

    Thanks @netweb for the comments. I worked a LONG time on that home page layout. I posted a rather lengthy commentary here describing how I got it to work, but sadly that post never appeared.

    So it does work if I clean off bbp_reply_id(); but I guess I could save a couple of lines of code by using bbp_get_reply_id();.

    #171447
    Stephen Edgar
    Keymaster

    How about using bbp_get_reply_id ? I think that one is not echoing…

    Correct 🙂

    Throughout much of bbPress this is true, more often than not if there is a function bbp_some_thing there will be a sister function bbp_get_some_thing, the functions with bbp_get_ will always just get the value for you to use, and the functions without it will echo the returned value.

    AlamSyed
    Participant

    Ok the issue is simple. Inserting a topic using the code I have shown I can get the correct child-parent relationship into a forum. However the same topic shows up in a different forum other than the parent and that feels like a bug. Without the code, there is no problem at all if the topic is created from the front end.

    #171441
    Robin W
    Moderator

    I suspect it is a theme issue.

    But if you have created a page and put the shortcode in and that works, then why is this not the solution?

    ps whilst your link is probably fine, MacAfee advised me that it was a suspect site, so I didn’t view your png

    Robin W
    Moderator

    sorry but I am not sure what exactly the issue is.

    It would seem that

    Without your code you have problem a

    and with your code you have problem b

    is that it, AND IF SO can you state your problem without the code you added?

    #171436
    Pascal Casier
    Moderator

    Hi,
    Just some ideas:
    – Did you try with a standard WP theme (to make sure it’s not your theme) ?
    – Do you have more then 1 shortcode on that page ?

    If the site is public, a URL would be great…

    Pascal.

    #171418
    kieranw7261
    Participant

    Hi all,

    I have used the shortcode plugin to show the 5 most recent postings on another page. I want to edit the styling of this so it is more just the text rather than excess spacing. Is there a way to set this up?

    I don’t want the forum header to show, I don’t want it to be so spaced, I don’t want the Viewing 2 topics view to show. So just the title of the topic, who it was started by, when it was added and preferably when it was last posted.

    Current view

    #171414
    Adri Oosterwijk
    Participant

    @robin-w: thank you for your reply. I’m sure it could work. However using this solution forces me to create a function for every language I add.


    @casiepa
    : Goeiemorgen, daar zijn we weer! Thanks for helping out. I have achieved a lot of what I want but the breadcrumbs remains. (for reference, see this topic on WPML: https://wpml.org/forums/topic/multiple-site-languages-but-just-a-bbpress-forum-in-english/).

    As a result of this thread I have an English forum AND a Dutch page displaying the forum with a shortcode with only one set of topics. Exactly what I want.

    For the breadcrumbs I tried to create a solution with an onclick event and then navigate back in the history but that is not reliable. When a user is entering a topic from, let’s say a google search result page and then clicking the breadcrumb link they are send back to the google page.

    I imagine something like this:

    The English page for the forum has the slug: supportforum (for example)
    The Dutch page for the forum has the slug: helpforum (for example)

    On the forum index page no breadcrumbs are needed.
    On the topics page I only want a link back to the forum index for the appropriate language.
    So the ‘solution’ must not link back to the forum slug but to the page where the index lives.
    I have absolutely no idea how to achieve this.

    The outputted link has to be something like this:

    http://www.my-site.com/forumpage-slug/

    For the other languages:
    http://www.my-site.com/language-code/localized-forumpage-slug

    In my case English is the default language and Dutch is the translation.
    The urls should be:

    http://www.my-site.com/supportforum/ -> for the default English language.
    and
    http://www.my-site.com/nl/helpforum -> for the Dutch language forum page.
    and
    same way for every other language added.

    I hope this description make sense.

    HTH

    Regards,

    Adri

    #171408
    iso2013
    Participant

    Hi. I recently installed bbPress along with the Material Gaze theme. I’m having a problem – the /forums/ page shows a line of gibberish with no clickable links. Here is a screenshot: http://s13.postimg.org/w1elw7g07/Untitled.png

    I did try creating a new page with the [bbp-forum-indexx] tag (with 1 x) which worked flawlessly.
    So here are my questions:
    1. Is there a way to use a custom page (and put that shortcode there) for the forum main?
    2. Is there a way to fix the forum index?

    Thanks!

    #171404

    In reply to: bbpress sidebar

    Pascal Casier
    Moderator
    #171403
    Pascal Casier
    Moderator

    Hi,
    Did you check item 26 in the codex ? https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/
    Pascal.

    #171401
    Pascal Casier
    Moderator

    Hi,
    Make your choice:
    1. Check item 1 and 2 from https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/
    2. Install my ‘bbP Toolkit’ plugin.

    Pascal.

    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 ?

    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.

    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 !!!!";
    #171397

    In reply to: bbpress sidebar

    Robin W
    Moderator
Viewing 25 results - 6,976 through 7,000 (of 32,519 total)
Skip to toolbar