Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,576 through 7,600 (of 32,505 total)
  • Author
    Search Results
  • gperez-tl
    Participant

    Hi.
    I’m showing my replies as a timestream, meaning I display the newest replies above the oldest one. Like this:

    function custom_bbp_reorder_replies($args) { 
        
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending) 
      return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_reorder_replies' );

    Well, in My Replies Created I’m showing a list of replies with a link to corresponding thread like this:

    <a href=" <?php echo bbp_get_reply_url() ?>" class="bbp-topic-edit-link">...</a>

    But that is not working because bbp_get_reply_url() is considering default order instead of reverse. So, when doing this it returns the wrong page:

    $reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );

    (that code is in includes/replies/template.php, line 487)

    Maybe a hook around there would help.

    By now I’m not sure how to solve it for myself.

    #167884

    In reply to: richer toolbar

    denaize
    Participant

    thanks

    gd bbpress tools is not very interesting (no tool bar, no CODE bbcode). Your js will be great !

    For writing option a tried with other theme…it’s the same 🙁

    project_subdomain
    Participant

    Hi!
    In my topics the bbp-reply-permalink (that with the number like #1010) does not jump to the specific reply as soon as there are more pages.

    Once a new page started, the url of all new replies permalinks on page 1 try to direct to a non-existing url on page 2, eg: /forums/topic/topicname/page/2/#post-1010. Every reply’s permalink on page 2 then tries a redirect to a non-existing url on page 1, eg /forums/topic/topicname/#post-1050.

    Suspected changes in the reply order to be the fault, but deactivating the custom code to get edited replies to the top as well as setting default order of replies did not have any effect.

    Would be very thankful for any help!

    #167878

    In reply to: richer toolbar

    Robkk
    Moderator

    @denaize

    for bbcode use gd bbpress tools. It does not modify the quicktags toolbar automatically but you can change the output of the buttons though.

    I have to find my custom editor.js file so give me a minute to help you on that.

    #167876
    tkse
    Participant

    I’m looking to limit the “Edited by xxxx” to the last edit at the end of every post. I remember looking through the forum on the topic, and I found it suggested to another user to use WordPress’ own the_author and the_modified_time. This should work great, however, how do I include the revision notes from the last edit? In other words the reason a user adds for editing their post.

    #167875

    In reply to: richer toolbar

    Pascal Casier
    Moderator

    Yeah: Convert emoticons like :-) and :-P to graphics on display
    Maybe your Theme has it somewhere else. But if you don’t find it, contact the support of that plugin to get more detailed answers.

    Pascal.

    #167874
    ChrissiLisa
    Participant

    this works:

    $topic_id = bbp_get_topic_id();
    $forum_id = bbp_get_topic_forum_id( $topic_id );
    $forum_name = bbp_get_forum_title($forum_id); 	
    
    if(stripos($forum_name,'baufinanzierungsberater')!==false){

    … now there is still the problem with the different title

    #167869

    In reply to: richer toolbar

    denaize
    Participant

    Hi

    I tried Wp-Monalisa but in admin i can see :

    Please turn off Settings -> Writing -> ‘Convert emoticons like…’ to use wp-Monalisa smilies).

    but I dont have this setting in worpress 4.3.1…

    gd-bbpress-attachments is OK, thank you. Unfortunately that the pro version is too too overpriced…

    If Wp-Monalisa has no worries, just BBcode are missing !

    thanks

    #167866
    Pascal Casier
    Moderator

    Hi Chrissilisa,

    Do you want to define your own functions ? Or just do something before every topic is displayed ? Maybe the last paragraphs of https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-5/ about the ‘bbp_before_X’ could help you out here.

    Pascal.

    #167864
    Robkk
    Moderator

    I guess you could use a hook if you want to add the styles in the head.

    How much, and what are you trying to style specifically?

    Every forum and the topics under that forum should have a class that says bbp-parent-forum-ID and the normal post-ID class, with the ID being the post ID.

    #167863
    Robkk
    Moderator

    Glad you got yourself sorted out in your issue.

    I also see that there is a huge avatar issue on your site so inserting this CSS into your child themes style css file or in a custom css plugin will fix that.

    #bbpress-forums p.bbp-topic-meta img.avatar, 
    #bbpress-forums ul.bbp-reply-revision-log img.avatar, 
    #bbpress-forums ul.bbp-topic-revision-log img.avatar,
    #bbpress-forums div.bbp-template-notice img.avatar, 
    #bbpress-forums .widget_display_topics img.avatar, 
    #bbpress-forums .widget_display_replies img.avatar {
        margin-bottom: 0;
        vertical-align: middle;
        border: 1px solid #ddd;
        width: 14px !important;
        height: 14px !Important;
    }
    #167861
    ChrissiLisa
    Participant

    Hello,

    how can I give different childforums there own style ?

    Is there a hook like “before show topics” where I can place my own css style ?
    I counldnt find anything in the codex.

    Thanks,
    bye
    ChrissiLisa

    #167859
    Robkk
    Moderator

    @gin_marcin

    You can also use the code I posted here. It is straight from that plugin.

    Show 5 Recent Topics without Pagination Just like on bbpress.org homepage

    #167857
    gin_marcin
    Participant

    I found now a solution with bbp Stylepack and the provided shrotcodes:

    [bsp-display-topic-index show=’5′ forum =’10’ show_stickies=’true’ template = ‘short’]

    now only the topics from one forum are displayed

    thx for help !
    Marcin

    #167854
    Pascal Casier
    Moderator

    Yeah, this seems to remove it. Place it somewhere where you can add CSS:

    .bbp-topic-form .bbp-form legend {
    	display: none;
    }

    Pascal.

    #167851
    ChrissiLisa
    Participant

    Hello,

    I use this function (in functions.php) to show extra fields over a topic form:

    add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields');
    function bbp_extra_fields() {
    
    	
    	/*Extra-Felder Baufinanzierungsberater*/
    	if($GLOBALS['forum']=='baufinanzierungsberater'){
    
    		echo '<div id="baufinanzierungsberater_edit_box"><div style="width:50%;float:left;">';
    
       			$value1 = get_post_meta( bbp_get_topic_id(), 'nachname', true);
       			echo '<label for="nachname">Nachname</label>';
       			echo "<input type='text' name='nachname' value='".$value1."'><br />";
    
       			$value2 = get_post_meta( bbp_get_topic_id(), 'vorname', true);
       			echo '<label for="vorname">Vorname</label>';
       			echo "<input type='text' name='vorname' value='".$value2."'><br />";
    }}

    This works. But when I want to edit the fields after saving the topic, the fields are gone. Which action do I have to use to show the fields?

    Thanks,
    best regards
    ChrissiLisa

    #167848
    gin_marcin
    Participant

    hi Pascal,

    Thanks – I was hoping that I do not have to “code” anything 🙂 and can use something already prebuild and only exchange the forum Id.

    THX
    Marcin

    #167846
    Pascal Casier
    Moderator

    Hi,

    That shortcode calls the content-single-forum.php template file. So you’re options are to copy that file to your theme and edit it (but this will be reflected globally, not just in the shortcode).
    Or create your own shortcode based off the bbPress one and have it use a custom template file.

    Pascal.

    #167843
    gin_marcin
    Participant

    Hi,

    Is there a way I can show a topic list from just one forum on a page ?
    I already tried the standard widgets – e.g. recent topics – but this one shows topics from all forums. Additionally I used the shortcode [bbp-single-forum id=00] but this shows beside the list also the creation of a new topic – I only would like to have the list.

    Thanks
    Marcin

    P.S. Working local; WP 4.3.1; bbPress 2.5.8; Theme GeneratePress

    #167839
    PittNZK
    Participant

    Ok, I figured it out.
    Just wrote a small plugin adding the “newzik” protocol :

    <?php
    /**
    * Plugin Name: NZK links support
    * Plugin URI: http://newzik.com/
    * Description: Adds support to newzik:// links
    * Version: 1.0
    * Author: Pierre Mardon
    * Author URI: http://newzik.com/
    * License: None
    */
    
    /**
     * Extend list of allowed protocols.
     *
     * @param array $protocols List of default protocols allowed by WordPress.
     *
     * @return array $protocols Updated list including new protocols.
     */
    function wporg_extend_allowed_protocols( $protocols ){
        $protocols[] = 'newzik';
        return $protocols;
    }
    add_filter( 'kses_allowed_protocols' , 'wporg_extend_allowed_protocols' );
    ?>
    #167838

    Topic: richer toolbar

    in forum Installation
    denaize
    Participant

    Hi

    I’m looking for bbpress, it works well but toolbar lacks a bit of ergonomics.
    My members needs smiley, classical [quote] a quote[/quote] or [code]C code[/code] and picture/files attachement.

    how do I get it ?

    Thank you in advance

    WP 4.3.1 and last bbpress

    #167834
    fabwintle
    Participant

    Hi,

    I am aware I can use the shortcode [bbp-single-tag id=181] to display forum posts associated with the tag 181. However, I’d like to pull content assoociated with more than one tag.

    Could someone please help me?

    Thank you

    #167831
    Robkk
    Moderator

    @mica123

    When you said you got this.

    bbpress
    Response headers:
    cache control: max-age=2592000

    I think you just selected something similar to this in your dev tools.

    bbpress.css?ver=2.5.8-5815

    This is a CSS file, and the cache information you are outputting is just the browser cache information for that CSS file.

    Usually you might find this in your htaccess file for code for browser caching, and this exactly for some CSS files.

    ExpiresByType text/css A2592000

    In the list of names of files being requested, you can try to pick another CSS file like

    responsive.css?ver=1.9.7.7

    And you should see the caching age be the same thing since it is a CSS file.

    Most of the time the browser caching code would be present in your htaccess file wrapped in something like this.

    <IfModule mod_expires.c>

    But there could also be WordPress plugins that add browser caching like some minify plugins.

    You and your dev have to backtrack and find out where and what is causing the browser caching. It is tough for me to find it on my end without a bunch of guessing, but if you want me to try to take a look at it, you can contact me through email here. https://robkkdev.wordpress.com/contact/

    Also that custom login script would not cause this type of issue.

    Also you can delete this piece of code since you are probably not using it correctly.

    wp_enqueue_script( ‘custom-login’, get_stylesheet_directory_uri() . ‘/css/style-login.js’ );

    #167827
    Pascal Casier
    Moderator

    So they were the same…

    The only option I see is to really insist with your current provider, sorry for not being able of more help.
    For the application caching, a lot of pages exist, like http://www.sitepoint.com/common-pitfalls-avoid-using-html5-application-cache/

    BEFORE DOING THE NEXT LINES, MAKE SURE YOU HAVE DIRECT ACCESS TO YOUR FILES ON THE SERVER IN CASE IT GOES WRONG.
    Just a test to see if it helps, can you go in your dashboard, ‘Appearance > Editor’, choose on the right the ‘Header’ (header.php) file and when the file opens, find somewhere the <head> tag and copy the following lines just below :

    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />	

    If it helps, it could be a workaround for now, but you should not keep this forever.

    Keep subscription to this topic. If I find something else, I’ll post it here, but for now I have no clue.

    Pascal.

    #167822
    Robkk
    Moderator

    This is a common theme issue related to the theme styling absolute positioning the comment reply link for WordPress comments.

    Use this custom css to fix the issue. Add it in your child themes style.css file or anywhere you can add custom css like in a custom css plugin.

    #bbpress-forums .reply {
        position: relative;
        top: inherit;
        right: inherit;
        line-height: inherit;
        font-size: inherit;
    }
Viewing 25 results - 7,576 through 7,600 (of 32,505 total)
Skip to toolbar