Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,251 through 9,275 (of 32,511 total)
  • Author
    Search Results
  • #159617

    In reply to: topics not in forums

    RitaNow
    Participant

    I was working on optimizing the site using a tutorial from http://code.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site–wp-23846

    When I got to the part on using the plugin “WP-DBmanager”, I backed up the database. I then repaired it. When I did the optimize part, that’s when I got the 500 error. I called the hosting company and not sure what they did. Eventually, they did a database restore from a weekly file. The error logs from that restore showed lots of errors. When I finally got the site back, the final result was the topics were there with no forums.

    #159590
    Robkk
    Moderator

    to create a forum go to forums>new forum in the wordpress backend

    I don’t see how I customize it or set up topics or set up so only certain people can subscribe to it

    for certain people to subscribe to it might be custom development post a job at http://jobs.wordpress.net/

    Is there a video I can watch on how to start?

    there is guides in the bbPress codex , but no videos

    Codex

    you can search youtube for a tutorial, make sure its at least in the past 2 years, anything older than that might be for the old versions of standalone bbPress.

    #159588
    mvaneijgen
    Participant

    ‘Normal’ users get the message “You cannot create new topics.” when you add echo do_shortcode ('[bbp-topic-form]');

    This is a similar topic to this message created almost three years ago, has anyone a solution for the current (latest) version of bbpress and wordpress.

    wpgerd
    Participant

    Hello,


    @clarasebeste

    Thanks for you answer, but as you can see on the screenshot, bbpress has already a breadcrumb.


    @robin-w

    Thanks for this interessting Plugin. I test it with my Test-WP and identify this code for placing the subscription-toggle in the right:

    .subscription-toggle {
    float:right;
    }

    Add this in my childtheme/css/bbpress.css and it works. Thanks.

    Found also in the extras a nice looking loop-forums.php for displaying the complete forum 😉

    Gerd

    nolimit966
    Participant

    Hi,

    Im using a bespoke WordPress theme for my site which ive created myself.

    Ive fully customized BBpress & put the theme inside my WP theme too.

    So far so good, it looks great & works fine too. But one problem is that the Breadcrumbs at the top of my page throughout the website only display:

    Home / Forum / HatWorks Forum

    If i then go into the GENERAL DISCUSSION SUB FORUM / TOPIC I get the following:

    Home / Forum / General Discussion

    Instead i should be getting:

    Home / Forum / HatWorks Forum / General Discussion

    If i then go to click a topic in general discussion I get:

    Home / Forum / Hello all forum members, what do you prefer?

    instead of

    Home / Forum / HatWorks Forum / General Discussion / Hello all forum members, what do you prefer?

    The current code I have written in my functions.php for the breadcrumbs is:

    <?php
    function the_breadcrumb() {
        global $post;
        $post_type = $post->post_type;
        echo '<ul id="breadcrumbs">';
    	if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {
    		
    	  echo '<li><a href="';
            echo get_option('home');
            echo '">';
            echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
            echo '</a></li><li class="separator"> / </li>';
    		echo '<a href="https://hub.driveworks.co.uk/forums/forum/">Forum</a>';
    		echo ' &nbsp;/&nbsp; ';
    		echo  the_title();
    
    	}
    
        elseif (!is_home()) {
            echo '<li><a href="';
            echo get_option('home');
            echo '">';
            echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
            echo '</a></li><li class="separator"> / </li>';
            if (is_category() || is_single()) {
                echo '<li>';
                the_category(' </li><li class="separator"> / </li><li> ');
                if (is_single()) {
                    echo '</li><li class="separator"> / </li><li>';
                    the_title();
                    echo '</li>';
                }
            } 
    		
    		elseif (is_page()) {
                if($post->post_parent){
                    $anc = get_post_ancestors( $post->ID );
                    $title = get_the_title();
                    foreach ( $anc as $ancestor ) {
                        $output = '<li><a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li> <li class="separator">/</li>'.$output;
                    }
                    echo $output;
                    echo '<span title="'.$title.'"> '.$title.'</span>';
                } else {
                    echo '<li><span> '.get_the_title().'</span></li>';
                }
            }
    		
        }
       
    }
    
    ?>

    Any anyone help with the child navigation of this please?

    Thank you

    #159552

    In reply to: jump to last reply

    Robkk
    Moderator

    i think this should do it

    you would probably need to add more code around it.

    <?php bbp_last_topic_reply_permalink ?>

    #159550
    Robkk
    Moderator

    create a bbpress.php from your page.php file or single.php and remove any useless information like comments code.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    reply back if you need more help or it doesnt work.

    wpgerd
    Participant

    Hello,

    I installed a new bbpress 2.5.5 and noticed, that there is no space between the breadcrumb and the subscription-toggle:
    Scrrenshot
    How can I add some space? With CSS or in the code? What’s the better way?
    Thanks for help in advance!

    Gerd

    #159535
    wpgerd
    Participant

    Hello Robkk,
    thanks for your reply. At first I thought it was WP Better Emails or MailPoet Newsletter. I deaktivate this plugins, but the same.
    Now I used a fresh Testinstallation of WP, installed bbpress and the same. If someone subscribe to forum, I got a Mail delivery failed notice.

    I try a little search and found in this file \wp-contetnt\plugins\bbpress\includes\common\functions.php this code:

    // Strip tags from text and setup mail data
    $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    $reply_content = strip_tags( bbp_get_reply_content( $reply_id ) );
    $reply_url = bbp_get_reply_url( $reply_id );
    $blog_name = wp_specialchars_decode( get_option( ‘blogname’ ), ENT_QUOTES );
    $do_not_reply = ‘<noreply@’ . ltrim( get_home_url(), ‘^(http|https)://’ ) . ‘>’;

    // For plugins to filter messages per reply/topic/user
    $message = sprintf( __( ‘%1$s wrote:

    // Strip tags from text and setup mail data
    $topic_title = strip_tags( bbp_get_topic_title( $topic_id ) );
    $topic_content = strip_tags( bbp_get_topic_content( $topic_id ) );
    $topic_url = get_permalink( $topic_id );
    $blog_name = wp_specialchars_decode( get_option( ‘blogname’ ), ENT_QUOTES );
    $do_not_reply = ‘<noreply@’ . ltrim( get_home_url(), ‘^(http|https)://’ ) . ‘>’;

    // For plugins to filter messages per reply/topic/user
    $message = sprintf( __( ‘%1$s wrote:

    So I think, the email will be generatet of bbpress. How can I prevent this Mail delivery failed notice?

    Gerd

    crazedsanity
    Participant

    It looks like the code, by default, sends the message to “noreply@” followed by the domain, with all the intended recipients in the BCC field. I end up getting 3-6 bounces per message due to the “delayed” notifications. It thought it would go away after someone (else) had subscribed to the topic, but that is simply not the case.

    The code needs to be only slightly more sophisticated:
    1.) it should NOT send an email if there are no recipients (because… logic)
    2.) the “from” address should be “noreply@<domain>” or otherwise configurable

    I’ll see if I can work up a patch if I’ve got sufficient free time (unlikely, but I’ll try). Anybody know the who/how/where of it?

    #159528
    wpgerd
    Participant

    Hello,
    here you find informations about the two versions of language files: https://codex.bbpress.org/bbpress-in-your-language/german-deutsch-de/
    You don’t need a plugin.

    I used the DU-version of David Decker. But I think both versions work well. If you want to change something use poedit.

    Gerd

    nolimit966
    Participant

    Hi,

    I have bbp_get_user_post_count($user_id) being echoed in my loop-single-reply.php and its not showing the total posts number at all. Is this the correcnt way to do it?

    <?php echo 'Topics: '. bbp_get_user_post_count($user_id);?>

    Thanks

    #159518
    Robin W
    Moderator

    Most of the filters are held in the templates that are located as follows :

    wp-content/plugins/bbpress/includes/forums/template.php
    wp-content/plugins/bbpress/includes/topics/template.php
    wp-content/plugins/bbpress/includes/replies/template.php
    wp-content/plugins/bbpress/includes/users/template.php
    wp-content/plugins/bbpress/includes/search/template.php

    There are two typically filters, one on the final function usually within the ‘return’, and one that mimics wordpress’s ‘before’ filters
    from the docs

    Near the beginning of many functions we find :

    
    // Parse arguments against default values
        $r = bbp_parse_args( $args, array(
            'before'            => '<ul class=&quot;bbp-forums-list&quot;>',
            'after'             => '',
            'link_before'       => '<li class=&quot;bbp-forum&quot;>',
            'link_after'        => '',
            'count_before'      => ' (',
            'count_after'       => ')',
            'count_sep'         => ', ',
            'separator'         => ', ',
            'forum_id'          => '',
            'show_topic_count'  => true,
            'show_reply_count'  => true,
        ), 'list_forums' );
     

    This is a common format throughout bbPress, and indeed is similar to a function used throughout wordpress.

    It uses a function called bbp_parse_args to create a filter against all the arguments.

    The filter created is in the format bbp_before_ followed by X followed by _parse_args The X is the third argument from the bbp_parse_args function – if you look at the code above you’ll see that it is actually
    bbp_parse_args ($args, Array(...), 'list_forums' )

    so in the last line we see list forums which is the X above . In practice this is the function without the bbp start bit.

    so an array filter for bbp_list_forums is bbp_before_list_forums_parse_args
    and for say bbp_get_topic_pagination would be
    bbp_before_get_topic_pagination_parse_args

    #159512
    Robkk
    Moderator

    try using this plugin, use the logout link from this plugin and use a custom login link for the bbPress login shortcode if you want.

    https://wordpress.org/plugins/baw-login-logout-menu/

    #159506
    Robkk
    Moderator

    create a bbpress.php file and put it in your child theme , the default file bbPress is using has some extra code for post navigation that should be for blog posts.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    you can also use CSS

    #bbpress-forums .navigation-post  {
    display:none;
    }
    #159502
    Robkk
    Moderator

    this is a pretty common request here

    there might be issues where you cant add the permissions to work on only the participants created topics only though.

    i suggest searching the forums try finding topics only in the past 1-2 years past that will probably be unusable code.

    other than that go to http://jobs.wordpress.net/

    #159499
    Robkk
    Moderator

    @peter-hamilton

    I think there is a need for a small tutorial on editors, root folders and ftp access for starters, I remember being very intimidated by my root folders at first.

    there are so many editors that you can use , basic editing are very close to normal text editors so it shouldnt be a problem.

    Root folders WordPress explains here …kind of. going behidn that should be host files that you should never touch unless you are very advanced, and know what you are doing.

    codex.wordpress.org/Determining_Plugin_and_Content_Directories

    Explaining FTP , idk there are usually tutorials on using FTP on the host providers website, and also searching in google how to set it up and learning is not that hard to do.

    https://codex.wordpress.org/FTP_Clients
    https://codex.wordpress.org/Using_FileZilla

    #159498
    Robkk
    Moderator

    are you using shortcodes in templates or pages??

    #159497
    Robkk
    Moderator

    maybe using conditionals in the user profile templates (copy these to a child theme) would do it.

    bbPress Conditional Tags

    it might is_single_user() then array the guest accounts user ID to hide the user profile information

    #159496
    Robkk
    Moderator

    this is what the freshness column is using

    <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id() ) ); ?>

    #159486

    In reply to: Best anti spam plugin

    Robkk
    Moderator

    for registrations i use bruteprotect it helps out alot.

    bruteprotect + akismet = <3

    plus combine that with bbPress’s spam control functions (throttle posting/time to edit)

    bbpress uses the comment moderation settings https://codex.bbpress.org/moderation-and-blacklisting/

    so combine that with the blacklist.txt from here and you should be fine

    https://github.com/splorp/wordpress-comment-blacklist

    #159485
    Robkk
    Moderator

    @nolimit966 i think you can use <?php bbp_topic_excerpt(); ?> place this in loop-single-topic.php and you should see it.

    #159474
    rbrynest
    Participant

    Whenever a new user tries to register or login to my site, it just shows a white page with “blocked” written on it.

    I am using bbPress forum plugin and have the “Allow anyone to register” checked.

    My register page is using the register shotcode and as a login I use the (bbpress) login widget in a sidebar.

    I have checked for conflicts by deactivated all plugins but bbpress and switched to the default twentytwelve theme to see if this fixes. Unfortunately with negative results.

    Any idea what’s going on?

    Register URL: http://www.oppfraavgrunnen.no/registrer-deg/
    Login URL: http://www.oppfraavgrunnen.no/bbpress/

    Thanks in advice

    Regards
    Rune

    #159472

    In reply to: Forum Page ID's

    Alice Kaye
    Participant

    Haha, that certainly would make things easier on everyone (myself included). The biggest issue here is that, without an account you cannot see the forums due to the way my site’s permission system is set up. So if you need to see code, let me know and I’ll give you the test account login information. 🙂

    Forum Setup:

    Final Fantasy XIV (FFXIV Background)
    – General Discussion
    – The Forge
    – The Golden Quill
    – Journals
    – Ultima EX
    All of the sub forums currently have the FFXIV handcoded into the CSS section so their backgrounds are also FFXIV. However, whenever a post is made in any of these forums, my base site background is the one showing. If possible, it would be great if any forum posts made in any of these specific forums had the correct corresponding background.

    The same goes with my Guild Wars 2 section which has a Guild Wars 2-based background.

    The thing is, I’m not sure if this is at all possible.

    Hoping that I’ve explained that well. 🙂

    #159464

    In reply to: Forum Page ID's

    Alice Kaye
    Participant

    Hi @robin-w & @robkk,

    I tried to reply the other day but every time I hit submit, everything would disappear and it wouldn’t post my reply. Oi.

    So firstly I wanted to say thank you to both of you for all of the help and support with everything. You guys got me on the right track which was GREAT!

    The code that ended up working for me was:

    .postid-37 #fixed-background { background: url('http://www.heartwoodgaming.com/wp-content/uploads/2015/02/gw2-background.jpg') !important; }

    I was hoping that by changing the page ID background for each forum, that the subsequent posts would also have that background, but it didn’t pan out. I’m curious if this is possible in some way? It’s tough to imagine via CSS simply because the pages generate when created, so it would have to be based on a forum ID (in my head), rather than a simple postID.

    Do you guys have any thoughts on this at all?

    Again, thanks for the help and sorry I couldn’t reply sooner. It just wouldn’t let me! 🙁

Viewing 25 results - 9,251 through 9,275 (of 32,511 total)
Skip to toolbar