Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,951 through 2,975 (of 32,481 total)
  • Author
    Search Results
  • Robin W
    Moderator

    as a quick guess, I suspect you are trying multiple shortcodes

    so

    
    <?php echo do_shortcode('[tdc_zone type="tdc_content"][vc_row full_width="stretch_row_1400 td-stretch-content"][vc_column][vc_row_inner][vc_column_inner width="1/3"][td_block_list_menu menu_id="14949"][/vc_column_inner][vc_column_inner width="2/3"][vc_column_text]

    might need to be

    <?php echo do_shortcode('[tdc_zone type="tdc_content"]') ;
    <?php echo do_shortcode('[vc_row full_width="stretch_row_1400 td-stretch-content"]') ;
    etc.
    joerga
    Participant

    Hey everyone,

    I am currently setting up a new bbPress Forum and I made a custom template page which works fine but I can’t figure out why the forum injects in the wrong place (or if it works like this at all).

    I have the tagdiv Newspaper Theme installed and I usually layout my pages with the tagdiv composer.
    For the custom page template I took the code from the page.php from the tagdiv Composer directory adjusted it for my needs and then saved it to plugin-bbpress.php inside the Template root directory.

    I also created a page with tagdiv Composer with a layout with three columns, bbPress is supposed to be in the middle one. When I do a static page and add the bbCode shortcode [bbp-forum-index] it works fine and as expected. I have three colums with different content to the left and right and the bbPress forum in the middle.

    What I tried now is to use the same shortcodes from the tagdiv composer to create a custom template for the whole bbPress forum (in. So my code in the plugin-bbpress.php file looks like this:


    if (have_posts()) { ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <div class="td-main-content-wrap td-main-page-wrap td-container-wrap">
    <div class="<?php if (!td_util::tdc_is_installed()) { echo 'td-container '; } ?>tdc-content-wrap">
    <?php echo do_shortcode('[tdc_zone type="tdc_content"][vc_row full_width="stretch_row_1400 td-stretch-content"][vc_column][vc_row_inner][vc_column_inner width="1/3"][td_block_list_menu menu_id="14949"][/vc_column_inner][vc_column_inner width="2/3"][vc_column_text]

    '.the_content().'

    [/vc_column_text][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row][/tdc_zone]'); ?>
    </div>

    </div> <!-- /.td-main-content-wrap -->

    <?php endwhile; ?>
    <?php
    }

    On the frontend the shortcodes are renderd fine by the tagdiv Composer but bbPress injects over or before the columns and not in the middle one as I want it to (and where the the_content() function should place it).

    Any ideas how I can get this to work or any other ideas how to achieve this?

    Thanks!

    Newspaper Version 10.1
    bbPress Version 2.6.4

    Here’s the link to the static page: https://prime-surfing.de/profile-copy/
    And here’s one with the custom page template: https://prime-surfing.de/prime-surfing-forum/forum/prime-surfing/

    P.S.: Please don’t mind the mess with the other pages, still under consutruction.

    #209876
    Milan Petrovic
    Participant

    My GD bbPress Toolbox Pro plugin implements a shortcode for syntax highlighting in the forum topics and replies: https://support.dev4press.com/kb/article/bbcodes-source-code-scode/.

    Milan

    #209875
    ibexy
    Participant

    Is there any code highlighter that works from the front end on forums (bbpress). I have installed a couple but they only work for the admin from within “Posts”. I cannot access the same functionality form creating forum posts or replying to forum post from the front end.

    #209860
    Jay Holtslander
    Participant

    If you arrived here from a search for “bbpress breadcrumbs missing” like I did…

    turn off Yoast’s breadcrumbs at:
    /wp-admin/admin.php?page=wpseo_titles#top#breadcrumbs

    #209858

    In reply to: Managing too long URL

    webcreations907
    Participant

    Maybe you don’t have those selectors / class names on your theme? Not sure what theme you’re using, but when I test on this forum, in Chrome & Safari adding the above fixes the overflow issue, Firefox didn’t seem to have a issue.

    Try the below, you might have to refresh your browser so it loads the changes.

    
    .bbp-reply-content a, 
    .bbp-topic-content a{
    	word-wrap: break-word;
    	word-break: break-word;
    }
    
    
    #209836
    smhlew
    Participant

    same question. Can we put in a standard bold, italic underline toolset, and not shot enduser code at all?

    #209814
    Robin W
    Moderator
    #209806
    fimir
    Participant

    Neither one of the 2 things. Without plugins forum page is empty. More I’ve tried to add an image with this bbp code into same the page, the page is blank.

    #209805
    thetoolman123
    Participant

    Hi there,

    Is there a shortcode that displays a list with links to all forums?

    Also, is there a shortcode that will display the number of threads? I’m wanting to create a list of links to my forums and also display the number of threads/posts next to each link.

    Thanks!

    #209800
    fimir
    Participant

    In my site only [bbp-topic-index] code not working, register and login code work in the pages.
    I use Generatepress theme if this could be the problem. It is someone to help me, please?
    My site: https://firsttelling.com
    Thank you
    Mircea

    #209794
    danielshalar
    Participant

    So I just Installed bbPress for my first time because I want to create my little forum.

    I’ve been using wordpress for a while and I’m in love with it.

    Now bbpress, for what I see comes default or similar to the Theme from what I read.

    this is currently how it looks The picture of my forum site

    So my questions is there any good plugins out there to really design the buttons like the search button or the log out and the bbPress forum itself?
    Or I mustly need to do this manually by editing code and css?

    I’m really noob, I learend a little bit html,css but no more then that, any help will be very respected <3

    #209779
    Robin W
    Moderator

    so what shortcodes has it got ?

    #209777
    Robin W
    Moderator

    is this an actual WordPress page with shortcodes in it?

    thetoolman123
    Participant

    Hi there,

    Is there a simple PHP code snippet that will display the number of new posts/threads a user has after the logo in? I’m looking to add a simple text displaying these figures after a user logs in?

    If there is a snippet available, that would be great!

    Thanks

    #209769
    Robin W
    Moderator

    Put this in your child theme’s function file – or use

    Code Snippets

    add_filter(  'ngettext',  'rew_bbpress_translate' , 20 , 5 );
    
    function rew_bbpress_translate( $translation, $single, $plural, $number, $domain ) {
    	if ($domain == 'bbpress') {
        if ($translation == 'Viewing %1$s topic') $translation = 'Viewing %1$s messages' ;
    	if ($translation == 'Viewing %1$s topics') $translation = 'Viewing %1$s messages' ;
    	if ($translation == 'Viewing topic %2$s (of %4$s total)') $translation = 'Viewing message %2$s (of %4$s total)' ;
    	if ($translation == 'Viewing %1$s topics - %2$s through %3$s (of %4$s total)') $translation = 'Viewing %1$s messages - %2$s through %3$s (of %4$s total)' ;
    	}
    return apply_filters ('rew_bbpress_translate', $translation, $single, $plural, $number, $domain ) ;
    }
    #209762
    thetoolman123
    Participant

    Thank you, I have created a new page and a new template and now added in the shortcode via PHP:

    <?php
    /* Template Name: HOMEPAGE */
    /**
     * The template for displaying 404 pages (not found)
     *
     * @package olympus
     */
    
    get_header(); ?>
    <?php echo do_shortcode("[bbp-forum-index]"); ?>

    Thanks again

    #209761
    Robin W
    Moderator

    create a homepage called anything you like.

    then put this shortcode in it

    [bbp-forum-index]

    #209756

    In reply to: Which widget is this

    Robin W
    Moderator

    @sirlouen – thanks, I’ve incorporated all those changes in 4.4.2

    Let me know if I missed anything

    and thanks so much for helping me improve my plugin – as a one man developer/tester it’s hard to spot where code can be improved !

    #209749

    In reply to: Which widget is this

    SirLouen
    Participant

    Also, I’m not sure if this is intended but similarly to the other elements this last two don’t have their “show-icon” class with

    font-family: 'dashicons';
    content: '\f155';

    and

    font-family: 'dashicons';
    content: '\f147';

    But could be included with this CSS code (I’ve included in my custom anyway but just to get the same format)

    .sidebar .bsp-st-info-list li.topic-favorite:before {
    	font-family: 'dashicons';
        content: '\f155';
    }
    .sidebar .bsp-st-info-list li.topic-subscribe:before, .sidebar .bsp-sf-info-list li.forum-subscribe:before {
        font-family: 'dashicons';
    	content: '\f147';
    }

    About the other topic here the two snippets (I’m copying a little in the top and in the bottom:

    Around 555

    <?php if ( !empty( $time_since  ) ) : ?>
                            <li class="topic-freshness-time <?php echo $show_iconla ; ?> ">
                            <?php
                                    echo $settings['last_activity'];
                                    echo $time_since ;
                            ?></li>
                    <?php endif; ?>
                    <?php if ( is_user_logged_in() ) : ?>
                            <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?>
                            
                            <li class="topic-subscribe"><?php bbp_topic_subscription_link( array( 'before' => '', 'topic_id' => $_topic_id ) ); ?></li>
                            <li class="topic-favorite"><?php bbp_topic_favorite_link( array( 'topic_id' => $_topic_id ) ); ?></li>
                            
                    <?php endif; ?>
                    <?php
                    echo '</ul>' ; // end of '<ul class="bsp-st-info-list">;
                    echo '</div>'; // end of '<div class="bsp-st-title-container">';
            }

    Around 725

    <li class="topic-freshness-time <?php echo $show_iconla ; ?> ">
                            <?php
                                    echo $settings['last_activity'];
                                    echo $time_since ;
                            ?></li>
    
                    <?php endif; ?>
                    <?php if ( is_user_logged_in() ) : ?>
                            <li class="forum-subscribe">
                                    <?php 
                                            bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); 
                            ?></li>
                    <?php endif; ?>
                    <?php 
                            echo '</ul>' ;
                            echo '</div>' ; // end of <div class="bsp-st-title-container">
            }
    #209748

    In reply to: Which widget is this

    Robin W
    Moderator

    sorry I’m really busy at the moment – it would really help me if you could paste revised code 🙂

    #209747

    In reply to: Which widget is this

    SirLouen
    Participant

    Another tweak (both for st and sf)
    You could move from 556 to 562

    over the 555:
    echo '</ul>' ; //end of '<ul class="bsp-st-info-list">'; ?>

    To have all “li” in the same “ul”

    (Same in line 725)

    Remember to close some of the ?> lingering afterwards 🙂

    #209745

    In reply to: Which widget is this

    SirLouen
    Participant

    484 and 652

    echo '<div class="widget bsp-st-title-container">';

    echo '<div class="widget bsp-sf-title-container">';

    #209720
    Chuckie
    Participant

    Great! I also use Code Snippets for some things too. Well done.

    #209719
    ericsims
    Participant

    Hallelujah, it worked! Thank you so much!! I ended up using the Code Snippets plugin because I’m not super comfortable with php, child themes, etc.

Viewing 25 results - 2,951 through 2,975 (of 32,481 total)
Skip to toolbar