Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 3,351 through 3,375 (of 6,759 total)
  • Author
    Search Results
  • #141944
    Stephen Edgar
    Keymaster
    #141937
    tazogamer
    Participant

    I HAVE DONE THAT, but you need to read all these instruction and do a customization:

    
    
    //using add_filter, i have changed one original bbPress function (named bbp_list_forums, created from bbpress\includes\forums\template.php function)
    // copied  that function, and inserted the additional code (you can easily see my added extra code)
    //so, after some time, someone, who will work on this website, may have to update the below "bbp_list_forums" function (according from the new version of bbPress package,as now its 2013-14 year), and insert again my added code in its place..
    
    add_filter('bbp_list_forums','bbp_list_forumsNEWWWW',10);
    function bbp_list_forumsNEWWWW( $args = '' ) {
    
    	// Define used variables
    	$output = $sub_forums = $topic_count = $reply_count = $counts = '';
    	$i = 0;
    	$count = array();
    
    	// Parse arguments against default values
    	$r = bbp_parse_args( $args, array(
    		'before'            => '<ul class="bbp-forums-list">',
    		'after'             => '</ul>',
    		'link_before'       => '<li class="bbp-forum">',
    		'link_after'        => '</li>',
    		'count_before'      => ' (',
    		'count_after'       => ')',
    		'count_sep'         => ', ',
    		'separator'         => ', ',
    		'forum_id'          => '',
    		'show_topic_count'  => true,
    		'show_reply_count'  => true,
    	), 'list_forums' );
    
    	// Loop through forums and create a list
    	$sub_forums = bbp_forum_get_subforums( $r['forum_id'] );
    	if ( !empty( $sub_forums ) ) {
    
    		// Total count (for separator)
    		$total_subs = count( $sub_forums );
    		foreach ( $sub_forums as $sub_forum ) {
    			$i++; // Separator count
    
    			// Get forum details
    			$count     = array();
    			$show_sep  = $total_subs > $i ? $r['separator'] : '';
    			$permalink = bbp_get_forum_permalink( $sub_forum->ID );
    			$title     = bbp_get_forum_title( $sub_forum->ID );
    
    			// Show topic count
    			if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );
    			}
    
    			// Show reply count
    			if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    				$count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );
    			}
    
    			// Counts to show
    			if ( !empty( $count ) ) {
    				$counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after'];
    			}
    
    			
    			
    			
    			
    			
    			
    			
    				//------------------------------------------------------------------------------------------------	
    		//------------------------------------------------------------------------------------------------
    		// ------------------------------------------------ HERE WHAT I HAVE ADDED ------------------------
    		//------------------------------------------------------- START -------------------------------
    		//------------------------------------------------------------------------------------------------
    		$fresnhesss=bbp_get_forum_last_topic_title( $sub_forum->ID );
    		if(empty($fresnhesss))	{$fresnhesss='NO TOPICS';}
    		else {$fresnhesss='<a href="'. bbp_get_forum_last_topic_permalink( $sub_forum->ID ) .'">'. $fresnhesss .'</a>';}
    		
    			// Build this sub forums link
    			$output .= $r['link_before'] . '
    				<li class="forumsSUUB">
    					<div class="s_LINe"><a  href="' . esc_url( $permalink ) . '" class="bbp-forum-link">__' . $title . $counts . '</a></div>' .
    					$show_sep . '
    					<div class="bbp-forum-lastactivee">'.$fresnhesss.'</div> 
    					<div class="bbp-forum-contenttt-descr">'. bbp_get_forum_content($sub_forum->ID) .'</div> 
    				</li>' . $r['link_after'];
    			
    
    		// sub-sub-forums list
    		$sub_forums2 = bbp_forum_get_subforums( $sub_forum->ID );
    		if ( !empty( $sub_forums2 ) ) {
    		
    		$i = 0;
    			// Total count (for separator)
    			$total_subs = count( $sub_forums2 );
    			foreach ( $sub_forums2 as $sub_forum2) {
    			
    				$i++; // Separator count
    
    				// Get forum details
    				$count     = array();
    				$show_sep  = $total_subs > $i ? $r['separator'] : '';
    				$permalink = bbp_get_forum_permalink( $sub_forum2->ID );
    				$title     = bbp_get_forum_title( $sub_forum2->ID );
    
    				// Show topic count
    				if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum2->ID ) ) {
    					$count['topic'] = bbp_get_forum_topic_count( $sub_forum2->ID );
    				}
    
    				// Show reply count
    				if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum2->ID ) ) {
    					$count['reply'] = bbp_get_forum_reply_count( $sub_forum2->ID );
    				}
    
    				// Counts to show
    				if ( !empty( $count ) ) {
    					$counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after'];
    				}
    
    			//fresnhess		
    			$fresnhesss2=bbp_get_forum_last_topic_title( $sub_forum2->ID );
    			if(empty($fresnhesss2))	{$fresnhesss2='NO TOPICS';}
    			else {$fresnhesss2='<a href="'. bbp_get_forum_last_topic_permalink( $sub_forum2->ID ) .'">'. $fresnhesss2 .'</a>';}
    			
    				// Build this sub forums link
    				$output .= '
    				<li class="bbp-forum forumsSUUB">
    					<div class="subsub_LINe"><a  href="' . esc_url( $permalink ) . '" class="bbp-forum-link">__' . $title . $counts . '</a></div>' .
    					$show_sep . '
    					<div class="bbp-forum-lastactivee">'.$fresnhesss2.'</div> 
    					<div class="bbp-forum-contenttt-descr">'. bbp_get_forum_content($sub_forum2->ID) .'</div> 
    				</li>';
    			}
    		}
    		//------------------------------------------------------------------------------------------------
    		//------------------------------------------------------------------------------------------		
    		//----------------------------- END of my inserted code (then continues normally)-----------
    		//------------------------------------------------------------------------------------------	
    		////------------------------------------------------------------------------------------------------	
    			
    			
    			
    			
    			
    			
    		
    			
    		}
    
    		// Output the list
    		echo apply_filters( 'bbp_list_forumss', $r['before'] . $output . $r['after'], $r );
    	}
    }	
    #141900

    It looks to me like bbPress isn’t finding its default CSS. You could try reinstalling bbPress; it’s possible you have an incomplete installation, with only some non-essential assets were caught missing.

    Otherwise, it could be a plugin conflict, or some other code might just be getting in the way of bbPress’s CSS loading. You could also try deactivating plugins one at a time, and seeing if something new you’ve added recently is causing this to happen.

    #141896
    Tearstone
    Participant

    I found a plug-in called “Buddypress Notifications Manager” https://wordpress.org/plugins/buddypress-notifications-manager/

    This godsend of a plug-in set default notifications for new users and retroactively for existing users. A day has passed and no notifications. I hope others that go through what I went through will benefit from this tid-bit of information. I was about to have to wipe my entire site and start from scratch due to upsetting so much of my user base.

    Shmoo
    Participant

    I don’t think it’s possible by default but you could fake it and make your own ‘fake-loops’ inside the templates files.

    It takes some work and you’re probably will have to call most of your forum_ids by it’s number which is very static.

    This for example maks a clean link to forum_id 98 + adds the forum title as a link-text.
    You could make your custom HTML Lists like that but remember if you delete or add a forum you have to change your template files also. It’s very static.

    
    <a class="button" href="<?php bbp_forum_permalink( 98 ); ?>"><?php bbp_forum_title( 98 ); ?></a>
    
    #141891
    Shmoo
    Participant

    By default:

    Lists of Favorites is open and visible to the public.

    Lists of Subscriptions is not, this needs a current_user_id to show them, if you’re logged-out you’re just a guest at the page and you don’t have a user_id.
    Even if you’re logged-in as member X you an’t see members Z subscription lists. subscriptions are only visible to the user who subscribe to them OR a Mods-/Keymasters of the site.

    #141860
    Shmoo
    Participant

    I kinda know how filters work right now and I’ve used them a few times to hide or change default bbPress functions.

    As you can see at my screenshot I’ve completely removed the Merge, Split, Move and Reply links from my admin_links() function because I don’t need them. It’s a fun thing to do if you start to understand how it works.

    The only problem is,
    bbp_topic_admin_links(); is just a wrapper for all the links, each link has it’s own function and if you play nice with them you can copy them and use them straight into your page templates and you’ll see your link-/button show up wherever you want them to show up.
    This is great, I’ve done something like this shmoo_bbp_topic_edit_link(); changed and reused the default topic link function and placed it at the top of the content as you can see in my screenshot.

    Great, only thing is, if I try to do the same with a function from a plugin developer it says; Fatal error: Call to undefined function get_topic_report_link()

    Why is this function undefined ??
    The developer has made that function in his plugin file – which hooks straight into my functions.php , why can’t I use his functions the way I do use the Core bbPress functions inside my functions.php file..

    I would like to remove the report link from the admin_links and bring it solo to the top of the content.

    #141859

    In reply to: Private Messaging?

    Integrating BuddyPress and bbPress should be a breeze. One thing to keep in mind however, is that bbPress user profiles yield to BuddyPress’s member profiles. This could be overridden with a plugin, but is the default experience when integrating them together.

    #141857

    By default, closed topics get a greyed out text color. You can override this with some CSS tweaks that target it specifically. Something like:

    #bbpress-forums .status-closed,
    #bbpress-forums .status-closed a {
        color: red;
    }
    #141836

    I spent a few hours this weekend cleaning up the themes that power BuddyPress.org, bbPress.org, and the shared styling between the codexes, Trac’s, etc… We’ll be open sourcing all of both of those sites very soon.

    You’ll (hopefully) be surprised how few modifications are made to the default styling, and how little markup and CSS there is. 🙂

    #141835
    blastblast
    Participant

    @jaredatch

    hi, new to the bbpress forum

    As, I posted here https://buddypress.org/support/topic/sticky-color-screenshot/

    I would like to change the font color of the sticky post in bbpress from the light grey to black.

    In the
    /wp-content/themes/bp-default-child/style.css

    I inserted

    .sticky {
    font-color: black;
    }

    and it did not work.

    After researching I stumble across this topic and I’m guessing editing the bbpress.css would be the answer, correct?

    If so, before editing bbpress.css, I would like to make a backup or child theme version.

    So if I’m following your instructions, would it be correct to place the bbpress.css in my /wp-content/themes/bp-default-child/bbpress.css folder or do I have to create a css folder thus placing it in /wp-content/themes/bp-default-child/css/bbpress.css.

    Sorry if I’d got off track, ultimately, I would just like to change the sticky post color from light grey to black in the simplest way possible (without a plugin).

    Any guidance would be helpful
    thanks

    #141829
    Shmoo
    Participant

    Just curious if there is an easy way to check if a user has been subscribed to a topic or not..

    I’ve looked inside the Core templates and found the bbp_user_subscribe_link() function so I ported it over to my own functions file and changed it a little bit, now it works on the topics index page but for some reason it breaks at my topic-replies index page while they use the same default topics loop.

    This is my code I’ve changed around a little and what it does is, it prints an is-subscribed text to the page if a user is subscribed to an topic or not. IF not is doesn’t do anything – this is-subscribed text I placed inside a HTML class so I can catch him by some CSS.

    http://pastebin.com/iFybkjfr

    Visual, the 1px colored borders on the right indicate if a topic is-subscribed (blue), is-closed (black) or is-sticky (yellow).

    It’s a very small feature but I believe very effective, maybe it’s possible to hook those is-values into the bbp_topic_class() by default because BuddyPress has this feature out of the box. If you’re a member of a group it also prints is-member inside the groups-list-class.

    Anybody ideas about how we could make this more smooth and simple?

    #141810
    Paolo Flamenkini
    Participant

    Hi all,

    I have a problem… When somebody post in one forum the information below the picture avatar is

    User name

    Role

    IP

    by default I would like to change this information by “grups” that means… if you belong a group that information appear in the gravatar and hide IP adress. Is that possible? I am getting crazy trying change that

    #141796
    David Barber
    Participant

    WordPress 3.8.1 running Suffusion theme.
    bbPress Version 2.5.3

    bbPress 2.1 now available!

    On a registered participant login, I keep getting “The forum ‘Private: Small Stars’ is closed to new topics and replies.”
    or “This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.” if I’m on admin privileges.

    The forums are definitely open.

    Repair forums gives me (As Admin and Keymaster) “You do not have sufficient permissions to access this page.”

    I have searched for this topic, but the phrases around “This forum is marked as closed to new topics” bring up almost every webpage that uses bbPress, as it’s the default text at the bottom of so many topics!

    What could be wrong here?

    Thanks in advance for any help.

    David.

    #141759

    In reply to: Thousands of revisions

    inspirationally
    Participant

    Fugettaboutit – some more hours passed by and they still are there. So that wasn’t the reason.

    CUrious is, that, at least for me, the URLs (guid) of the revisions are like
    http://deppheads.com/general/2014/01/24/303815-revision-v1/

    with post parent being this
    http://deppheads.com/forums/reply/303815/

    while even those spam replies have an url like this
    http://deppheads.com/forums/reply/711501/

    so they are getting normal posts in the general category (my default one)

    #141744
    Stephen Edgar
    Keymaster

    At a quick glance I’m quite sure bbPress could do everything that you mention above, just not out of the box will it do those things.

    You would need to make these customizations yourself or hire a programmer to do them for you.

    The ‘threaded “hierarchal tree-style” would just be a matter of making some custom templates and would be quite quick. To setup the different theme for different users I think there are a few WordPress plugins that let your users choose what theme they want to use, so have two themes, one with the default bbPress theme (with or without customizations, and the other theme with your customized “hierarchal tree-style” templates.

    There are some docs on getting started with custom templates https://codex.bbpress.org/theme-compatibility/

    #141726
    Shmoo
    Participant

    In bbPress 1.0 we had an array option called array( ‘exclude’ => ‘-3,-73,-103’ ) why is this gone in bbPress 2.0 ?

    First I thought okay it’s just turned around instead of excluding forum_ids we now include forum_ids but that’s not true.

    The post_parent is by default set to ‘any’ = 0 but you can only add one single forum_id you can’t do stuff like this.

    bbp_has_topics( array( ‘post_parent’ => ‘23,51,73,107’ ) )

    It’s show everything – one forum_id or nothing at all.

    What am I missing here?

    #141674
    Robin W
    Moderator

    Could be theme or plugin conflict.

    Try switching to a default theme (such as twenty twelve) to see if problems remains.

    Then try disabling all you plugins, and if that fixes, re-enable one at a time to see which is causing the issue

    #141671

    In reply to: Plugin Update 2.5.3

    Robin W
    Moderator

    Try switching to a “default” theme (such as twenty twelve) and see if it goes away.

    If not, try disabling your other plugins and re-introduce one at a time to see if there’s a conflict.

    #141657
    giggio
    Participant

    I use bbPress-2.5.3 and BuddyPress-1.9.1 for my forum.

    I want to add a couple of new forum roles + existing 5 default roles. How to do that?

    For example, I want to have forum roles – ‘beginner’, ‘advanced’, ‘senior’, ‘veteran’, etc. with capabilities – ‘participant’. And other forum roles with custom names with capabilities – ‘moderator’.

    Thanks in advance!

    #141647
    Markic
    Participant

    First of all, I’m not asking any questions, I’m offering solutions for people who, like me, had these specific problems, are googling for a solutions and can’t find any. Some of you think this is pure amateur stuff, but there are people out there who will spend hours trying different things and this can save them so much time. If you want to delete this topic, I don’t care, I’m here to help…

    How to load bbpress.css before your yoursheet.css?
    Intro: When WordPress is loading stylesheets, they’ll load all the theme .css files first and then they’ll load plugin css. That way plugin css has higher priority than your css and only way you can override it is with !important. As we all know, that is a bad practice.

    Also, you can create your own bbpress.css in your theme but that means more files to keep up with (although, that’s the cleanest solution). Here’s another way to do this:

    paste this code into functions.php…

    if (class_exists('bbPress')) {
    add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
    function deregister_bbpress_styles() {
    wp_deregister_style( 'bbp-default' );
    }
    wp_enqueue_style( 'bbpress_css', plugins_url().'/bbpress/templates/default/css/bbpress.min.css');
    }

    So, let’s get into details:
    – first, if you have active plugin ‘bbPress’ it will exicute the following code which removes all the .css files from it
    – second, it loads bbpress.min.css again, but this time where you want it…
    – be sure that you enqeue your stylesheet after this code

    Note: there are two problems that might arise from this techique
    -if bbPress developers decide to rename, remove or split bbpress.min.css, you’ll have to change the code again
    -there’s other .css file named “bbpress-rtl(.min).css”. Well, some cultures (Arabic), read and write from right to left. And what this file aligns everything to the right. bbPress has some system of deciding whether it should load this file or not, but by doing this technique, you’re disabling that system.

    How can I remove all the breadcrumbs from the templates and set them at the top of the page?
    Intro: Many of us are creating our own themes with existing breadcrumbs systems which are in the header. But bbPress has it’s own idea where to display breadcrumbs, and sometimes that’s at the top of the page, sometimes that’s below search form and sometimes it’s below title. Here’s how you can change that quickly.

    1. If you haven’t, create “bbpress.php” in the root folder of your theme. (You can copy-paste page.php)
    2. Add
    <div class="truebreadcrumbs"><?php bbp_breadcrumb(); ?></div>
    where you wan’t to show your breadcrumbs
    3. Add this CSS:

    div.bbp-breadcrumb {
    display: none; /*this will hide all breadcrumbs*/
    }

    .truebreadcrumbs div.bbp-breadcrumb {
    display: block; /*this will display breadcrumbs you've created*/
    }

    Sure, HTML will still generate all the breadcrumbs and css will hide the unwanted ones, but this is the easiest way to do this without going into templates…

    #141639
    Shmoo
    Participant

    Try this.

    Your HTML and CSS isn’t very pretty but this will do the trick I believe.

    
    .type-reply.user-id-1 {
         background: #91CDEA;
         border-top: 1px solid #BEC3C7;
         border-bottom: 1px solid #BEC3C7;
         overflow: hidden;
    }
    

    Btw, if you have copied the default bbpress.css stylsheet from the plugins folder to your own theme ( wp-content/themes/your-theme-name/css/ ) folder you can edit and customize that new bbpress.css file. You don’t have to place all your custom CSS inside the style.css – just customize the bbpress.css inside your theme folder.

    Right now you’re working too much with the !important; attribute just trying to overwrite default stylings while it’s not needed if you simply customize the bbpress.css stylesheet.

    #141634
    Shmoo
    Participant

    Screenshots:

    Default:

    Shows pagination:

    Activated:

    Gone pagination:

    Added a Trac ticket

    #141625
    Shmoo
    Participant

    Not, because Forums is a Post Type like Posts, Pages, Topics, Replies, Products, Books and more of those options you often see in WordPress.

    You order the items them when they get pulled from the database based on X or Z.

    __

    I’ve been trying for years now to find the best ‘new’ way to GROUP + ORDER custom lists of forums without having to make Parent forum categories.

    Think about how Menu’s work inside WordPress, it’s one of the most powerful and easy to use features in WordPress and it can + should be used in more ways then just making menu’s. It can’t be that difficult to alter or hook into that wp_nav_menu functionality.

    To be honest the main functionality is already there,
    If you go to the Menu’s page inside your WordPress back-end you can see on the left side an option to add all, or most used forums, or just a single forum item to your website’s menu-bar.
    ( if this option is visible from the options menu at the top )

    That’s a feature almost nobody uses right now because lets face it, how often do you link to a single-forum-item from your website’s main navigation bar? If so you can also use the Add Custom Link option, visit the single-forum-page front-end > copy the link and add a custom Menu Link to you menu. Done!
    Mostly you just link to the general forums-index page with a list of all forums, that’s a link you show inside your website’s main menu-bar.

    Just try it, add a single forum-item to your menu bar but now think about how cool it would be if that link would also show your topics + posts count behind it.
    Default right now:
    – /single-forum-title/
    What it could be:
    – /single-forum-title/ – ( 7 ) – ( 32 )

    See where I’m going with this, if you have that structure of a link layout you can group and order very easily your index forum pages or at any other page where you can add a menu – even in de sidebar you could make powerful easy to use lists of forums you want to group together.
    This is so flexible you can make 50 different versions of lists – all you need is a few custom_menu_locations who are made for bbPress forums only.

    All this isn’t rocket science for somebody who knows PHP, wp_nav_mennu already has special hooks to add to page_nav_items so you can include data behind those menu-links, even bbPress already has a forums Widget that can do almost the same as I just told you by just adding 2 lines of PHP.

    I think this is the way forward in making unique forums index pages.
    I think we all love to group X forums together without using a category forum and try to pull that list behind the scene based on the category_forum_id. You just want to make forums + group the manually together like Menu-items, combine + order -items > Add them them into unique menu_locations and you can make little kinda Widgets of related forums content.

    Look what I made over the years and it was a frustration to find the right tags to use while it can be so much easier done by just hooking into the WP Menu function.

    View post on imgur.com

    View post on imgur.com

    !! Of course keep your respect to the people doing all the hard work on this lovely bbPress source !!

    #141623
    Shmoo
    Participant

    Well try using your browsers Web inspector that will guide you through your code and gives you a visual image of where and what you can change because every site can be different.

    This is an old video but I think every browser today has an Inspector inside it by default. It gives you an idea of how you can spot some HTML classes and what you should target to change.

Viewing 25 results - 3,351 through 3,375 (of 6,759 total)
Skip to toolbar