Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 3,851 through 3,875 (of 6,760 total)
  • Author
    Search Results
  • #133334
    smithgt
    Participant

    Simple noob question, but where do I specify the default page template for the forum? I need to switch for a FullWidth Template.

    thanks

    #133305
    premitheme
    Participant

    Okay, not sure if this is the reason, but after your last reply a searched a little bit, found this ticket https://bbpress.trac.wordpress.org/ticket/2070 and started to think that it’s a problem in the URL.

    The only difference between XAMPP and MAMP (free) is that XAMPP uses “localhost” host name, while MAMP (free) uses “localhost:8888” when using MAMP ports by default (MAMP pro uses “localhost” that tell why it works OK with you). So I went to MAMP preferences and changed the ports settings to use default Apache and MySQL ports to use “localhost” instead of “localhost:8888”, and finally posting topics and replies is available again 🙂

    Even better I setup a virtual hostname manually in MAMP (free) and the everything works fine.

    I hope this will help others with the same issue with MAMP (free). Thanks for your time @johnjamesjacoby and @netweb, great work and keep it up.

    #133288

    Not entirely sure how you arrived at that solution, but I can’t imagine any of it ever working correctly. 🙂

    The wp action happens before WP_Roles is called, so it’s too soon in the stack. You’re also missing a bunch of sanity checks that bbp_set_current_user_default_role already does for you; no sense in duplicating only some of that work.

    You could try hooking into init but, again, I suspect something in the iMember360 plugin is interfering and won’t allow that to work correctly either.

    You *should* actually be debugging the setup_current_user action, to see if bbp_set_current_user_default_role is even firing, and if it is, where it’s failing.

    If you’re looking for a brute-force kludge, something like this is probably closer to what you need:

    function earthman_force_current_user_caps() {
    	global $current_user;
    
    	// Only for logged in users
    	if ( ! is_user_logged_in() )
    		return;
    
    	// Reload the current user with correct capabilities
    	$current_user = bbpress()->current_user = get_user_by( 'id', bbp_get_current_user_id() );
    
    	// Try to give them a role on the site, if they need one
    	bbp_set_current_user_default_role();
    }
    add_action( 'bbp_template_redirect', 'earthman_force_current_user_caps', -99 );
    #133287
    Earthman Media
    Participant

    Well I got this far, but every time I try to call the function you suggested, or try to add the role manually, it breaks. Any ideas what I might be missing, please?

    
    add_action( 'wp', 'bbp_check_user_role_on_load' );
    function bbp_check_user_role_on_load() {
    	global $user_ID;
    	
    	//do they have a role set already?
    	$has_bbp_role = bbp_get_user_role( $user_ID );
    	if(!$has_bbp_role){ //nope, add default BBP role 
    	
    		//tried this but it breaks it
    		//bbp_set_current_user_default_role();
    	
    		// Load up bbPress once
    		$bbp = bbpress();
    		$new_role = 'participant';
    		
    		//this breaks too - wtf?
    		//$bbp->current_user->add_role( $new_role );
    		
    	}	
    }
    #133276

    @earthman100 – Search for `bbp_set_current_user_default_role` – it’s hooked to `bbp_setup_current_user`, which is hooked to `setup_current_user`, which seems odd that any plugin would bypass completely, since pretty much everything a user does is linked to it.

    Which is to say, I don’t think manually handling the login or user-creation process is the problem; I think this plugin is `_doing_it_wrong()` by invoking the current user far too early, before bbPress ever has a chance to hook in.

    #133250

    Anyone having issues with MAMP, I run MAMP Pro locally, and have used it to develop bbPress since years back. MAMP isn’t the issue, something else is, and it should not have changed between bbPress 2.2 and 2.3.

    For people having issues accessing the administration area, your account needs the “Key Master” role to access the “Forums” menu, and at least “Moderator” to access “Topics and “Replies.”

    • In the past, these checks were using the `is_super_admin()` function, which would default to users with the “Administrator” role on single-site installations.
    • Those that have fixed it using the auto-role setting, bbPress is automatically granting Administrators the Key Master role.
    • Auto-role should most likely be turned on anyways; it’s only a setting to allow site-owners the option to let other role plugins handle that instead.

    People wanting to go back to using an old version of bbPress, I’d highly advise that you troubleshoot your installations and stick with 2.3. Rolling back is a temporary fix that doesn’t help track down what’s going on; when we’re willing and available to help you figure out what is going on, it’s best to take advantage of the free support instead.

    #133220
    Stephen Edgar
    Keymaster

    @alexiousrahl Search is enabled by default, you should be able to see the search form at the top of your forums list eg. http://example.com/forums/

    I have also updated the Shortcodes and Widgets codex pages.

    #133197
    WayneM1
    Participant

    With the most recent botnet attack on WordPress powered websites, I’m (once again) reviewing the measures I take to secure my WP installations.

    Most WP admins understand the importance of not using the default “admin” username when setting up a site. Many WP admins do not realize that simply using a different main admin username is not enough. That username should be “obscure” (not easily guessed) and it certainly should not be the same as the publicly displayed “nickname” that is associated with the user account. Those need to be different – this helps to prevent bots and bad people from getting the first part of your login credentials = your username.

    While I been taking action to ensure this is the case on the WP sites I manage, I’ve noticed a problem with the way that bbpress displays username information. Even if a user has a “nickname” that is different from the actual username – when you hover over a link to the user’s profile the URL will show the actual username (the one you are trying to hide through obscurity).

    There is an older thread on the WP forums that seems to suggest that this is not a WP core issue, but rather a plugin/theme coding issue. I don’t know if that is correct, or not. But, it is an issue in any case and needs to be addressed.

    #133189
    atburi
    Participant

    @dpmcalister very strange. Once I went to Settings / Forums / and ticked the check box:

    “Automatically assign default role to new, registered users upon visiting the site.”

    then saved, the ‘Forums’, ‘Topics’, and ‘Replies’ admin menus showed up.

    Guess this is a bug they’ll fix shortly, but for now there’s a quick fix!

    #133092
    WayneM1
    Participant

    I’ve tried three different themes including the default buddypress theme and 2012, deactivated all other plugins, etc…

    There is no bbpress forum search box showing up on my site. I’ve removed and reinstalled bbpress and buddypress a couple times, too.

    Any ideas?

    I can’t even find a setting for the search box – like show/hide (if that’s even an option).

    Help?

    #133080
    Fraternity
    Participant

    moebis – just took a look at this, I may have a more recent version than you use in your fix above.

    Here is how to play with my hack in the latest trunk:

    EDIT: /bbpress/includes/extend/buddypress/group.php

    Delete lines 609-614 and add “?>” back to line 609.

    The code I have at these lines is this:

    <?php bbp_get_template_part( ‘form’, ‘topic’ ); ?>

    <?php else : ?>

    <?php bbp_get_template_part( ‘feedback’, ‘no-topics’ ); ?>

    Probably not what I want to comment out. What I did find though is this (lines 567-581):

    // Suppress subforums for now
    add_filter( ‘bbp_get_forum_subforum_count’, ‘__return_false’ );

    // Set up forum data
    bbpress()->current_forum_id = $forum->ID;
    bbp_set_query_name( ‘bbp_single_forum’ ); ?>

    <?php

    // Remove the subforum suppression filter
    remove_filter( 'bbp_get_forum_subforum_count', '__return_false' );

    Group Subforums

    I highlighted a few things:
    1) Topics are only being displayed from group subforum 2 (believe you mentioned this above). This should be easy enough to fix
    2) I thought I was posting in the Group Forum when I used the default form below, but clearly (as per highlight 3) this is now set to group subforum 2
    3) Default Create New Topic is set to Group Subforum 2. I assume this was the “last retrieved forum” and is probably easy enough to fix. In my case, I’ll probably be changing my group forums to a category anyway, so I don’t actually want people starting new topics from this page.

    #133062
    boki_
    Participant

    Hello. I’ve just switched from wampserver to ampps by softaculous, because it’s python/perl default integration, and I’ve also noticed their script installer. And there is WordPress in CMS/blog scripts, and also bbPress in forum scripts. I was curious, and I’ve installed bbpress, and this isn’t a wordpress with bbpress plugin already installed, but it’s only bbpress, standalone, strict forum without pages, posts, everything that wordpress has, but only with very similar to wordpress file structure and dashboard. But here it can be only downloadable as a plugin, and I’ve also see this nowhere yet… Is this maybe a softaculous’ “version”, that they integrated a plugin in wp engine, so that plugin can run? It’s very interesting thing, but it’s limited extendability bothers me, you can’t install new themes or plugins.

    I’m now confused with this “standalone” bbpress, anyone knows more about this?

    Thanks

    #133060
    lucop1
    Participant

    Hi,

    i’ve just installed buddypress 1.7 and bbpress 2.2.4.

    I created a custom theme for bbpress doing the following steps:
    1. create a folder bbpress inside wp-content/themes/mytheme/
    2. moved all the php files that were inside plugins/bbpress/templates/default
    3. moved the css file inside wp-content/themes/mytheme/css/

    after that

    I turned on the functionality to include the bbpress forum inside buddypress groups but I found and issue with the topic subscription and add to favorites.

    Because when i click on that link in the single topic view it open a blank page.
    I checked the bbp-function.php files stored in plugins/bbpress/templates/default and I found that it enqueue all the ajax function for the topic subscribe option and add to favorite options.

    But when I go the forum page inside BuddyPress Group and open the source code I don’t see any enqueue ajax files or functions.

    So what should I do to let it works?

    thanks

    #133040
    lasticko
    Participant

    Thank you but I’m not looking to get my hands too dirty under the hood with CSS/PHP.

    Arent there any drop-in solutions to just make them look cleaner / nice?
    The default look/feel is very clunky.

    Thanks again in advance

    #133033
    serpini
    Participant

    Hello,

    I just installed bbPress 2.2.4 version on a wordpress version 3.5.1, I wish you all the forum pages were full size without displaying the sidebar, I’ve searched the forum and the solution of copying the full-width page to bbpress.php I have not worked or have not done it correctly.

    Would I could say how I can make the forum will be full size? and steps for a beginner.

    I use the WordPress default theme Twenty Twelve.

    Forum url: http://www.serpini.es/sqlrpt/forums/

    ovizii
    Participant

    Solved by using User Role Editor to reset all wordpress user roles to their default.

    #133019

    Assuming you are the admin of the site, if you manually create a new user do you get a notification email?

    If you don’t, the default wp_mail() function likely isn’t working with your web host/server. This is semi common.

    The easiest fix is to use an SMTP plugin like https://wordpress.org/extend/plugins/configure-smtp/.

     

    #133013
    Stephen Edgar
    Keymaster

    The bbPress theme/s you linked to are for the old bbPress 1.x.

    If you are using bbPress 2.x plugin then bbPress will try to use as much of your default WordPress theme as it can. If you want to customize bbPress 2.x then follow the links from here to get started https://bbpress.org/themes/

    #132969

    Topic: Can't remove sidebar

    in forum Themes
    dtommy79
    Participant

    Hi,

    I’ve installed bbpress, and I’m using the default twentytwelwe theme. I created a page for the forum index, selected the full-width page template, but the sidebar won’t go away. How can I remove the sidebar?

    Thanks

    #132915
    Robin W
    Moderator

    Converting a Snitz access database forum to BBpress

    This documents how I transferred from a website using Snitz and an access database to a new site with BBress using Mysql.

    This briefing assumes knowledge of
    • FTP programmes and uploading/downloading files
    • A way to access your wordpress database eg myphpadmin
    • A way to see your access database

    Introduction

    BBpress has a conversion tool that lets you import data from several other forum packages. However two things are needed for this to work.
    1. The data in a MySQL database format
    2. A convertor programme that understands the structure of the source (in this case Snitz) forum.

    If you already have a MySQL verison of Snitz (Snitz supports Access, MS SQL, and MySQL), then you’ll still need to fix the date, and run a specific Snitz converter, but don’t need the upload to MySql in step 2.

    Plan

    The plan therefore is to
    1. Fix date format (it is different between the two forums)
    2. Convert the data to sql format
    3. Run a snitz converter
    4. Run repair to fix the links

    Execution

    I can only describe how I achieved this, I suspect there are lots of ways, but this one worked.

    I had an access database on site x with hosting company a, and needed to transfer to a Mysql database on site y with hosting company b (basically I was taking over running someone else’s website management)

    Step 1 fixing the data format

    Snitz stores dates in the format yyyymmddhhmmss
    BBpress stores dates in the format yyyy-mm-dd hh:mm:ss

    You can fix this
    • before you transfer the data to sql,
    • after you have transferred it
    • or during conversion,

    this will depend on where you knowledge lies. But you will need to fix it. If you don’t fix this, all the entries you import will show as posted 2014 years ago (basically year 0)

    I converted before transferring to sql, as I an old and used to working with flat files! If you are more capable in sql, you could no doubt write a small programme to change the data format after you’ve uploaded to sql, and if more capable in php you could do it within the converter programme (see later)

    The Snitz database has two tables with dates in that need changing. These are :

    FORUM_TOPICS
    FORUM_REPLY

    This is how they showed in my Snitz database, but the prefix may be different with yours.

    In FORUM_TOPICS you need to change
    T_DATE
    T_LAST_POST

    In FORUM_REPLY you need to change
    T_REPLY

    I downloaded the access database from the old site to my PC. I then exported the two tables to an excel spreadsheet (in Access go to external data, and look for export to Excel. You’ll need to have created a blank spreadsheet with the name you want to use first) and ran the formula

    =CONCATENATE(MID(N2,1,4),"-",MID(N2,5,2),"-",MID(N2,7,2)," “,MID(N2,9,2),":",MID(N2,11,2),":",MID(N2,13,2))

    Where column N contained the old date.

    I then prefixed the original heading with OLD (eg heading T_DATE became OLDT_DATE) and headed the new column with the heading of the old one (eg T_DATE). I did this to a) preserve the original columns just in case, and b) to use for the clean slug in the conversion (see later).

    I then deleted the old table in access, and imported the two excel ones back into Access (as before external data, then import).

    I then had the same access database, but with the correct date formulas and a couple of extra columns with the old date format in them.

    Step 2 – Convert access database to MySql database

    The first thing you’ll need is a MySql database to upload to.

    You can use the one you presumably already have with WordPress/BBpress. However you’ll just need to check that none of the names co-incide. Since my Snitz database used capitals (I don’t know if they all Snitz databases do), and BBpress uses lower case, I suspect that there is no risk in doing this, but one for you to consider.

    I took the safety of creating a fresh blank database (my hosting package allows the creation of databases and manages them through phpMyadmin).
    There are numerous programmes on the web that do access to Mysql conversion, but for no particular reason I chose Bullzip http://www.bullzip.com/.

    However this needs a 32bit ODBC driver to work, so unless you already have Mysql on your local PC, you’ll need to download the driver from http://www.mysql.com/downloads/connector/odbc/ – choose the 32 bit one.

    Once installed it is a doddle to do the conversion.
    You’ll need :
    The access database on your pc
    The host address of your MySql database
    The database name
    The username
    The password.

    Run the wizard, and it’ll upload in minutes.

    Finally if you’re going to do the date conversion discussed in Step 1 at this stage, now’s the time to do it.

    Step 3 – Importing/converting the data

    This is easy once you’ve got your head around it, but initially it can be very frustrating.

    In essence you need to translate what one forum calls something to what the other needs.

    For Snitz, I used the following translation

    
    Forum section FORUM_FORUM forum
    Forum id	FORUM_ID	_bbp_forum_id
    Forum parent id	CAT_ID	_bbp_parent_id
    Forum title	F_SUBJECT	post_title
    Forum Slug  (see note 1)	FORUM_ID	post_name
    Forum description	F_DESCRIPTION	post_content
    Forum Display Order	F_ORDER	Menu_order
    Forum Date Update		Post_date
    		
    Topic section	FORUM_TOPICS	topic
    Topic id	TOPIC_ID	_bbp_topic_id
    Forum id 	FORUM_ID	_bbp_forum_id
    Topic author	T_AUTHOR	post_author
    Topic title	T_SUBJECT	post_title
    Topic Slug (see note 1)	T_DATE	post_name
    Forum id (if no parent 0) 	FORUM_ID	post_parent
    Topic date update 	T_DATE	post_date
    	T_DATE	post_date_gmt
    	T_LAST_POST_DATE	post_modified
    	T_LAST_POST_DATE	post_modified_gmt
    		
    Tags section		
    Ignored		
    		
    		
    Post section	FORUM_REPLY	reply
    Post id	REPLY_ID	_bbp_post_id
    Forum id	FORUM_ID	_bbp_forum_id
    Topic  id	TOPIC_ID	_bbp_topic_id
    Author ip	R_IP	_bbp_author_ip
    Post author	R_AUTHOR	post_author
    Topic slug	R_DATE	post_name
    Post Content	R_MESSAGE	post_content
    Topic id	TOPIC_ID	post_parent
    Topic date	R_DATE	post_date
    		
    User Section	FORUM_MEMBERS	user
    Store old user id	MEMBER_ID	_bbp_user_id
    	M_NAME	user_login
    	M_PASSWORD	_bbp_password
    	M_EMAIL	user_email
    	M_HOMEPAGE	user_url
    	M_AIM	aim
    	M_YAHOO	yim
    		
    

    [NOTE if you copy this and post in a word doc, you should be able to get a nice tabbed table]
    Note 1

    I used OLDR_DATE & OLDT_DATE from the step 1 as my clean slugs. A slug is what BBpress uses for a URL to reference a post. It needs to be clean – ie not have formatting, odd characters like spaces etc. in it. I did debate using the topic ID, but was unsure if this was unique for BBpress – it may well be fine. So I used the references above as I was pretty sure that with our forum being not that busy, that no two people would have posted in the same second. If you choose to use some other field, such as topic ID, you’ll need to change the field in the converter document – see below.

    This is then used against the example converter that BBpress supplies.

    Whilst initially looking daunting, this is fairly easy to change to get it to work.

    Step 3.1 Creating a Snitz.php

    Firstly go to your site. Using FTP go to web/wp-content/plugins/bbpress/includes/admin/converters and locate example.php. FTP this to your PC and using an editor (notepad ++ is good – download it from http://notepad-plus-plus.org/) you need to change the default “froms” to those above

    But first save it locally as “snitz.php”, and change the first couple of lines to read

    
    /**
     * Implementation of snitz converter.
     */
    class snitz extends BBP_Converter_Base
    

    If you don’t do this, the converter won’t recognise it.

    Then you need to work through each of the lines of code changing the “default” source database tables and names to the correct ones.

    So looking at you new snitz.php, you’ll see for instance the first conversion is :

    
    // Forum id. Stored in postmeta.
    $this->field_map[] = array(
    'from_tablename' => 'forum', 'from_fieldname' => 'forumid',
    'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id'
    

    So to get this to work for Snitz you need to change the source table from ‘forum’ to “FORUM_FORUM” and the from field needs changing from ‘forumd’ to’ _bbp_forum_id’

    Making the lines now read :

    
    // Forum id. Stored in postmeta.
    $this->field_map[] = array(
    'from_tablename' => 'FORUM_FORUM', 'from_fieldname' => 'FORUM_ID',
    'to_type' => 'forum', 'to_fieldname' => '_bbp_forum_id'
    

    Using the translation table above you work through each of the lines, doing the substitution.

    I commented out the tags section, as I couldn’t see that Snitz had tags. I also commented out the “
    Store old user salt” and “User password verify class” sections as passwords won’t come across – see later on this.

    CRITICALLY I also added the following as the example doesn’t had a bit that brings the actual topic content across !

    
    // Topic content.
    		// Note: We join the posts table because topics do not have content.
    		$this->field_map[] = array(
    			'from_tablename'  => 'FORUM_TOPICS',
    			'from_fieldname'  => 'T_MESSAGE',
    			'join_tablename'  => 'thread',
    			'join_type'       => 'INNER',
    			'join_expression' => 'USING (threadid) WHERE post.parentid = 0',
    			'to_type'         => 'topic',
    			'to_fieldname'    => 'post_content',
    			'callback_method' => 'callback_html'
    

    Once all that is done, save the file locally.

    Then using FTP upload it to the same directory that example came from
    Viz : web/wp-content/plugins/bbpress/includes/admin/converters
    Now you’re ready to run the conversion!

    You’ll need the following info
    Database server (localhost if your using you local Mysql database)
    Database name
    Database User
    Database password

    Then in Dashboard, go to tools>forums>import forums

    Select “snitz” from the converter list, and fill in the database info from above.

    Click to select users, presuming that you want to bring these across.

    Then click start, and sit back and watch. If you’ve got everything right, you’ll see a steady stream of lines such as “converting topics 1-100”

    If Fails :

    If it falls over, then you’ll need to work out which part of the snitz converter it doesn’t like (it’ll give you a line number). Usually you’ve got punctuations wrong, or called something by a wrong name. Remember snitz (in my case anyway) uses capitals, and bbpress needs lowercase, so ensure that’s all ok.

    If nothing comes through (it usually says “starting conversion…conversion complete”), then you have got the connection wrong, as it’s not finding the database and tables.

    If Success :

    Then you’ll need to repair the links (Dashboard>tools>forums>repair forums). Otherwise in my case the forum listings came through, but with no topics listed against them.

    Do as the tool suggests – I ran several at the same time, and wrote most of this document whilst waiting !

    Finally – users

    If you successfully imported your users, they’ll have accounts, but their passwords won’t work – Bbpress can’t bring these across.

    The easiest way is to tell them to click “lost password” and enter their email address and then they can reset their own.

    And that’s how it’s done !

    #132682
    palmdoc
    Participant

    Hmm strange. One minute there, another minute gone. Now I can’t see the forum listing again. I disabled all plugins but bbPress and Buddypress, used the default BP theme and I see only the group listing and not forum listing.
    I have put the site in Maintenance mode

    #132680
    Stephen Edgar
    Keymaster

    I did have a “forums” in trash, I deleted it but it’s still linking to /forum-2. Any idea how to “refresh it”?

    Try changing your permalinks, click save, change them back and save again and that should flush them.

    Ah I get the – being added, I was more concerned with the forums/forum/ part of the link, instead of just /forums/.

    That is the default bbPress structure, you can turn off the ‘forums prefix’ in settings and you would end up with /forum/general-discussion/

    #132624
    Stephen Edgar
    Keymaster

    Apologies… I should have clarified that in my last post…

    bbPress .po & .mo https://translate.wordpress.org/projects/bbpress/dev/nb/default
    WordPress .po & .mo https://translate.wordpress.org/projects/wp/dev/nb/default

    I am also using WordPress 3.6 Beta and bbPress 2.3 RC1

    #132623
    Grubbi
    Participant

    Ok, completely new to WP. Wanted a website with a forum…so thought this was my best bet.

    Have installed bbPress. Have created forums. My forums are shown on my link but not http://mywebsite.co.uk/forums, instead it’s http://mywebsite.co.uk/post_type=forum

    I did some digging around…apparently I’m to change my permalinks…but when I change them my forum disappears and I get an error –

    Not Found

    The requested URL /forums/forum/general-discussion/ was not found on this server.

    Not sure why it’s got forums/forum??

    Anyway…I’ve been trying in vain to add a forum “tab” on my home page, so that people can click the forum tab to take them to the forum home page.

    I tried adding a Menu…but it says that the theme only supports one menu. (I have Home) So I did a custom link, dragged it over to the home menu…but nothing changes on my home page.

    I’ve seen another saying to create a page and use a bbPress template in the drop down to link the page to the forum…except I don’t have any bbPress templates in the drop down, only “default template”, ÂŁront page template” and “full width page template, no side bar”.

    All I’m trying to do is add a forum tab to my home page…so it reads “Home…Forum” etc… Is this not doable?

    #132428
    Stephen Edgar
    Keymaster

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

    What version of vBulletin are you converting from?
    What part is it stuck on or is it just not starting?

    That is the key is to ensure you have the correct values for each of these:

    Select Platform – vBulletin
    Database Server IP or hostname
    Database Port Use default 3306 if unsure
    Database Name Name of the database with your old forum data
    Database User User for your database connection
    Database Password Password to access the database
    Table Prefix

    Have a look in your vBulletin config file which should be in your vb install /includes/config.php

Viewing 25 results - 3,851 through 3,875 (of 6,760 total)
Skip to toolbar