Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,601 through 8,625 (of 32,505 total)
  • Author
    Search Results
  • #162950
    ns
    Participant


    Wordpresss: Latest version
    bbPress: Latest version
    design theme: Original building

    I have one question.
    In the page “Forum Replies Created”, can I show my replies data only?
    If I can, which php file is, and how do I change code?
    Or if I need to apply certain WordPress plugin, what is it?

    The page “Forum Replies Created” shows all replies data which contains my relied data.
    I’d like not to show other user’s replies data.

    #162941
    Robin W
    Moderator

    that’s just the file where the code to show that error is.

    Are you developing on a local server?

    #162940
    oyeben6
    Participant

    Hello Robin, in bbpress replies folder, i have a php file functions.php. When i edit this file, in bbp_new_topic_handler i have this function

    // Nonce check
    if ( ! bbp_verify_nonce_request( 'bbp-new-topic' ) ) {
    bbp_add_error( 'bbp_new_topic_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'bbpress' ) );
    return;
    }
    

    I think that it’s the problem.

    #162936
    Robin W
    Moderator

    But shouldn’t registered members be able to create forums too?

    Not for many/most sites.

    However if you want to add that capability

    Custom Capabilities

    #162920
    billreefer
    Participant

    For the life of me I cannot see a place where a new registered user can create a topic? I can’t find anything about this is the code.

    #162918
    jookkoo
    Participant

    Hello,

    I uses CodeStyling Localization to translate 13 language. and CodeStyling Localization report the issue as below:

    PHP runtime error reporting detected !
    Reason: some executed PHP code is not written proper | Originator: unknown (probably by Theme or Plugin)
    Below listed error reports has been traced and removed during page creation:

    STRICT Error: [2048] Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) /home/xxx/cookkoo.com/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    Please help
    Thank you

    #162916
    husk3r
    Participant

    ok, i made a mistake with the namee bbpress .php , changed to bbpress.php and now it is using the bbpress.php template, again ive removed the <?php get_sidebar(‘page’); ?> but it is still not full width

    the code is like this

    <?php
    /*
    Template Name: bbpress
    */

    get_header(); ?>
    <div class=”stump”>
    <div class=”container topborder”></div>
    <div class=”container contentarea”>
    <div class=”row animated fadeInUp”>
    <div id=”content” class=”col-md-8 col-sm-8″>
    <?php get_template_part(‘loop’, ‘page’); ?>
    <?php wp_reset_query(); ?>
    </div>

    </div>
    </div>

    <div class=”container bottomborder”></div>
    </div>
    <?php get_footer(); ?>

    #162915
    husk3r
    Participant

    I did that, using the plugin my theme was using the page.php , so I copied it to my themes directory, and renamed it to bbpress.php

    i have removed the <?php get_sidebar(‘page’); ?> from the code in the template but it is still not full width, and when I use the plugin again , it says that it still uses the page.php
    even when Ive selected the bbpress template in the page that contains the forums shortcode

    #162907
    Robkk
    Moderator

    This might be what you are looking for.

    Support Forum

    #162903
    Robin W
    Moderator

    in the page, ive chosen this template.

    Sorry you need to put this template into a bbpress directory – see

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

    #162901
    husk3r
    Participant

    hello, i am using bbpress in a page with the shortcode.
    Ive managed to remove the sidebar creating a template which code is as follows ;
    ——————————————————————————-
    <?php
    /*
    Template Name: Forums
    */

    get_header(); ?>

    <div id=”primary” class=”site-content-forums”>
    <div id=”content” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, ‘page’ ); ?>
    <?php comments_template( ”, true ); ?>
    <?php endwhile; // end of the loop. ?>

    </div><!– #content –>
    </div><!– #primary –>

    <?php get_footer(); ?>
    ——————————————————————-
    and then applying this custom CSS

    #site-content-forums {
    float: left;
    width: 100%;
    }

    in the page, ive chosen this template.

    BUT the forum still is not full width
    please help me!!

    #162899

    In reply to: Mentions sitewide

    Robin W
    Moderator

    The @ is simply text, it does nothing of itself.

    It could be coded to do all you ask, but nothing exists that I know of

    #162889

    In reply to: Topic excepts

    Robkk
    Moderator

    here is the code to display the topic excerpt, which i recommend so you would not have to display the whole description in a topic.

    <?php bbp_topic_excerpt(); ?>

    #162888
    Robkk
    Moderator

    You can use this for custom subscribe text

    //custom text for subscribe links
    function rkk_subscribe_link() {
      $args['subscribe'] = esc_html__( 'Subscribe to this',   'rkk' );
      $args['unsubscribe'] = esc_html__( 'Unsubscribe to this',   'rkk' );
      return $args;
    }
     add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'rkk_subscribe_link' );
     add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'rkk_subscribe_link' );
    #162885
    Robin W
    Moderator

    try adding

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    if ( $translated_text == 'old text2' ) {
    	$translated_text = 'new text2';
    	}
    
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    to your functions file. The wording needs to be exact including caps and punctuation

    Functions files and child themes – explained !

    boriskamp1991
    Participant

    hi!

    can I set the default behavior of the Notify me of follow-up replies via email button when posting to the forum or whatsoever?
    I would like it to be checked by default.
    Im pretty sure i could write some JS to do this on page load but was wondering if you guys have some built in solution for this?

    #162878
    boriskamp1991
    Participant

    Hi guys!

    looking at these forums, I can see the @name name is printed beneath the profile picture.
    How can I turn this on in my website?
    I’ve uploaded a beta of my website here

    Is there an auto suggestion option for the mentions?
    example, if somebody starts typing @bor he/she will be suggested @boris-kamp?

    Thanks!

    #162877
    Robin W
    Moderator

    which theme are you using?

    Have you tried the two methods in 3

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

    and looked at no. 8 in the same bit

    mmice
    Participant

    Raw SQL, yep.
    Here it goes:

    EDIT: SQL code is now here https://gist.github.com/anonymous/8d1cb71e69d52ac69f5d

    That’s not all, – i still have to implement a karma system to bbpress and also import it, and still have to import private messages. If you will be so kind to point me, what i’ve missed (and that cause error i’ve been experiencing), i appreciate it so much )

    Chezzer
    Participant

    I just figured out what I needed. It turns out bbp_get_forum_title() returns a string that I can actually compare and it seems to work perfect. So my issues in my last message can be ignored.

    Just for clarity, this is what the final piece looks like:

    <?php if (bbp_get_forum_title() !== "News") : ?>

    Then I just add the endif you suggested at the end and it works great.

    Thanks again!

    #162840

    In reply to: Custom CSS

    jbeagley
    Participant

    You nailed, thank you!!! I was missing a } closing the previous CSS code.

    #162839

    In reply to: Custom CSS

    Robkk
    Moderator

    @jbeagley

    Make sure to wrap code with the code button on bbpress.org

    I checked your custom CSS on your site.

    Sometimes CSS after a CSS statement is not complete will not work.

    For example make sure all of your statements have the

    #selector .selector  { <-- make sure you have this on all of your CSS statements
    property: value;
    } <-- make sure you have this on all of your CSS statements.
    #162836

    Topic: Custom CSS

    in forum Troubleshooting
    jbeagley
    Participant

    I have had no problem editing the appearance of the forum until I tried to change the background color of the current navigation link on the user details page… its the list of link including profile, topics started, replies created, etc…

    I have been editing it with the ‘custom css’ feature of my theme… this is what I added

    #bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a {
    background-color: #12681A;
    }

    I grabbed that code from the ‘inspector’ tool using F12 in my browser… just changed the color code… but is not affecting the page…

    any suggestions why this particular element isn’t being affected?

    wordpress 4.22
    bbPress 2.5.7
    http://hillberryfestival.com/forums/user/dhp/

    #162834

    In reply to: Allow HTML from users

    atsouf
    Participant

    Hello guys.

    I had the same issue. I read all the topics and i managed to fix almost everything thanks to your posts

    btw thans Edgar you saved my with your plugin.

    My only issue is this: i have activated the video button on tinymce so peoepl can add video using the youtube or vimeo url.

    I know that just pasting the link it will embed it but the issue is that you cant arranged width and height.

    Although i tried and added more things to Edgar’s plugin when i try to add iframe code it nothing appears on the post

    The code i added is:

    // iframe
    ‘iframe’ => array(
    ‘src’ => true,
    ‘style’ => true,
    ‘width’ => true,
    ‘height’ => true,
    ‘scrolling’ => true,
    ‘marginwidth’ => true,
    ‘marginheight’ => true,
    ‘frameborder’ => true,
    ),

    any help is welcome.

    Thanks in advance,
    atsouf

    #162833
    PinkishHue
    Participant

    This is an old topic but in case you’re still looking for help (or if helpful to someone else), this plugin allows you to use a shortcode to display a list of notifications (and other buddypress things) in a page or post:

    https://wordpress.org/plugins/bowe-codes/

Viewing 25 results - 8,601 through 8,625 (of 32,505 total)
Skip to toolbar