Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 251 through 275 (of 1,687 total)
  • Author
    Search Results
  • BizDev Results
    Participant

    Hello and thanks in advance for the help. I am new to bbpress.

    I have been looking for a way to arrange my bbpress page to look like the https://bbpress.org/forums/

    With a short description of each forum on the left hand column and the list of recent topics on the right.

    Is this done with shortcodes or css or will it require development? if it is shortcodes, can someone share them with me?

    Thanks!

    #200569
    bdd
    Participant

    When members on my site are pasting text into a post, it’s showing up as a bunch of code with HTML tags. If I paste the same text as an admin, it shows up fine. I’d like it to either work for them like it works for me, or to at least strip out the tags and show plain text. Help? Thanks.

    For example, they paste text that shows up like this:

    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>Getting Started</h2>
    <p style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>New to BuddyPress? Not sure where to begin? <i style=”margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: transparent;”>Getting Started</i> is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.</p>
    
    </div>
    <div class=”section-block” style=”margin: 0px 0px 30px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; background: #fbfbfb; color: #222222; font-family: ‘Open Sans’, sans-serif;”>
    <h2 style=”margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 20px; vertical-align: middle; background: transparent; color: #000000;”>BuddyPress Features</h2>
    </div>

    And I paste it and it shows up as normal text (with proper styling/formatting):

    Getting Started
    New to BuddyPress? Not sure where to begin? Getting Started is here to help! Everything you need to know about setting up your new BuddyPress powered site is here from installing and activating to setting up Extended Profile fields.

    BuddyPress Features

    #200520
    spellman
    Participant

    That’s for popular bbcodes, but it doesn’t let you make your own. =(

    #200488
    spellman
    Participant

    I’m trying to figure out how to add shortcodes/bbcode to my bbpress website. I used to do this a lot with phpbb, but I can’t figure out how to do it with bbpress.

    I want my users to be able to type in [card]Serra Angel[/card] and have the posted code be <div class=”card”>Serra Angel</div>.

    How can I add this? Ideally, it would reside in forum posts as button, much like the LINK IMG CODE etc buttons.

    #199828
    atcreat
    Participant

    I created a site using buddypress. The shortcodes like [bbp-login], [bbp-register], [bbp-lost-pass] not working. It just shows the shortcode. I tested it with the theme Twenty Seventeen and NO other plugin installed. WordPress 5.1.1, PHP 7.3 (tested also with 5.6 and 7.2), and Buddypress 4.2.0.
    You can see it here: https://bbpress.at-creation.ch/login/
    Thanks for your help.

    #199219
    Robin W
    Moderator

    sure it’s in

    \bbpress 2.5.13\includes\common\shortcodes.php

    #199041
    rngeer
    Participant

    Hello,

    BBPress is running great on this site but if a visitor is a guest and clicks a topic to view the content, they are redirected to the home page. We are using WordPress pages with shortcodes to manage the forum.

    If you view the sample forum and click the I’m In topic it goes to the home page as guests. We need guests to be able to see the topic info to decide if they want to join.

    Any info would be great, here is the page:

    <a href=”http://www.raptureintheairnow.com/forums/main-forum/&#8221;

    Thank you.

    #198793
    w3215
    Participant

    Sorry–I think there was a typo earlier. The shortcodes are here:https://codex.bbpress.org/features/shortcodes/

    Shortcode for create new topic page: [bbp-topic-form]
    for new topic specific to an id: [bbp-topic-form forum_id=$forum_id]

    #198792
    w3215
    Participant

    Hi There. I am new to bbpress, but I had a similar requirement, and I believe the following works:

    1) Create a page where users can create a new topic. To do this, you can use one of these shortcodes: for new topic page: [bbp-topic-form]
    for topic specific to forum id: [bbp-topic-form]

    2) Put a link to this page in the menu. (so in your menu, have a “Create a New Topic” link that takes you to the new topic page).

    #197668
    chaaampy
    Participant

    WP : 5.0.2
    bbPress : 2.5.14
    Theme : Custom (built with _S)

    Hi everyone,

    Im having some issues in my custom theme.
    I have a custom register page where I put this code :

    <?php echo do_shortcode( ‘[bbp-register]‘ ); ?>

    The thing is, I don’t want the user to be redirected to my wp-login page after registration, for obvious security reasons.
    I had a look to some codes but non of them fit to my issue.
    Do someone have any idea ?
    Cheers,

    Chaaampy.

    #197571
    Robin W
    Moderator

    not totally sure what you are trying to do, but you could create a page and out the following shortcodes in it

    [bbp-single-topic id=$topic_id] 
    [bbp-forum-index]
    

    where $topic_id is the topic you want at the top.

    If you just want some basic rules, then you can create this as text and put it on a page above the [bbp-forum-index]

    #197533
    gamersk
    Participant

    Hello,

    I have problem. I have on website bbPress with demo data but when i chose some forum or some subpage it’s blank. https://gamenice.sk/forum/

    functions.php

    <?php
    show_admin_bar(false);
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(E_ALL);
    function theme_enqueue_scripts() {
    
        $template_directory_uri = get_template_directory_uri();
    
        wp_enqueue_style( 'reset', $template_directory_uri . '/assets/css/reset.min.css', false, '1.0' );
        wp_enqueue_style( 'app', $template_directory_uri . '/assets/css/app.min.css?v=' . time(), array( 'reset' ), '1.0' );
        wp_enqueue_style( 'forum', $template_directory_uri . '/assets/css/forum.min.css?v=' . time(), array( 'app' ), '1.0' );
    
        wp_enqueue_script( 'html5shiv', $template_directory_uri . '/assets/js/html5shiv.min.js' );
        wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' );
        wp_enqueue_script( 'selectivizr', $template_directory_uri . '/assets/js/selectivizr.min.js' );
        wp_script_add_data( 'selectivizr', 'conditional', 'lt IE 9' );
    
        wp_enqueue_script( 'jquery', $template_directory_uri . '/assets/js/jquery.min.js', false, '3.3.1' );
        wp_enqueue_script( 'app', $template_directory_uri . '/assets/js/app.js', array( 'jquery' ), '1.0' );
    
        wp_localize_script( 'app', 'carouselSettings', array( 'timeout' => get_option('carousel_timeout').'000' ) );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_scripts' );
    
    function get_excerpt($where = ''){
        $excerpt = get_the_content();
        $excerpt = strip_shortcodes($excerpt);
        $excerpt = strip_tags($excerpt);
        switch ($where) {
            case 'carousel':
                if ( wp_is_mobile() )
                    $excerpt = substr($excerpt, 0, 120);
                else $excerpt = substr($excerpt, 0, 250);
                break;
            case 'head':
                $excerpt = substr($excerpt, 0, 200);
                break;
            default:
                if ( wp_is_mobile() )
                    $excerpt = substr($excerpt, 0, 300);
                else $excerpt = substr($excerpt, 0, 725);
                break;
        }
        $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
        $excerpt = $excerpt.'...';
        return $excerpt;
    }
    
    function get_thumbnail_url() {
        $thumbnail = get_the_post_thumbnail_url() != '' ? get_the_post_thumbnail_url() : get_template_directory_uri() . '/assets/img/og-image.png';
        return $thumbnail;
    }
    
    function themename_custom_logo_setup() {
        $defaults = array(
            'height'      => 111,
            'width'       => 220,
            'flex-height' => true,
            'flex-width'  => true,
        );
        add_theme_support( 'custom-logo', $defaults );
    }
    add_action( 'after_setup_theme', 'themename_custom_logo_setup' );
    add_theme_support( 'post-thumbnails' );
    function register_my_menus() {
      register_nav_menus(
        array(
          'header-menu' => __( 'Header Menu' ),
          'footer-menu' => __( 'Footer Menu' )
        )
      );
    }
    add_action( 'init', 'register_my_menus' );
    function show_menu($menu_name) {
        $defaults = array(
            'theme_location'  => '',
            'menu'            => $menu_name,
            'container'       => '',
            'container_class' => '',
            'container_id'    => '',
            'menu_class'      => $menu_name,
            'menu_id'         => '',
            'echo'            => true,
            'fallback_cb'     => 'wp_page_menu',
            'before'          => '',
            'after'           => '',
            'link_before'     => '',
            'link_after'      => '',
            'items_wrap'      => '<ul class="inline-list %2$s">%3$s</ul>',
            'depth'           => 0,
            'walker'          => ''
        );
        wp_nav_menu($defaults);
    }
    
    include 'inc/theme-settings.php';

    forum.php

    <?php include 'header.php'; ?>
    
    <section class="forum-wrapper">
        <div class="container">
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
                <?php the_content(); ?>
    
            <?php endwhile; endif; ?>
        </div>
    </section>
    
    <?php include 'footer.php'; ?>
    
    #197494
    odevbul
    Participant

    @Robin I did that. Can I add codes to those who want to?

    #197144
    phil1ooo
    Participant

    Hello
    New to bbpress “to be honest I have always used wpForo” and I am finding it to be far far easier than this bbpress option and a much cleaner appearance, where I would of had wpForo up and running in less than 30 minutes, I have been working on this bbPress for 2 days now and still now where near making it usable to frontend members”

    But here I am giving you guys the benefit of the dout as my current needs require something a little different.
    My issue not displaying the profile page as that is childs play to do but to get the /user page edited so that it all properly aligns https://support.ozy.net.au/support-forums/users/dummy/

    Now click on this link https://support.ozy.net.au/support-forum/ to login.
    I have created a dummy account that I will leave active for a few days giving you change to have a look
    UN – dummy@yours.com
    PW – 1dummytest1

    I understand/know these are widgets but my issue is not being able to access this USERS page to make any changes and i can’t seem to find it anywhere in the system or cPanel file system.

    I also have the same issue with another plugin but just can’t find it right now.
    This “bbp Topic Count” plugin also doesn’t work as no shortcodes displayed here actually work
    Thi scan be seen here https://support.ozy.net.au/top-users/ at it should appear above the profile you see there “considering you do see that profile from your end that is”

    Having said this I have spent the last 2 days looking online at options and ways around all these things but most of what you find is so outdated and the rest in most part doesn’t work.

    I am creating this for a network which means just setting it up is a big job without the hassles this plugin is giving me and the last thing I need is constant maybe’s and what if’s so either this plugin works or it doesn’t. Not trying to be rube just very direct in my needs.

    Hope you can help.
    Cheers

    #196089
    19dapperdrake53
    Participant

    HELP: WP 4.9.8; bbPress 2.5.15; site: azor.vip

    Hello, I am a senior citizen noob building a one-off site. I wish to post admin questions from my backend what will appear live on my site.

    I have written my post and clicked on Published. Nothing happens. Some time ago when I asked this same question, I was told to do something with shortcodes. I became frustrated because I don’t know what a shortcode is, where I find it, and what I do with it. So I am re-visiting my original question.

    I would be very grateful if you could give me some steps.

    #195844
    marketing050
    Participant

    Okay, i used shortcodes for pages and redirected the index to these specific pages. But now the different users can’t see the specific topics. They are listed in the index with all the topics, but when you click further on a specific topic, I still get an 404 error. How do i change this?

    #195196
    jd-fb
    Participant

    I was wondering if there were a way to not have a topic’s content appear in its own box at the top of the reply list. Ditto for the forum content (in other words, the HTML that output using bbp_topic_content() and bbp_forum_content() respectively).

    The built-in bbPress styling shows the topic and forum content in a box that has the same (or very simiar) styling as replies. In my case, I’d like to remove the box so that the content appears as though it’s the lead-in text of a page (with H2s, H3s and so forth) with the replies + reply form below.

    Can someone point me in the right direction?

    Idea / potential solution 1)
    I found that I can do this:

    add_action ('bbp_template_before_single_topic', 'show_text');
    function show_text() {
    	ob_start();	
    	echo '<div class="my_class">';
    	add_action ('bbp_get_topic_content', 'do_shortcode'); // added b/c the content may have shortcodes
    	bbp_topic_content();
    	echo '</div>';   
    	$output = ob_get_clean();   
    	echo $output;
    }

    But this results in the topic content appearing in both the “top” of the page (as I’d prefer) and in its box listed with the replies (which I’d like to remove).

    Idea / potential solution 2)
    I’m guessing there’s something I can do with a template. If so, can someone direct me to how my plug-in can override bbPress’s template? I haven’t done a lot of template work.

    Troubleshooting
    – All themes have this “extra box” issue.
    – Using WP 4.9.8
    – Using bbPress 2.5.14-6684
    – I’m working on a local site, so I can’t provide a link

    #195076
    gokberktalu
    Participant

    Is there a simple way to make the forum index page full width? I’ve searched the support forum and copied various CSS codes but nothing worked so far..

    #194514
    Helmuts
    Participant

    another sample of the latest forums page where the above mentioned bbcodes have been used: https://www.ibf.lv/svaigakas-foruma-zinas/ (Latvian business forum)

    #194513
    Helmuts
    Participant

    A quick update – ..this topic ranks in the top positions of Google on these keywords and needs updating.

    My suggestion: set up plugin “bbPress Advanced Statistics” https://wordpress.org/plugins/bbpress-improved-statistics-users-online/

    and use the shortcode: [bbpas-activity] (you have to enable it first in settings under “extra” tab”

    Sample (latest forum posts): https://www.lustjobs.com/latest-posts-custom-forum-view/

    There are 2 bbcodes on this page:
    [bbp-topic-index]
    [bbpas-activity]

    as for the default bb code: you have to use use [bbp-stats] not [bbp-statistics]

    #194487
    Milan Petrovic
    Participant

    bbPress has a login and registration widget include to use in the sidebar. It also has shortcodes to embed these forms into pages, so you can use that to make your login/register page and style it using CSS.

    #194191
    robineero
    Participant

    I am thinking of soving this idea by creating new page for every forum page with shortcodes and by using redirection plugin to redirect original forum link to customised one.

    Does it make sense?

    #193777
    Robin W
    Moderator

    Shortcodes

    and to customise and style bbpress try

    bbp style pack

    #193776
    Yin Jin
    Participant

    i want to show forums on my own theme but i don’t know how. does bbpress provide shortcodes?

    #193362
    andreasyeah
    Participant

    ok got it! since i am not that much into codes,

    could you please tell me where i have to add the post type if the post type is “release” for example:

    /** Only process for post types we specify */
    if( !in_array( $post->post_type, apply_filters( ‘bbppt_eligible_post_types’, array( ‘post’, ‘page’ ) ) ) ) {
    return;

    thank you very much for your help 😉

Viewing 25 results - 251 through 275 (of 1,687 total)
Skip to toolbar