Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,576 through 7,600 (of 32,519 total)
  • Author
    Search Results
  • #167947
    TKServer
    Participant

    I’ve made a threaded forum list which looks really nice. I’ve added a little code to reply to posts but it isn’t writing the meta and I really don’t know what to write in the meta.

    I’m thinking it would be cool to bring in the entire bbpress functions.php to my page to utilize those functions already, rather than writing my own code for things.

    Is that possible to import functions.php and use it outside of bbpress?

    The main functions I would be looking for are posting and replying.

    #167946
    Svend Rugaard
    Participant

    i am using “Gauge” for my site, and i want to make my forum more visible. And therefor i want to make sure every game i create is getting it forum.

    Its like when i create a “Game Info” site, it automatic create News, Review, Images, Trailers.

    But i want to it also create a forum there would be shown in the game, so i dont have to manually add shortcode and forum for that particular game every time, it will save time also.

    I have use this guide from Ghostpool ( Theme Author ) https://ghostpool.ticksy.com/article/3379/

    And in stead of using preview i use debat.

    And im not sure bur i think the problem could be “solve” here ..

    if ( $_POST['debat_page'] == '1' ) {
        $new_page_title = $hub_title_prefix . __( 'debat', 'gp_lang' ); // Page title
        $new_page_content = '';
        $new_page = array(
            'post_type'      => 'forum',
            'post_title'     => esc_attr( $new_page_title ),
            'post_name'      => sanitize_title( $hub_url_prefix . '-' . __( 'debat', 'gp_lang' ) ), // Page slug
            'post_content'   => $new_page_content,
            'post_status'    => 'publish',
            'comment_status' => 'publish', // change to closed to disable the comment form
            'post_parent'    => $hub_page_id
        );

    In the “post_parent” its the parent it belongs to so i figure maybe there is someway to add autocreated forum.

    Because its actually create the forum, just not put it in the hub-page

    #167925
    Robkk
    Moderator

    This should help.

    bbp_get_topic_author_id()

    #167924

    In reply to: richer toolbar

    Robkk
    Moderator

    @tecca @denaize

    Yeah I hate any commercial items that require a yearly renewal of service. Is there anything you would like to see that is premium that does not have a free alternative??


    @denaize

    I forgot that in my editor.js file I hadn’t yet figured out how to customize the image and link quicktags. The guide you found will hopefully help, it will not add a bbcode toolbar though, but TinyMCE is good.

    #167919
    Robkk
    Moderator

    @tomtower

    Is that an extra avatar or just an image to show that the user donated?

    This might be possible if you have something that tracks what users have donated. Like if the data was stored in the user meta table.

    https://codex.wordpress.org/Database_Description#Table:_wp_usermeta

    https://codex.wordpress.org/Function_Reference/add_user_meta
    https://codex.wordpress.org/Function_Reference/get_user_meta

    This might be considered custom development and you may need to hire a developer to create this for you.

    #167915
    Robkk
    Moderator

    Use this custom css. Add the custom css to your child themes style.css file or anywhere else 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;
    }
    #167912
    zabre00
    Participant

    I know its been 3 years but just wondering if theres been any development on this? @trobee your code a script still work. Just wondering if you still after 3 years, have the single list shortcodes available? I would really appreciate it!

    Pascal Casier
    Moderator

    Hi ChrissiLisa,
    Not sure what you want to obtain, but can this example help ?

    add_filter('bbp_get_topic_content', 'chrissilisa_function');
    add_filter('bbp_get_reply_content', 'chrissilisa_function');
    function chrissilisa_function($content){
      return 'hiiiiiiii'.$content;
      }

    Pascal.

    #167901

    In reply to: richer toolbar

    denaize
    Participant

    with pleasure but my expertise is very limited ! I am an industry energy engineer…

    I look at that yet :

    Enable Visual Editor

    #167898

    In reply to: richer toolbar

    denaize
    Participant

    It’s a shame. For 10x cheaper the author could 20 or 30x more orders…
    To be great BBpress need only an ergonomic and simple input interface adapted to non-IT (no tag and html code visualisation, direct entry and final appearance ) as an ultra simplified tinyMCE.
    + attachement of course.

    Finally I got bored , wordpress is great but does not have a simple but ergonomic forum 🙁 or not free at all !
    I’ll take a little time for study how to improve the toolbar myself…but I am worried

    #167895
    Loc Pham
    Participant

    I’m not allow to change bbp_get_reply() but I was able to work around my problem by calling get_post_time('c', false, $replyID, false) where ‘c’ is iso 8601 format.

    #167893
    Pascal Casier
    Moderator

    Hi,
    with just this small portion of the code, it’s difficult to see the whole loop/picture of course. I’m not sure of what you try to obtain, but just one thing to start from your first one (custom_bbp_reorder_replies), to inverse the order I used:

    if ( bbp_is_single_topic() && !bbp_is_single_user() ) { 
       $args['orderby'] .= 'post_modified';
       $args['order'] .= 'DESC';
    }

    Pascal.

    #167891
    Loc Pham
    Participant

    Hello,

    Is there a way to specify the date format use in bbPress? In various places of bbPress, the date format do complies to IOS 8601 standard and prints the ‘T’ element to specify the beginning of ‘time’ element like: 1994-11-05T08:15:30-05:00

    Conversely, if I print bbp_get_reply($id) the format DOESN’T conform to ISO 8601 and prints the following: 1994-11-05 08:15:30-05:00. Notice that ‘T’ is missing. Its inconsistencies breaks my code in various places and wonder if there’s a way to specify the output?

    Thanks
    Loc

    #167888
    gperez-tl
    Participant

    I think this works:

    add_filter('bbp_get_reply_position', 'lugpa_get_reply_position', 10, 3);
    function lugpa_get_reply_position($reply_position, $reply_id, $topic_id){
        
        if(empty($topic_id))
            $topic_id = bbp_get_reply_topic_id ($reply_id);
        
        $numReplies = bbp_get_topic_reply_count($topic_id);
        return ($numReplies+1) - $reply_position; // plus one because of thread description
    }

    I’m not sure about the +1 but it works. I tested this with first and last comment of a given page.

    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;
    }
Viewing 25 results - 7,576 through 7,600 (of 32,519 total)
Skip to toolbar