Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,776 through 8,800 (of 32,519 total)
  • Author
    Search Results
  • #162130

    In reply to: How register the users

    Robkk
    Moderator

    There is these shortcodes you can use.

    https://codex.bbpress.org/shortcodes/

    #162129
    Robkk
    Moderator

    sorry for the late reply but see if this can you.

    https://codex.bbpress.org/import-forums/mingle/

    #162120
    Robkk
    Moderator

    @tarnvogl

    yes i see this is highly customized , look good too.

    what code did you use to display the users profile name??

    I am sure all you have to do is wrap it in a class, then just add a similar CSS snippet to what i gave you.

    Malle
    Participant

    Hi folks,

    bbPress is amazing with Buddypress, but one thing is anoying me:

    When i have new Replys or a Notification of a new Reply. The generated Link directs me to the front Page or the First Post of the Topic.

    But the Notification is called “You have a new Reply from XY to Topic ABC”.
    So i want to see the new Reply, not the first Entry of this Topic (bc. i created this Topic).

    I arranged it like that:

    Changed the following Code:
    “bbpress/includes/extend/buddypress/notifications.php” / Line 49

    
    $topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
    

    to

    
    $topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $item_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $item_id );
    

    and
    “bbpress/includes/extend/buddypress/notifications.php” / Line 113-120

    
    	// Get some reply information
    	$args = array(
    		'user_id'          => $topic_author_id,
    		'item_id'          => $topic_id,
    		'component_name'   => bbp_get_component_name(),
    		'component_action' => 'bbp_new_reply',
    		'date_notified'    => get_post( $reply_id )->post_date,
    	);
    

    to

    
    	// Get some reply information
    	$args = array(
    		'user_id'          => $topic_author_id,
    		'item_id'          => $reply_id,
    		'component_name'   => bbp_get_component_name(),
    		'component_action' => 'bbp_new_reply',
    		'date_notified'    => get_post( $reply_id )->post_date,
    	);
    

    So it´s Kind of a Core Hack.
    Could it be impimented as an Option or via other Filter? I don´t know how to do it “right”.

    Pls Help and Greetings

    #162103

    In reply to: Get forum id from name

    Master
    Participant

    I finish this like

    <?php if (bbp_get_topic_forum_title() == get_option('white_kategorija_1')) : ?> 
    
    #162095

    In reply to: Footnotes

    Robkk
    Moderator

    @blazemiskulin

    it also does have an option to change the shortcode to this [ref][/ref]

    but it still wont work , so you probably have to hire a developer to make it work on bbPress.

    http://jobs.wordpress.net/

    #162094
    Robkk
    Moderator

    you can try this also and see if it works

    a.bbp-author-name {
        text-transform: uppercase !important;
    }

    if it doesn’t you can link to your site so i could see if there is any conflicting CSS.

    #162093

    In reply to: Get forum id from name

    Master
    Participant

    i use this

    <?php if (bbp_get_topic_forum_id() == bbp_get_forum_id('3263')) : ?>
    <?php printf( __( '<a class="%3$s" href="%1$s">%2$s</a>', 'bbpress' ), bbp_get_forum_permalink( bbp_get_topic_forum_id() ), bbp_get_forum_title( bbp_get_topic_forum_id() ), get_option('white_boja_1') ); ?>
    <?php endif; ?>

    did posible use somting other not bbp_get_forum_id(‘3263’)` category search from id
    i wont find from category name? wont use etc like bbp_get_forum_id(‘general’)

    find topick title from category title not from id.

    #162091
    Jake Hall
    Participant

    Hi guys,

    I recently released a plugin for bbPress+WordPress, which adds a brand new shortcode that displays various statistics for your forum, and also includes the bbPress Statistics as an on/off toggle.

    For those trying to replicate a similar look and feel to say, phpBB or vBulletin, this will help!

    In future versions, I plan on implementing an actual widget – however, due to the way I have written the plugin I get the feeling it would require a full rewrite to achieve that – so it may be a while off yet.

    Anyway, if you’re interested, check it out here: https://wordpress.org/plugins/bbpress-improved-statistics-users-online/

    #162089
    Jake Hall
    Participant

    I’m pretty happy with what I’ve managed to do with the bbpress installation on my site, rockstarwire.net/community

    I have even released a plugin of my own, bbPress Advanced Statistics, which essentially adds a shortcode that displays a phpbb / vBulletin-esque “who’s online & statistics” section, you can see an example on the bottom of my site or you can check out the screenshots.

    I’m optimistic about the future of bbPress, I just wish my community actually used the forum after all the work I’ve put into it!

    #162081
    Robin W
    Moderator
    #162079
    Robin W
    Moderator

    thanks for the typo, I’ll fix that on next release.

    both bbpress and wordpress add the ‘Private’ heading, hence why it appears twice. My style plugin removes both, which is not what you want, but what it does !

    I’ll take a further look if I get some time

    I am just a humble bbpress user, I’m not an author of bbpress, so

    It would be nice to lose that message when you are next in that code.

    ain’t gonna happen !

    #162078

    In reply to: Footnotes

    Blaze Miskulin
    Participant

    @ Robkk

    No, it does not use the standard shortcode. It allows the user to wrap comments in the character of their choice (such as double-parenthesis), and then moves that comment to the end of the post and replaces it with a superscript hyperlink.

    Also, the footnotes feature should be available for all users. We’re a bunch of geeks who love footnotes. 😀

    #162076

    In reply to: Footnotes

    Blaze Miskulin
    Participant

    @ Robin W

    And, on a larger note: Does bbPress, by default, isolate itself from other plugins?

    Sorry but I don’t understand your question.

    My apologies for not being clear.
    Sorry but I don’t understand your question.

    My apologies for not being clear. Let me try to explain better.
    Let me try to explain better:

    Does bbPress include security or “sandboxing” features that block other plugins from interacting with it? I know that some plugins intentionally block common tools (such as the shortcodes mentioned by Robkk,above). I’m not complaining about it, just looking for information so I know how to proceed.

    Footnotes is a plugin that works in posts, pages, and comments. It does not, however, work within forum posts or comments. I’m new to bbPress (been using WP for about 15 years), so I’m just trying to learn how forum posts and comments are different from “main” posts and comments.

    #162075
    Antipole
    Participant

    I am trying your bbl-style-pack plugin, as that would be easier for others to maintain should that situation arise.

    The Remove Private option removes both occurrences of the PRIVATE: prefix. It also removes private forums entirely from the (bbPress) Forums List widget display when on an ordinary page (not just the prefix PRIVATE:) – but not when displaying a forum list. I suspect that this is not what was intended.

    [Incidentally, the bbpStyle pack Forum Display tab has a minor typo in section 4. The tick box reads Move subscribe to rightRemove private prefix rather than Remove private prefix

    What I want to achieve is to remove one occurrence of the duplicate wording in the forum display heading PRIVATE: PRIVATE: forum name. Are you able to suggest a solution for this?

    Regarding the Oh bother! No topics were found here!, yes creating a topic would remove this, but I have created empty forums to guide users as to which forum to use for their potential topic. It would be nice to lose that message when you are next in that code.

    thanks again

    #162073
    Robin W
    Moderator

    You can remove ‘private’ by adding the following to your functions file

    add_filter('protected_title_format', 'ntwb_remove_protected_title');
    function ntwb_remove_protected_title($title) {
    	return '%s';
    }
     
    add_filter('private_title_format', 'ntwb_remove_private_title');
    function ntwb_remove_private_title($title) {
    	return '%s';
    }
    

    or if you are not into coding, use my plugin
    https://wordpress.org/plugins/bbp-style-pack/

    which has the ability to remove it.

    If the forum is empty, a blue box correctly says This forum is empty but then a yellow box says Oh bother! No topics were found here!

    This will obviously only show until one topic is created, so is very temporary. I could work out some code to remove it, but maybe just create a topic and it will disappear !

    #162072
    Antipole
    Participant

    Robin… before I got your suggestion regarding rewrite rules, I had begun to suspect corruption of permissions in my forum database entires. I created a new test forum and it worked OK.

    So, for each empty forum I deleted it and created a new one. For each forum with topics, I created a new one, i.e. Forum A new, reassigned the topics from Forum A to Forum A new, deleted Forum A and then renamed Formum A new to Forum A.

    This has cleared my problem and I can now view the forum topics as Testuser2.

    How the problem arose, I do not know. There have been WordPress or bbPress updates recently and possibly something did not upgrade properly.

    There remain two issues:
    The keyword PRIVATE: is shown twice in the display of the forum contents.
    If the forum is empty, a blue box correctly says This forum is empty but then a yellow box says Oh bother! No topics were found here!

    In the latter case, I suspect a coding error whereby the empty forum is spotted but the code still tries to display the topics.

    Do I still need to reset my permalink as you suggest?

    Meanwhile I shall start re-instating my plugins etc.

    thanks for your support.

    Robin W
    Moderator
    Robin W
    Moderator

    ok, so 3 stages

    1. create the style.css entries – say you have a forum called ‘fred’ you might want to create a ‘fred’ style and have content for this eg

    .fred #fixed-background { background: url(‘http://www.mysite.com/wp-content/uploads/2015/02/fredbackground.jpg&#8217;); }

    2. look up the forum’s ID

    go to dashboard>forums>all forums and hover over the ‘edit’

    at the bottom of the screen you’ll see

    http://www.mysite.com/wp-admin/post.php?post=2921&action=edit

    in this case 2921 is the forum ID

    3. add the style to the body class for that forum

    Add this into your functions file

    function rew_add_class ($classes, $bbp_classes, $wp_classes, $custom_classes ) {
    	//the above line pulls in the pre-existing values so we don't lose them - ie run this function using this existing $variables if they exist
    	//then we check is this is a forum using a bbpress function
    	if ( bbp_is_single_forum() ) {
    	$bbp_forum_id = bbp_get_forum_id();
    	if ($bbp_forum_id == 2922) $custom_classes[] = 'fred' ;
    	if ($bbp_forum_id == 2923) $custom_classes[] = 'george' ;
    }
    
    	//then we check is this is a topic using a bbpress function
    	if ( bbp_is_single_topic() ) {
    	//and if so look up the forum id of that topic
    	$bbp_forum_id = bbp_get_topic_forum_id();
    	//now you will need to add lines for each forum you have and say which class class you want to use, these are just example lines.  Add one for each forum
    	//the number is the 'page_id' (actually it's the post id !)
    	if ($bbp_forum_id == 2922) $custom_classes[] = 'fred' ;
    	if ($bbp_forum_id == 2923) $custom_classes[] = 'george' ;
    		}
    	//then this gets merges into the existing wordpress and bbpress classes
    	$classes = array_merge (  (array) $classes, (array) $custom_classes ) ;
    	Return apply_filters( 'rew_body_class', $classes, $bbp_classes, $wp_classes, $custom_classes ) ;
    }
    
    add_filter ('bbp_body_class' , 'rew_add_class') ; 
    
    
    #162062
    Robkk
    Moderator

    install this plugin

    https://wordpress.org/plugins/bbpress-genesis-extend/

    try this CSS

    #bbpress-forums .bbp-reply-content p,
    #bbpress-forums .bbp-breadcrumb p {
    font-size: 15px;
    }
    #162059
    Robkk
    Moderator

    try this CSS instead.

    #bbpress-forums .keymaster div.bbp-topic-content, 
    #bbpress-forums .keymaster div.bbp-reply-content,
    #bbpress-forums .moderator div.bbp-topic-content, 
    #bbpress-forums .moderator div.bbp-reply-content {
    background: #f8f8f8 url(images/team-member.png) top right no-repeat;
    }
    #162055
    Robkk
    Moderator

    This should get a quite a few of the users names and turn them uppercase.

    add this custom css where you can put custom css like in your child themes stylesheet or a custom css plugin.

    a.bbp-author-name {
        text-transform: uppercase;
    }
    #162053

    In reply to: Footnotes

    Robkk
    Moderator

    if you are just using the shortcode , bbPress doesnt allow shortcodes for security reasons like users pasting the [bbp-login] shortcode

    since i assume this is just for admins you can use this plugin to use the shortcode.

    https://wordpress.org/plugins/bbpress-do-short-codes/

    #162052
    Robkk
    Moderator

    alright but by default it does show.

    in the default file of loop-single-reply.php

    you will see this

    <div class="bbp-reply-author">
    
    		<?php do_action( 'bbp_theme_before_reply_author_details' ); ?>
    
    		<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
    
    		<?php if ( bbp_is_user_keymaster() ) : ?>
    
    			<?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
    
    			<div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div>
    
    			<?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bbp_theme_after_reply_author_details' ); ?>
    
    	</div><!-- .bbp-reply-author -->

    this is the code that shows it , hence the show role = true

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    #162051
    Robkk
    Moderator

    add this to your child theme functions.php or a functionality plugin.

    function rk_top_five_view() {
    bbp_register_view( 'top-five', __( '5 Most Popular Topics' ), array( 
        'meta_key' => '_bbp_reply_count',
        'posts_per_page' => '5' ,
        ' max_num_pages' => '1', 
        'orderby' => 'meta_value_num' ),
    false );
    }
    
    add_action( 'bbp_register_views', 'rk_top_five_view' );

    and then add this to your page.

    [bbp-single-view id="top-five"]

Viewing 25 results - 8,776 through 8,800 (of 32,519 total)
Skip to toolbar