Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 851 through 875 (of 1,687 total)
  • Author
    Search Results
  • #142073

    Hello everyone,

    Recently we’ve been starting to use bbPress and it seems to be a very rich expansion of WordPress. What I wonder about is this: is it possible to show all sticky topics on your front page, using a shortcode? Say I have a part of my site that is the forum, I would still want to show the sticky topics in a widget in a sidebar, right from the start on the home page. I’ve read about shortcodes listing most popular or most recent topics, but is this possible for stickies too?

    Many thanks,
    Lucas

    #141994
    PetruTiglar
    Participant

    Hey guys, I’m new to BBpress. so I have a few questions that I’m hoping can be solved here.
    The theme I’m using has 2 different custom Sidebars and other features that can be enabled and disabled on the page settings.

    I’ve created a custom Page template for the forum and tried using the Shortcodes to implement BBpress on the page and it works but once you click something on the page it directs back to the original template. Is there a way to have the whole forum and index and everything on the one page?

    Thanks

    #141912
    #141894
    Shmoo
    Participant

    – Yes the plugin is 100% sure active and working because you can see ( red border ) the topic is reported , I’ve even deactivated & activated it again to make sure when I saw that error.

    – It’s a clean copy-/paste from the plugin’s functions file. I’ve even added echo in front of it to check if there was a difference but both with & without echo have the same error.

    Why I ask if a plugin function can be private or protected is, when I take a look inside the plugin function-file I see all functions wrapped inside a class which is pretty standard for making plugins I’ve seen online.

    But I also see something like this:

    
    	protected $version = '1.0.0';
    	protected $plugin_slug = 'bbpress-report-content';
    	protected static $instance = null;
    	protected $plugin_screen_hook_suffix = null;
    	protected $plugin_path = null;
    ____
    	private function __construct() { ....
    
    ____
    	public static function get_instance() {
    
    		// If the single instance hasn't been set, set it now.
    		if ( null == self::$instance ) {
    			self::$instance = new self;
    		}
    
    		return self::$instance;
    	}
    
    

    Most functions have public function function_name() and the function I would like to use has only function function_name()

    That made me think maybe my function it’s protected, so I started testing and searching online and did this inside my page template.

    
    <?php if(function_exists('get_topic_report_link')) {
    echo get_topic_report_link( $args = '' );
    } else {
    echo 'Function does not exists..';
    }
     ?>
    

    It takes the ELSE option so there is something wrong right.

    ___

    This is what I did to kill for example the Merge link from the admin_links, preventing it would show up something else when called upon.

    
    function shmoo_kill_topic_merge_link( $r ) {
    	$r = null;
    	return $r;
    }
    add_filter( 'bbp_get_topic_merge_link', 'shmoo_kill_topic_merge_link' );
    

    I’m a Check Norris fan, when I change stuff it has to be NULL 😉

    I know, I probably add and write too much functions-/codes of my own to alter the bbPress core but at least I’m getting it done right now and starting to understand how it works a little. In a few years I will be better ( hopefully ) and add more logic to my projects.

    #141854

    Maybe this is already obvious, but if you’re already logged in, those pages aren’t going to work for you; bbPress will either show a message, or redirect away from them, depending on what you’re setup is.

    The login page here is a (much more complicated) version of what is already in bbPress core, using a WordPress Page and the shortcode. (It’s only complex because of shared logins and integration with WordPress.org, Trac, BuddyPress.org, etc…) Meaning, it can’t be broken for you, because if you’re only using bbPress’s method and shortcodes, it’s exactly what’s also working here.

    We’ve considered a few different ways of auto-creating the login/register/lost-password pages (and maybe there are some improvements we can make in this regard) however we haven’t settled on a solution we feel works for the 80% of users that want the out-of-the-box experience, that also doesn’t conflict with existing WordPress registration plugins.

    If you could describe what you think the ultimate experience would be, we’re all ears. 🙂

    #141834
    AuthorAdam
    Participant

    Hello!

    I’ve searched the forums for a topic that has the same issues as I’m having, to no avail. I have created a website using wordpress.org (http://meechanchronicles.com/Install), and installed bbPress version 2.53. I’ve been able to create the forum, and using wordpress, I’ve created a couple of forums and one topic.

    I followed the bbPress codex for adding Login/Register pages, as well as a Lost Password page. Whenever I try and access the forum from the outside (ie not logged into WordPress), I seem to be stick in a circular link that never actually does anything.

    In addition, neither the Register/Lost Password pages work, returning a 404 error. I’ve double checked the shortcode links as well as made sure that the permalink addresses are spelled correctly and match the shortcodes.

    I am totally new to creating forums, but I feel that I’m missing something simple. Any help is greatly appreciated.

    Thanks!
    Adam

    #141808
    brightbell
    Participant

    When I installed BBpress I was able to add a topic and a form and the Forums entry was visible to the administrator account.
    Now if I log in as administrator or any account the forums are not visible or available.
    You can see a basic list but as soon as you click on anything page not found 404 comes up
    The shortcodes do produce an output from the forum if put in a new page or in the footer but
    the url
    http://racingpigeon.com/forums/ is blocked whereas the same shortcode in
    a new page added at http://racingpigeon.com/forumsx/ produces output

    If I log out then I see the output at

    http://racingpigeon.com/forums/
    I have tried all different levels of forum access but none lets me see it.

    bbPress Version 2.5.3
    Wordpress Ver WordPress 3.8.1 Maintenance Release January 23, 2014

    Thanks Ian

    #141760
    #141757
    avgmatt
    Participant

    Thanks. I was hoping it was that easy. Is there a list of bbpress shortcodes somewhere?

    #141754

    The easiest way to do this is to make a WordPress page with the same slug as your forum root. bbPress will see that page and yield to it, letting it render instead of your forums.

    In that page’s content, use the bbp-forum-index shortcode, along with any other HTML, shortcodes, or whatever else you want there. You can get really fancy with your forum index using modifications in a child theme, custom template parts, page templates, forum archives, etc…

    #141752
    avgmatt
    Participant

    I have my forum all set up about how I want it and I am using the stock root /forums as the forum front page. How do I go about adding to the main area above and below the forum? I would like to add items such as banners or use shortcodes for topic info. Where would this root page file be located?

    Thank You
    Matt

    http://averageoutdoorsman.com/forums/

    #141750

    bbPress comes with widgets and a shortcodes to help with rerouting logins and sign-ups (which are what we use here on bbpress.org), but you’ll likely want to look into other third party plugins for actually taking over and controlling the stock experience.

    • bbp-login
    • bbp-register
    • bbl-lost-pass
    #141680
    PCTP
    Participant

    Are there any other options … plugins, for example, that will change the look of the forum, but not the theme? I would have no idea where to place the filter codes and not even sure how that would change the forum look.

    #141619
    Shmoo
    Participant
    Anonymous User 5853594
    Inactive

    It can be done in a roundabout manner by using a shortcode. You insert a topic with the [bbp-single-topic id=$topic_id] tag and voila, you’ve got a post which displays/links a topic.

    #141502
    jules22
    Participant

    I would like to put my search for the forums in my footer.
    <div class=”bbp-search-form”></div>, essentially move this to the footer. I need to echo out this form with php in the footer.

    I tried… echo do_shortcode(‘[bbp-search]‘) and [bbp-search-form]… those 2 shortcodes did not work. However other bbpress shortcodes did work with do_shortcode. Any other options. Or what is the php function that is called to output the search input box ? Thanks Jillian

    #141484
    jules22
    Participant

    I would like to put my search for the forums in my footer.
    <div class=”bbp-search-form”></div>, essentially move this to the footer. I need to echo out this form with php in the footer.

    I tried… echo do_shortcode(‘[bbp-search]‘) and [bbp-search-form]… those 2 shortcodes did not work. However other bbpress shortcodes did work with do_shortcode. Any other options. Or what is the php function that is called to output the search input box ? Thanks Jillian.

    #141463
    avgmatt
    Participant

    Thank You for that info. I set up the new directory and file like you mentioned. Do I need to do more or should it adapt.

    I have the new bbPress folder created under the wp-content/themes folder and added the new php file to it.

    Here are the forum pages I am messing with.
    The basic forum root averageoutdoorsman.com/forums/
    The new page using shortcodes averageoutdoorsman.com/ao-forums/

    Nothing has changed in either since I created the suggested files. Do I need to specify the new theme file somehow?

    Thanks for your help.

    Matt

    #141432
    avgmatt
    Participant

    I really love how your forum is laid out. I have been trying to set mine up similar to that style and can’t get it. I really want the separated categories like that. I kinda got it working with shortcodes on a new page but its not that great. Do you mind sharing how you did yours?

    #141420

    Topic: Forum root

    in forum Troubleshooting
    koendb
    Participant

    I want my forum root to display the a list of forums instead of their parent categories.
    I am able to do this using these shortcodes on a page I added myself:

    [bbp-single-forum id=10621]
    [bbp-single-forum id=10623]
    [bbp-single-forum id=10625]
    [bbp-single-forum id=10627]
    [bbp-single-forum id=10611]

    You can see this working on my forum page. This is how I want my forum root to look.

    But when navigating the forum, the breadcrumbs link to the ‘real’ forum root. When I add
    echo do_shortcode('[bbp-single-forum id=10621]');
    to the template file of this page it adds the categories index again (just like [bbp-forum-index] would).

    How could I get the individual forums on the forum root OR change the links in my breadcrumb?
    Thank!

    WP 3.8
    bbPress 2.5.1
    Website: 24Baby

    #141327
    LabSecrets
    Participant

    @benjik

    Sounds like the problem is that you actually “do” have a page called “forums” that is in the trash and you have to EMPTY the trash to get rid of it. Once you do, then you can create it again with the proper short codes and page slug of “forums” (instead of “/forums2”)

    Cheers!
    spence

    #141308
    Stephen Edgar
    Keymaster

    I can directly add the vimeo url to the topic and it seems to work. Is that the best way to do it?

    This is the easiest and best way to do it as WordPress is actually controlling this rather than you having to use shortcodes.

    See this for more info (and other links that work the same way) https://codex.wordpress.org/Embeds

    #141293
    Haz
    Participant

    Hi All, I am a bit confused and I need some advice. I have a bbpress forum and I want to place vimeo video in the topics and replies. Is there a plugin (or plugins) that allow me to use shortcodes. Viper’s does not seem to work.

    I can directly add the vimeo url to the topic and it seems to work. Is that the best way to do it? Shouldn’t I be using shortcodes instead.

    I am running the lastest WP 3.8 and the latest bbpress.

    Thanks in advance for your help.

    #141256
    piccart
    Participant

    ok, I’ve figured it out.

    the files which have to be edited are:
    bbpress/templates/default/bbpress/content-single-forum.php
    bbpress/templates/default/bbpress/content-single-topic.php

    in the first one you’ll have to cut off this line in each place it comes:
    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    and substitute with something like this, to make the new-topic link:
    <a href="http://mywebsite.com/form-new-topic/?forum_id=<?php bbp_forum_id(); ?>

    then you create a new template page (which you’ll assign to a page called “Form New Topic”) copying your theme default page, and adding at the top /* Template Name: Form New Topic */ . then you can substitute the function which displays the content, or just add this below it:

    $forum_id = $_GET['forum_id'];
    echo do_shortcode("[bbp-topic-form forum_id=$forum_id]");

    at the same you can edit the second file (the topics list) substituting this:
    <?php bbp_get_template_part( 'form', 'reply' ); ?>

    with something like this:
    <a href="http://mywebsite.com/form-new-reply/?topic_id=<?php bbp_topic_id(); ?>

    and then create a new template called “Form New Reply”, and add a code similar to the other one but using the shortcode to display the reply form. unfortunately the shortcode for the reply form seems to don’t have a topic id attribute, according to this list: https://codex.bbpress.org/shortcodes/

    I’ll make some test to see how it react, the only other solution I see is to make a spoiler with the reply form, so it’s hidden till you click.

    p.s. you can also store the ids into variables, using these functions:

    $forum_id = bbp_get_forum_id();
    $topic_id = bbp_get_topic_id();
    #141157

    In reply to: WP PAGE

    Stephen Edgar
    Keymaster

    Use the [bbp-single-forum id=$forum_id] shortcode on your page.

    https://codex.bbpress.org/shortcodes/

Viewing 25 results - 851 through 875 (of 1,687 total)
Skip to toolbar