Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,001 through 12,025 (of 32,521 total)
  • Author
    Search Results
  • #145740

    In reply to: Freshness for Category

    Robin W
    Moderator

    ok, I presume that bbpress is deactivated on the live site at the moment.

    I suspect that bbpress is using the wrong page template probably the one that the page “what the hinge” is using.

    Given that this is a paid theme from themeforest, so may have very complicated page templates, can you look and see what page templates are available that bbpress might be using

    see

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

    and come back

    #145738
    Robin W
    Moderator

    add the following to your functions file, and the sub forum descriptions will display

    //This function adds descriptions to the sub forums
    function custom_list_forums( $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 );
    			$content = bbp_get_forum_content($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'];
    			}
    
    			// Build this sub forums link
    			$output .= $r['before'].$r['link_before'] . '<a href="' . esc_url( $permalink ) . '" class="bbp-forum-link">' . $title . $counts . '</a>' . $show_sep . $r['link_after'].'<div class="bbp-forum-content">'.$content.'</div>'.$r['after'];
    		}
    
    		// Output the list
    		return $output ;
    	}
    }
    
    add_filter('bbp_list_forums', 'custom_list_forums' );
    tharsheblows
    Participant

    Hi Mike – to filter the ajax call try this :

    function hide_before2 ($args = array() ) {
    $args['before'] = '&nbsp';
    $args['subscribe'] = '<i class="genericon genericon-subscribe"></i>Subscribe';  
    $args['unsubscribe'] = '<i class="genericon genericon-unsubscribe"></i>Unsubscribe'; // or whatever
     
     return $args;
    } 
    
    add_filter('bbp_before_get_user_subscribe_link_parse_args', 'hide_before2');

    <can people see edits? I’m just wondering if anyone can see my stupid errors>

    Anyway, you should, I think, be able to use the above *instead* of your copied functions as it will work with the initial ones too not just after the ajax call.

    #145734
    tharsheblows
    Participant

    I am totally guessing with this – but I think you’ll be using this on a single topic right? So maybe try bbp_is_single_topic() . Here is the list of conditional tags I looked at: https://codex.bbpress.org/bbpress-conditional-tags/

    #145712
    Robin W
    Moderator

    1) have you set up your email address in dashboard>settings>general?

    2) If registration is automatic, then they’ll be sent a password. They can change this in their bbpress profile – they can just click on their avatar, or you can add this to wdigets or the menu – see

    Layout and functionality – Examples you can use

    #145702
    Stephen Edgar
    Keymaster

    A clean install breaks it again. I’m not sure what it is that out-of-the-box would break it like that, but it appears there is a conflict between BuddyPress 2.0 and bbPress 2.5.3.

    This is extremely rare, not saying it can’t happen, the fact that BuddyPress uses bbPress for forums 99% of the time the BuddyPress developers will have bbPress enabled. I have BuddyPress enabled for ~75% of the time and typically only deactivate it when working on bbPress profiles. In short we usually catch any conflicts ourselves before releasing a new version of either plugin.

    Also the fact that I have both plugins activated now using the same slugs you are trying to use and don’t get that error eliminates the plugins having a conflict as the issue in this case.

    Can you spin up an entirely fresh WordPress install with just bbPress and BuddyPress and use the Twenty Fourteen theme and see if the issue still occurs.

    I just went trawling through the raw database options for WordPress in wp_options trying to find something that may cause the conflict and couldn’t find anything of interest.

    #145696
    Stephen Edgar
    Keymaster

    Throughout WordPress and bbPress and BuddyPress included having posts, pages, terms can NOT have the same slug, most likely you have something else either titled or using the slug discuss and this includes any items in trash as even though they are in the trash they still reserve that slug and it is not released until the item is removed from the trash.

    I cant seem to find an error for the term “Possible BuddyPress Conflict”, where are you seeing this error?

    #145694
    Stephen Edgar
    Keymaster

    Doing so breaks the page. It creates a conflict by attempting to dynamically generate a forum root, using the same url as the wordpress page which is using the shortcode.

    This works fine for me and is part of the backend philosophy of how bbPress works allowing a page with the same name as the forum root to take precedence.

    * Created a page titled discuss and added the shortcode [bbp-forum-index]
    * Changed the bbPress setting ‘Forum Root Slug -> Forum Root’ to discuss

    So now for the site http://example.com/
    – A forum list at http://example.com/discuss/
    – A topic at http://example.com/discuss/topic/exammple-topic/
    – A forum at http://example.com/discuss/forum/example-forum/

    #145693
    Stephen Edgar
    Keymaster

    After 1 day importet from e107 forum tu bbpress! Alleluia!

    Excellent šŸ™‚

    old code for video youtube not fix

    I’ll take a look at the BBCode’s and see what I can find and add some conversions for them (if I can can)

    utf8 encoding accented words not fix

    Hmmmm, this might be a little harder, will take a look.

    Stephen for news and content from e107 to wordpress I asked a programmer who will take me some money, if he fails, can you do it?

    I’m not sure I’d be able to help, I have never used e107, I have a basic forum setup and that is it. I do everything I need for bbPress directly in the MySQL database.

    #145690

    In reply to: Allow HTML from users

    rendi edwido
    Participant

    Seen your problem was solved.
    You are so nice to make the guest allow Html code.
    Cheers for you mate

    #145689
    Pasquale Galasso
    Participant

    Hi Stehpen!

    Utenti registrati
    2.169
    Forum
    10
    Discussioni
    4.221
    Repliche
    148.749

    After 1 day importet from e107 forum tu bbpress! Alleluia!

    Error:
    old code for video youtube not fix
    utf8 encoding accented words not fix

    nothing serious!
    Alleluia!

    Stephen for news and content from e107 to wordpress I asked a programmer who will take me some money, if he fails, can you do it?

    Sorry sorry for my english.

    #145684
    Robin W
    Moderator

    on styling, yes all can be changed.

    see

    bbPress Styling Crib

    for lots of help.

    On your page http://atlantacraftbeer.com/beer-exchange/ – what is this page? In theory if it is a normal page with a sidebar, and you put the [bbp-forum-index] shortcode on it it should work.
    How is this page set up?

    #145683
    dustinarmstrong
    Participant

    Doing so breaks the page. It creates a conflict by attempting to dynamically generate a forum root, using the same url as the wordpress page which is using the shortcode.

    #145679
    calebbuxton
    Participant

    Hey All,

    I am new to this plugin and I am trying to adapt it to my website.

    I am trying to place the forum on this page: http://atlantacraftbeer.com/beer-exchange/

    but it is not showing up like it does on the dedicated page: http://atlantacraftbeer.com/forums/forum/atlanta-beer-exchange/

    Is there a way to update my shortcode to have it appear on the page I would like it to?

    ALSO – if you notice the colors and some of the spacing do not really work with my theme. Is there a way I can update the colors and spacing (especially for the register page) using the CSS?

    #145662
    dustinarmstrong
    Participant

    Been looking into this for a few days, and I can’t find a solution.

    By default, bbpress offers two solutions for the index of a forum page:

    • Using the default settings, and a customizable ‘forum root’ available in the settings panel
    • Using a page with a shortcode to implement the section that you want

    However, when you use the shortcode solution, there are two ‘forum root’ urls. The one that is associated with the page you want to use, and the one generated with the ‘forum root’ url.

    For example, let’s say that I created the forum using the shortcode on site.com/discuss, and I need to use custom fields to customize the appearance of that page with a header, a hero graphic, and some descriptive text. I can style it, and it looks perfect. However, the site.com/forums url is still present in the forum topic urls (site.com/forums/post, not site.com/disucss/post), and as it’s own page without the custom styling.

    While I could customize the page template for bbpress on site.com/forums, there are no methods for displaying fields defined by the client/user in the dashboard on that template, completely eliminating the purpose of using the custom page & shortcode option.

    Are there any solutions for this or am I stuck? I’ve yet to find any solutions on this.

    #145654
    qlymax
    Participant

    If you download the buddypress plugin, there will be a widget called: Who’s online ..

    That’s a easy solution for now.

    https://codex.buddypress.org/buddypress-components-and-features/buddypress-widgets/

    #145645
    Stephen Edgar
    Keymaster

    Do you think there is a limit with database size?

    No, all size constraints are upstream and relate directly to WordPress and the size you are talking about is not an issue.

    There is almost 100,000 posts and the database is bigger than 350 Mb

    That’s fine…

    Now the fine print, this will take a while to import, depending on your setup it might be a couple of hours right through to 8, 16 or 24, “how long is a piece of string” theory.

    I am not sure what tools Invision includes but optimizing and cleaning the database first is a very good idea.

    As bbPress imports the topics and replies it parses all the BBCodes ([b][i][url] etc) through a custom conversion script, if it comes across data it doesn’t like it will stop and no longer continue. Thus it is advisable to setup a local MAMP/XAMPP install and perform an import on your local machine as it gives you a good idea on how the process works, how much time it will take and the data integrity. Once your happy with all that then give it a go on your webhost.

    #145619
    Stephen Edgar
    Keymaster

    Make sure you have the settings correct, check the e107_config.php file for the correct seetings:

    eg.

    
    $mySQLserver         = 'localhost';
    $mySQLuser           = 'my_database_user_name';
    $mySQLpassword       = 'my_database_password';
    $mySQLdefaultdb      = 'my_database_name';
    $mySQLprefix         = 'e107v1_';
    
    #145613
    Stephen Edgar
    Keymaster

    All Invision 3.1x, 3.2x, 3.3x and 3.4.x versions should import fine… Remember to make sure you select ‘Invision’ from the dropdown (I still make this mistake quite frequently :P)

    Maybe open up your Invision config file conf_global.php and confirm your settings:

    
    $INFO['sql_host']			=	'localhost';
    $INFO['sql_database']			=	'my_db_name';
    $INFO['sql_user']			=	'my_db_user';
    $INFO['sql_pass']			=	'my_password';
    $INFO['sql_tbl_prefix']			=	'iv34_';
    

    Also to note some web hosts will not use ‘localhost’ and use a FQDN instance eg. ‘sql1234.example.com’

    #145610
    Stephen Edgar
    Keymaster

    (Rather than bumping very old topics I split this into a new topic)

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    Participants can ‘assign_topic_tags’

    Keymasters and Moderators can ‘manage_topic_tags’, ‘edit_topic_tags’, ‘delete_topic_tags’ & ‘assign_topic_tags’.

    Are you seeing something different? What user role are you using to test this?

    Jerry
    Participant

    @tharsheblows, thanks for inquiring about this. No, I have not figured it out. Sorry I did not get back to you; I was in Europe traveling on business.

    As a temporary fix I had removed the function call to my google books search function from form-topic.php. But I prefer to keep that function call in there. When you were trying to replicate this, I was calling my function via a shortcode.

    If you go to my site, and got to “Generations”, then click on “add a book”, you will see the google books search window. Just search for a book in that window, then watch what happens.

    Any insight you can give me would be greatly appreciated. There are still many other things I am trying to figure out, but this would be a great step.

    Thanks,
    Jerry

    #145598
    Pietmar
    Participant

    Hi

    WP 3.9
    BBP 2.5.3
    TwentyTen

    I use WPPA a lot on my blog and would like to integrate in BBPress.

    When I add it in topic i get this:

    http://goandstay.co.za/blog/forums/topic/testtopic-2/#.U15rdfmSySo

    The code instead of the slideshow.

    Jacob Breedtveld . aka Opajaap (author of this amazing plugin) (http://wppa.opajaap.nl/ & https://wordpress.org/plugins/wp-photo-album-plus/) says:

    If this also does not work, ask the BBPress boys if there is a possiility that on the particular text shortcodes can be expanded ( $text = do_shortcode( $text ); ) or that the standard content filters can be run. ( $text = apply_filters( ‘the_content’, $text ); )

    I don’t have a clue what Jacob says, but think you will know!

    Thanks

    #145592
    Stephen Edgar
    Keymaster

    This site here bbpress.org uses a customized theme and customized code to achieve the results in the pictures you show above.

    I suggest you have a read of some of the tutorials in our docs, much of what you want has been documented in the codex.

    Codex

    Step by step guide to setting up a bbPress forum – Part 1 – Getting it working
    Step by step guide to setting up a bbPress forum – Part 2 – Styling bbPress
    Step by step guide to setting up a bbPress forum – Part 3 – Changing layout & functionality
    Step by step guide to setting up a bbPress forum – Part 4 – Adding Actions
    Step by step guide to setting up a bbPress forum – Part 5 – Using filters

    #145591
    Stephen Edgar
    Keymaster

    Thanks Mike, I am one of the bbPress core developers, with some luck I’ll get this fixed within the next few days. At this stage until I dig into all the code properly it is about as clear as mud for myself also.

    Either or, glad you have a temp fix for now šŸ™‚

    #145585
    Pasquale Galasso
    Participant

    Hi

    (Sorry, sorry, sorry for my bad English.)

    I’m doing a thousand attempts with shortcode, use bbPress folder in my template folder. Using plugins bbPress WP Tweaks and I set page.php in its settings.

    When I try to do this:

    Instead I get this:

    No column post no number šŸ™

    Then I can not get this:

    1) I can never see these icons
    2) I want to see this box on my forum, “Topic Info”, “Info Forum” equal to that bbPress is a very clever solution.
    3) in my forum (xamp server to the local machine to create complete style) when there are topics with more pages does not happen what happens here, where the first reply is seen on every page and a different color.

    I read a lot on the forum and many people asking for a similar style to this bbPress.org. No one answered a precise code, but this I can understand, this style of bbPress is magnificent.

    I have been working for many hours but I managed to get anything, if I fix the things listed above I am happy.

    I doubt that this can not be done with the system widgets, as I’m trying …. widgets can not do this … who gives me the changes to make to the template? Please.

Viewing 25 results - 12,001 through 12,025 (of 32,521 total)
Skip to toolbar