Search Results for 'code'
-
AuthorSearch Results
-
October 16, 2013 at 9:40 pm #138141
In reply to: Forum Participants cannot create new thread/topic!
Stephen Edgar
KeymasterYou may need to run the repair tool “Remap existing users to default forum roles”
https://codex.bbpress.org/repair-forums/Also check your bbPress settings for roles, ideally this should already be set with ‘Default Role = Participant’ and ‘Auto Role’ is checked
Default user role
Select the default role for bbPress forum members as assigned by the ‘Auto Role’ option below, the roles are Keymaster, Moderator, Participant (Default), Spectator, Visitor and Blocked. For full details of the permissions assigned by these roles please User Roles and Capabilities.Auto Role
Automatically assigns the default role to new, registered users upon visiting the site.October 16, 2013 at 9:31 pm #138138In reply to: Can't edit or add new forums
Stephen Edgar
KeymasterCan you try the repair tool “Remap existing users to default forum roles”
https://codex.bbpress.org/repair-forums/October 16, 2013 at 1:42 pm #138131In reply to: Remove "Reply To:" in freshness block for forum
Fredriks
ParticipantI have my loop-sinlge-forum.php in my child-theme and it looks like this:
<?php /** * Forums Loop - Single Forum * * @package bbPress * @subpackage Theme */ ?> <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>> <li class="bbp-forum-info"> <?php do_action( 'bbp_theme_before_forum_title' ); ?> <div class="bbp-forum-header"> <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><?php bbp_forum_title(); ?></a> <div class="bbp-forum-content"><?php the_content(); ?></div> </div> <?php do_action( 'bbp_theme_after_forum_title' ); ?> <?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?> <?php if (is_single()) { bbp_list_forums(); } else { st_bbp_list_forums( array ( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '<li class="bbp-forum">', 'link_after' => '</li>', 'count_before' => '<div class="topic-reply-counts">Ämnen: ', 'count_after' => '</div>', 'count_sep' => '<br />Inlägg: ', 'separator' => '<div style="clear:both;"></div>', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, 'show_freshness_link' => true, )); } ?> <?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?> <?php do_action( 'bbp_theme_before_forum_description' ); ?> <?php do_action( 'bbp_theme_after_forum_description' ); ?> <?php bbp_forum_row_actions(); ?> </li> <?php if (is_single()) { ?> <li class="bbp-forum-topic-count"> <?php _e('Topics: ','bbpress') ?><?php bbp_forum_topic_count(); ?><br /> <?php _e('Posts: ','bbpress') ?><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?> </li> <li class="bbp-forum-freshness"> <?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?> <?php st_last_poster_block ( get_the_ID() ) ?> <?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?> </li> <?php } ?> </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->This because I had to hard code for swedish language on line 41 and 43, just this is changed, nothing more with the code.
Thanks for taking your time!
October 15, 2013 at 7:32 pm #138120Topic: Shortcode issue
in forum Troubleshootingkrbvroc1
ParticipantI am trying to use a shortcode such as ‘bbp-forum-index’ on a page. (Trying to replace my existing mingle-forum shortcode). While the index does show up, there is no sidebar on the page. This tells me the shortcode is messing something up. (As if template not being closed properly). If I click on the breadcrumb the sidebar is back.
Any suggestion on what is causing this?
using 2.4.1
October 15, 2013 at 1:18 pm #138113In reply to: Forum homepage display is bonkers
Robin W
Moderatorok update to the previous
If you’re using a child theme, or one of your own, you can add this to your css
#bbpress-forums .bbp-forums-list li { display: list-item !important; font-size: 11px; }and then bbpress updates will not overwrite
October 15, 2013 at 1:07 pm #138112In reply to: Forum homepage display is bonkers
Robin W
ModeratorIf you want forums as a list, then you need to change the following
wp-content/plugins/bbpress/templates/default/css/bbpress.css
Line 120-122
#bbpress-forums .bbp-forums-list li { display: inline; font-size: 11px;change to
#bbpress-forums .bbp-forums-list li { display: list-item; font-size: 11px;This’ll then produce the vertical list
Now I expect to be told off for directly editing a plugin file, and if someone else knows how to get it to do the same with a themes functions.php or style.css, then I’d love to see how to do it.
You will need to make a note of this, as every bbpress plugin update will rub it out
October 15, 2013 at 3:31 am #138105In reply to: Problems with the language
Maartje_1992
ParticipantYou have to rename the documentname also, it has to be bbpress-nl_NL.mo
What language is set in your WordPress installation (your dashboard, is is in english or dutch?)If it is dutch it should work immidiatly, otherwise you have to make a small change in your wp-config file.
Change this line in wp congif:
define ('WPLANG', '');to:
define (‘WPLANG’, ‘nl_NL’);
October 14, 2013 at 4:43 pm #138101Topic: Merge error (too many topics?)
in forum InstallationNate
ParticipantWe have about 23k topics, so maybe that’s the issue. If it is, is there a fix?
This is what happens when I attempt to merge topics:
Merge with this topic: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/37/9672937/html/wp-includes/wp-db.php on line 1228October 14, 2013 at 4:40 pm #138100Nate
ParticipantWeird, receiving a similar error when trying to merge two topics:
Merge with this topic: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/37/9672937/html/wp-includes/wp-db.php on line 1228October 14, 2013 at 7:44 am #138090Topic: Multisite dynamic user roles bug
in forum Troubleshootingmaniu
ParticipantHello
It took me some time but i finally have figured out that dynamic roles that are getting assigned to users when “Auto Role” is disabled are being unset before bp_forum_enforce_blocked is triggered.
This results in 404 for users.add_action( 'template_redirect', 'bbp_set_current_user_default_role', 7 );managed to fix it for me but i am not sure what is un-setting dynamically assigned roles and if my fix does not have any down-site.Hope my input helps.
Ticket created(http://bbpress.trac.wordpress.org/ticket/2452#ticket) please delete if forum topic unnecessary.Thanks,
ManiuOctober 14, 2013 at 1:41 am #138088In reply to: PunBB Import to bbPress
Stephen Edgar
KeymasterThis what we have in the
converter.phpfile:if ( ! ini_get( 'safe_mode' ) ) { set_time_limit( 0 ); ini_set( 'memory_limit', '256M' ); ini_set( 'implicit_flush', '1' ); ignore_user_abort( true ); }Send that to them and ask in particular the first two, timeout & memory limit.
You can download something like this http://www.apachefriends.org/en/xampp.html
(There are heaps of these depending on Mac, PC or Linux https://en.wikipedia.org/wiki/Solution_stack)They pretty much work out of the box and you just install WordPress locally, export your punBB database to import locally etc.
October 14, 2013 at 1:30 am #138087In reply to: Forum shows also not related topics
Stephen Edgar
KeymasterYour other two topics there are ‘super sticky’ and they will show in every forum list, change those to ‘sticky’ and they will only be stuck in their own forum.
https://codex.bbpress.org/getting-started-with-bbpress/#adding-a-topic
You can add tags for organizing your Topics, and you can make the post Sticky or Super Sticky.
- Sticky posts will stick to top of the Forum which it is in.
- Super Sticky posts will stick to the top of all Forums.
October 14, 2013 at 1:23 am #138085In reply to: [Suggestion] bbPress Localization Teams Page
Stephen Edgar
KeymasterFor now I would suggest adding sub pages as others have already done:
https://codex.bbpress.org/bbpress-in-your-language/
https://codex.bbpress.org/bbpress-in-your-language/german-deutsch-de/
https://codex.bbpress.org/bbpress-in-your-language/persian-%d9%be%d8%a7%d8%b1%d8%b3%db%8c-fa_ir/Anyone can edit the codex so go for it….
October 14, 2013 at 12:59 am #138081In reply to: Assign posts to author by ip?
Stephen Edgar
KeymasterWith some luck after we work out what is going on in that other thread you won’t need to do this, that said it does need doing a simple
UPDATEquery is all that will be needed.This is a good query to have a look around and see the data matches based on what the IP was of the post and the users last known IP address, this no doubt is not going to be accuate if the users IP changed from their first post to their last post and maybe every post in between.
SELECT phpbb_posts.post_id, phpbb_posts.poster_ip, phpbb_posts.post_text, phpbb_users.user_id, phpbb_users.username, phpbb_users.user_ip FROM phpbb_posts LEFT JOIN phpbb_users ON phpbb_users.user_ip = phpbb_posts.poster_ipIt would be much better to do an update query using
phpbb_posts.poster_idif your database tables are not in a mess but that won’t be known until the other thread is resolved.October 14, 2013 at 12:18 am #138080In reply to: phpbb3 import incomplete and switches authors
Stephen Edgar
KeymasterThe best idea I have at the moment would be for you to post on http://pastebin.com or http://gist.github.com an excerpt of your phpBB table with a couple of entries either site of this mysterious ‘5 month mark’
Fire up phpMyAdmin and open your phpBB database:
Run the following query substituting
> 5&< 15values with appropriate values from a couple of rows that shows what data IS being imported and also what is NOT.SELECT * FROM phpbb_topics LEFT JOIN phpbb_posts ON phpbb_topics.topic_first_post_id = phpbb_posts.post_id WHERE phpbb_topics.topic_id > 5 AND phpbb_topics.topic_id < 15Now at the results of that query at the bottom of the page is
exportclick that and selectCustom - display all possible optionsselect the format asCSVand check thePut columns names in the first rowcheck box.Upload that file somewhere and post the link here (or send me a DM on Twitter) and I can have a look at exactly what is going on.
Edit: fixed mysql code formatting
October 14, 2013 at 12:00 am #138077In reply to: SMF Import to bbPress
Stephen Edgar
KeymasterCould the database port have any effect?
Yes, make sure that is also correct, the default is 3306 but your web host may use a different port.
You could also check what your SMF config is by checking the database values in eg.
/public_html/smf/Settings.phpeg.
########## Database Info ########## $db_type = 'mysql'; $db_server = 'localhost'; $db_name = 'smf_database_name'; $db_user = 'mysql_user_name'; $db_passwd = 'mysecretpassword'; $ssi_db_user = ''; $ssi_db_passwd = ''; $db_prefix = 'smf_'; $db_persist = 0; $db_error_send = 1;October 13, 2013 at 11:54 pm #138075In reply to: PunBB Import to bbPress
Stephen Edgar
KeymasterDid you try the
Stopwait a few seconds andStartthing again?It seems to work now when I set the number of rows very low (10) and give it plenty of delay (5 seconds).
Now the conversion process seems to have stopped when there’s about eight thousand Replies left to convert… I don’t see the spinning thing anymore indicating progress, but get the same time limit warning.
I suspect both these are related to your web host is limiting us trying to bump the memory and timeouts it might be a good idea to contact your web host to see if they can at least ‘temporarily’ bump these for you until you have got your forum imported.
Another option is to setup a local WAMP/MAMP/XAMMP install and try it locally on your PC.
Resetting the forums does not remove all the imported users, by the way. Is that a problem?
I’ll take a look at why this isn’t working as it should.
Should I select “Start a fresh conversion from the beginning” or “Purge all information from a previously attempted import” or both?
The ‘Start a fresh converesion’ will force the bbPress import to start from the beginning rather than resume from where it left off if it didn’t finish the import last time.
Also, as mentioned, posts/Replies are all assigned to me, instead of the users who made them.
Until the import is finished and the repair tools are run to ‘recount’ everything this can be the case until all the ‘metadata’ is sync’d up.
October 13, 2013 at 11:39 pm #138071In reply to: How to edit Forum Role
John James Jacoby
KeymasterWithin
wp-admintheir Forum Role is at the bottom of their profile (it’s the only place WordPress allows plugins to hook in and add anything.)Theme-side, within a user’s profile, there is a “User Role” section that allows any Keymaster to modify any user’s roles.
October 13, 2013 at 5:29 pm #138063Topic: Editor wp-admin blank page
in forum TroubleshootingTheopt
ParticipantWell some editor reported me this, then I’ve checked the error log and I’ve found this:
[13-Oct-2013 21:22:03] WordPress database error Table ‘diytech1_wor5.zhb_bp_groups_groupmeta’ doesn’t exist for query SELECT
group_idFROMzhb_bp_groups_groupmetaWHEREmeta_key= ‘forum_id’ ANDmeta_value= ‘2874’; made by require_once(‘wp-admin/admin.php’), do_action(‘load-tools_page_bbp-repair’), call_user_func_array, bbp_admin_repair_handler, call_user_func, bbp_admin_repair_group_forum_relationshipSince the last update on bbpress editors cant login on wp-admin, they see a blank page.
How to fix it?
October 13, 2013 at 12:51 pm #138059In reply to: phpbb3 import incomplete and switches authors
Halo Diehard
ParticipantI have followed WP-United author’s instructions for removal by disabling in WP, removing the code (by hand to be sure) from all phpBB3 files and deleting WP-United files from phpBB3, deleting the plugin in WP. I then purged the cache in phpBB3, resyncronized in phpBB3, imported to bbPress, and resynched there – – Still only get posts up to five months ago 🙁
Maybe it’s the Kiss Portal that’s causing the issue? Maybe it puts a difference in the database that the importer doesn’t recognize?
October 12, 2013 at 10:20 pm #138054In reply to: PunBB Import to bbPress
Stephen Edgar
KeymasterMy bad, it should be
message, copy and paste error on my part.I suggest you reset the forums codex.bbpress.org/reset-forums/ and give it another go, I would also suggest due to your web host limiting some of the changes we try to make is to drop some of the values eg. to 50 rows at a time rather than the default 100, set the time to 2 seconds delay.
If it appears that the importer stalls again, simply click ‘Stop’ wait a few seconds for your host to finish up any tasks its performing and click ‘Start’ and the import should resume from where it left off.
October 12, 2013 at 10:07 pm #138051In reply to: Kunena converter for bbPress 2.4
Stephen Edgar
KeymasterNo, it doesnt do anything, just spinning. Maybe it needs to be start from beginning next time without “Purge Previous Import” checked. Seems as it try now to do all from very scratch.
Sometimes the ‘Purge previous import’ gets a little confused 😉
You can Reset Forums which will remove all forums, topics, topic tags & replies from the WordPress database giving you a ‘clean’ bbPress to start again.
Dont want to be rude, but make plugin little bit verbose, put some info around, dont be leasy.
As the converter is constantly being improved in bbPress we will get more verbose/debugging information in there in future versions. Generating this type of information supporting the ever growing ~35 different forum conversion scripts is no easy task and we are trying not to be vague yet at the same time not be to verbose either.
October 12, 2013 at 9:54 pm #138050In reply to: SMF Import to bbPress
Stephen Edgar
Keymaster@ricov4 What version of SMF are you trying to import from?
Make sure you have the correct fields for ALL of the values:
- 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: (Possibly could be
smf_)
October 12, 2013 at 9:50 pm #138049In reply to: PunBB Import to bbPress
Stephen Edgar
KeymasterThe error is due to a few settings we try to make with your web host to help the importer along with some time limits and memory limits. If you are getting forums and topics imported fine we can probably (for now) ignore the error.
What version of PunBB are you trying to import from?
Can you open up phpMyAdmin and confirm you have a
_poststable, it may have a prefix egpunbb_postsand does it have the following fields in the table structure:id,poster,poster_id,poster_ip,poster_email,message,hide_smilies,posted,edited,edited_by&topic_idOctober 12, 2013 at 7:03 pm #138046In reply to: PunBB Import to bbPress
Nick Ottens
ParticipantThanks Stephen! I’ve been waiting for this.
Unfortunately, the converter seems to get stuck at the point where it’s supposed to start importing Replies. It brings over Forums, Topics and Users just fine, though.
It also repeatedly gives me the following Warning, nor sure if it’s connected..
Warning: set_time_limit(): Cannot set time limit due to system policy in /customers/e/e/2/[MY URL]/wp-content/plugins/bbpress/includes/admin/converter.php on line 306 -
AuthorSearch Results