Search Results for '+.+default+.+'
-
AuthorSearch Results
-
May 21, 2014 at 3:47 am #146695
In reply to: User profile management
Robin W
Moderatorok, could be lots of things, presume you’ve referred back to your developer?
and presume this is a new installation of bbpress, so has never worked?
I’d start by trying :
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
May 20, 2014 at 8:45 pm #146665In reply to: New Users Auto Subscribe to One Forum
Nathan
ParticipantSo, after DAYS of working on this I finally have a solution. I have not done a lot of testing, but this has worked so far.
Basically what is happening is that for forums (not replies) the logic is inverted. This means that users are subscribed to a forum unless they unsubscribe (ie. are added to the DB).
Just add this to your theme’s function.php and it should work.
I hope this helps someone, because it has taken a LOT of work!
add_filter( 'bbp_get_user_subscribe_link', 'invert_get_user_subscribe_link', 10, 4 ); //invert forum subscription add_filter( 'bbp_is_user_subscribed_to_forum', 'invert_is_user_subscribed_to_forum', 10, 4 ); //invert forum subscription add_filter( 'bbp_get_forum_subscribers', 'invert_get_forum_subscribers' ); //invert forum subscription add_filter( 'bbp_is_user_subscribed', 'invert_is_user_subscribed', 10, 4 ); //invert forum subscription function invert_is_user_subscribed($retval, $user_id, $object_id, $subscribed_ids) { if (get_post_type( $object_id ) == bbp_get_forum_post_type()) return !$retval; else return $retval; } function strContains($needle, $haystack) { if (strpos($haystack, $needle) !== false) { return true; } else { return false; } } function invert_get_user_subscribe_link ($html, $r, $user_id, $topic_id) { if (strContains( "bbp_unsubscribe", $html )) { $html = str_replace("bbp_unsubscribe", "bbp_subscribe", $html); } else { $html = str_replace("bbp_subscribe", "bbp_unsubscribe", $html); } return $html; } function invert_get_forum_subscribers( $users ) { $args = array('fields' => 'id'); $all_users = get_users($args); $send_to_users = array_diff($all_users, $users); return $send_to_users; } function invert_is_user_subscribed_to_forum( $retval, $user_id, $forum_id, $subscribed_ids ) { return !$retval; }I also include make users “subscribed” to anything they write by default. All they have to do is uncheck the box. The following code is also added to function.php.
add_action('bbp_theme_after_topic_form_subscriptions', 'subscribed_by_default'); //default subscribe add_action('bbp_theme_after_reply_form_subscription', 'subscribed_by_default'); //default subscribe function subscribed_by_default() echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>'; }May 20, 2014 at 6:41 pm #146662Topic: Include sub-forum topics in parent forum loop
in forum Themesdryan1144
ParticipantOut of the box, bbpress shows topics from a particular forum when you are on that forum’s archive page. Makes sense. If that forum has a sub-forum, it will link to those sub-forums, but it won’t show the actual topics from that sub-forum.
I’m trying to modify the default bbpress loop on a forum page (loop-topics.php) to include the sub-forum topics.
Here’s an explanation:
Forum A
Sub-forum A1
Sub-forum A2
Forum B
Sub-forum B1
Sub-forum B2
So when viewing Forum A’s archive page, I’d like to show topics from Forum A, sub-forum A1 and sub-forum A2.The code needs to be dynamic in order to work with whatever parent forum archive a user is on.
You can pass wp_query args into bb_has_topics(), but I can only only come up with code that shows topics from one forum – not multiple forums.
To better explain what I’m working with, here’s an example of a loop that grabs topics from the parent forum:
<?php $parents = get_post_ancestors( $post->ID ); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; $parent = get_page( $id ); ?> <?php $bbp_loop_args = array('post_parent' => $parent->ID, 'post_type' => 'topic'); ?> <?php if ( bbp_has_topics($bbp_loop_args) ) : ?> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php bbp_get_template_part( 'loop', 'single-topic' ); ?> <?php endwhile; ?> <?php endif;?>Any ideas on how this can be achieved?
May 19, 2014 at 12:45 pm #146591Topic: Assign default forum role to different site roles?
in forum Troubleshootingoyegigi
ParticipantSo I am wondering how I can modify the default forum role based on the user site role? So let’s say under settings > Forums I have set the default role as Participant. This is great since most of my users will be contributors and I want them to be participants.
However, I will have editors as well. When these users are created I want their forum role to be automatically set to Moderator rather than Participant. Is there a way I can change the default forum role based on that users’ site role?
May 19, 2014 at 12:40 pm #146590Robin W
Moderator‘I have the theme setup running on two domains, the one i use for testing, the funny thing is when posting on that site, the first post of the thread is shown.’
This would tend to suggest that something is different or not set the same. Are both on remote servers, or is one on a local PC running wamp or mamp?
Not showing a topic is a common symptom, but with many different causes, so there is no one solution.
There are a number of things you can try.
Resetting permalinks – sometimes fixes – in your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.
Repair Forums – Dashboard>tools>forums>repair forum and run one at a time.
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
May 19, 2014 at 10:22 am #146585In reply to: WP Symposium converter for bbPress
lagrou
ParticipantFirst, not sure what’s the best way to proceed with updates at GitHub. Could you create a pull request, shall I fork your own repo or create a new branch, or simply update my own master ?
if I understand correctly is that I could choose the ‘Sun Dreesses’ forum to be the default forum selected when clicking ‘New Toipic’ from the WPS forums hopme page it will default to showing the ‘Sun Dresses’ forum as the destination for my topic unless I select another forum?
Yes, the form will default to that category in its dropdown list of categories. It’s of little use, and as you stress, we can ignore this. I was only clarifying forum vs. categories in WPS, and why we can drop callback_forum_type() in your update of the converter / importer.
I haven’t tried the WPS groups but I will create one and see what we can (or cannot) do with them.
I considered that the content could at least be imported, then the admin would do whatever he wants to with that content. But maybe the groups ownership and membership will be impossible to mimick at bbPress level solely, so it’s better to avoid importing rather than making public content that was private to begin with…?
I’m adding a Users section to your own version of the converter module (based on other converters available). If we want to import user-related settings, like forums/topics subscriptions and favorites, is this possible ? WPS uses usermeta, and I would assume bbPress does so…?
Your last comment about attachements and avatars is well noted, I’ll check what could be done outside of bbPress.
May 18, 2014 at 6:48 am #146508In reply to: Still no visual editor?
yeahman45
Participantis there a reason why visual editor is disabled by default? ( not stable? ).
Is there a quote plugin that is compatible with the visual editor? the one with GD bbpress works only with the non-visual editor
May 18, 2014 at 3:48 am #146500In reply to: WYSIWYG editor with image upload for "Normal Users"
Bard
ParticipantHi Stephen,
Thank you for the reply, due to the GD press attachment uploads files after clicking on submit, it will never work like WYSIWYG editor, and as a support plugin they will follow bbpress rules.I guess I will need another plugin which allows user box by account id and stocks personal images. This may work with the default TinyMCE by inserting uploaded images.
May 18, 2014 at 3:31 am #146499In reply to: User registration on multisite
hamsterdj
ParticipantI’m having the same problem here. When user enters nickname and email address to register, they get redirected to the “default_site_domain/wp-signup.php“, where they have to re-enter everything. It’s very confusing for users wanting to participate on forums to say the least.
This situation also creates a problem for when a site with forum uses different language than the default site, as mentioned here.
Can one of the bbPress developers please give us some pointers, or at least tell us that this is not a common problem and we’ll have to figure out why this is happening on our own? We love bbPress and we’re hoping now to get some love back. 🙂
@jeffacubed Have you made any progress with this matter? I’m still researching…Oh, and I’m running WordPress 3.9 Multisite, bbPress 2.5.3.
May 17, 2014 at 4:56 pm #146468In reply to: Can't change forum's index meta title
Robin W
Moderatorok, the answer is somewhere in this function
function bbp_title( $title = '', $sep = '»', $seplocation = '' ) { // Title array $new_title = array(); /** Archives **************************************************************/ // Forum Archive if ( bbp_is_forum_archive() ) { $new_title['text'] = bbp_get_forum_archive_title(); // Topic Archive } elseif ( bbp_is_topic_archive() ) { $new_title['text'] = bbp_get_topic_archive_title(); /** Edit ******************************************************************/ // Forum edit page } elseif ( bbp_is_forum_edit() ) { $new_title['text'] = bbp_get_forum_title(); $new_title['format'] = esc_attr__( 'Forum Edit: %s', 'bbpress' ); // Topic edit page } elseif ( bbp_is_topic_edit() ) { $new_title['text'] = bbp_get_topic_title(); $new_title['format'] = esc_attr__( 'Topic Edit: %s', 'bbpress' ); // Reply edit page } elseif ( bbp_is_reply_edit() ) { $new_title['text'] = bbp_get_reply_title(); $new_title['format'] = esc_attr__( 'Reply Edit: %s', 'bbpress' ); // Topic tag edit page } elseif ( bbp_is_topic_tag_edit() ) { $new_title['text'] = bbp_get_topic_tag_name(); $new_title['format'] = esc_attr__( 'Topic Tag Edit: %s', 'bbpress' ); /** Singles ***************************************************************/ // Forum page } elseif ( bbp_is_single_forum() ) { $new_title['text'] = bbp_get_forum_title(); $new_title['format'] = esc_attr__( 'Forum: %s', 'bbpress' ); // Topic page } elseif ( bbp_is_single_topic() ) { $new_title['text'] = bbp_get_topic_title(); $new_title['format'] = esc_attr__( 'Topic: %s', 'bbpress' ); // Replies } elseif ( bbp_is_single_reply() ) { $new_title['text'] = bbp_get_reply_title(); // Topic tag page } elseif ( bbp_is_topic_tag() || get_query_var( 'bbp_topic_tag' ) ) { $new_title['text'] = bbp_get_topic_tag_name(); $new_title['format'] = esc_attr__( 'Topic Tag: %s', 'bbpress' ); /** Users *****************************************************************/ // Profile page } elseif ( bbp_is_single_user() ) { // User is viewing their own profile if ( bbp_is_user_home() ) { $new_title['text'] = esc_attr_x( 'Your', 'User viewing his/her own profile', 'bbpress' ); // User is viewing someone else's profile (so use their display name) } else { $new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name ); } // User topics created if ( bbp_is_single_user_topics() ) { $new_title['format'] = esc_attr__( "%s Topics", 'bbpress' ); // User rueplies created } elseif ( bbp_is_single_user_replies() ) { $new_title['format'] = esc_attr__( "%s Replies", 'bbpress' ); // User favorites } elseif ( bbp_is_favorites() ) { $new_title['format'] = esc_attr__( "%s Favorites", 'bbpress' ); // User subscriptions } elseif ( bbp_is_subscriptions() ) { $new_title['format'] = esc_attr__( "%s Subscriptions", 'bbpress' ); // User "home" } else { $new_title['format'] = esc_attr__( "%s Profile", 'bbpress' ); } // Profile edit page } elseif ( bbp_is_single_user_edit() ) { // Current user if ( bbp_is_user_home_edit() ) { $new_title['text'] = esc_attr__( 'Edit Your Profile', 'bbpress' ); // Other user } else { $new_title['text'] = get_userdata( bbp_get_user_id() )->display_name; $new_title['format'] = esc_attr__( "Edit %s's Profile", 'bbpress' ); } /** Views *****************************************************************/ // Views } elseif ( bbp_is_single_view() ) { $new_title['text'] = bbp_get_view_title(); $new_title['format'] = esc_attr__( 'View: %s', 'bbpress' ); /** Search ****************************************************************/ // Search } elseif ( bbp_is_search() ) { $new_title['text'] = bbp_get_search_title(); } // This filter is deprecated. Use 'bbp_before_title_parse_args' instead. $new_title = apply_filters( 'bbp_raw_title_array', $new_title ); // Set title array defaults $new_title = bbp_parse_args( $new_title, array( 'text' => $title, 'format' => '%s' ), 'title' ); // Get the formatted raw title $new_title = sprintf( $new_title['format'], $new_title['text'] ); // Filter the raw title $new_title = apply_filters( 'bbp_raw_title', $new_title, $sep, $seplocation ); // Compare new title with original title if ( $new_title === $title ) return $title; // Temporary separator, for accurate flipping, if necessary $t_sep = '%WP_TITILE_SEP%'; $prefix = ''; if ( !empty( $new_title ) ) $prefix = " $sep "; // sep on right, so reverse the order if ( 'right' === $seplocation ) { $new_title_array = array_reverse( explode( $t_sep, $new_title ) ); $new_title = implode( " $sep ", $new_title_array ) . $prefix; // sep on left, do not reverse } else { $new_title_array = explode( $t_sep, $new_title ); $new_title = $prefix . implode( " $sep ", $new_title_array ); } // Filter and return return apply_filters( 'bbp_title', $new_title, $sep, $seplocation ); }a filter such as
function amend_title () { if ( bbp_is_single_forum() ) { $new_title['text'] = 'YA book forum' ; $new_title['format'] = esc_attr__( 'YA book Forum', 'bbpress' ); } return $new_title; } add_filter('bbp_before_title_parse_args', 'amend_title' );should sort it but doesn’t, and I’m too tired to work out why 🙂
Over to you !
May 17, 2014 at 1:50 pm #146460In reply to: Error show in admin dashboard
Robin W
Moderatorhmm, I’d check for a conflict first
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
Then I’d re-download the software in case this was an issue
come back if that doesn’t work
May 17, 2014 at 1:00 pm #146448In reply to: Documented import from snitz access database
gianjj
ParticipantThis script launched in QUERY ANALYZER of MsSQL server will generate a list of SQL to import in MySQL ; remember to select “Result in a File”
Alla this script will not take effect on your database, but will help you to pre-generate all SQL to move your data….
TEST IT BEFORE MOVE ALL DATA YOU ARE THE ONLY ONE RESPONSABLE OF YOURS WORK 😛-------------------------------- --- Will Generate a List of INSERT INTO query --- Formatted for MySQL table: wp_users --- JUST ONE MEMEBR -------------------------------- Select TOP 1 'INSERT INTO ''wp_users''(''ID'', ''user_login'', ''user_pass'', ''user_nickname'', ''user_email'', ''user_url'', ''user_registred'', ''user_activation_key'', ''user_status'', ''display_name'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', '''+M_NAME+''', ''REMEMBER_TO_REST_ALL_PASSWORD'', '''+M_NAME+''','''+M_EMAIL+''' , '''+M_HOMEPAGE+''', '''+M_NAME+''', '''+ substring(M_DATE, 1,4)+ '-' + substring(M_DATE, 5,2)+ '-'+ substring(M_DATE, 7,2)+ ' ' + substring(M_DATE, 9,2)+ ':'+ substring(M_DATE, 11,2)+ ':' + substring(M_DATE, 13,2) +''','''',''0'','''+M_NAME+''' );' from dbo.FORUM_MEMBERS order by MEMBER_ID asc -------------------------------- --- Will Generate a List of INSERT INTO query --- Formatted for MySQL table: wp_usermeta --- JUST ONE MEMEBR -------------------------------- Select TOP 1 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''first_name'', '''+M_FIRSTNAME+''');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''last_name'', '''+M_LASTNAME+''');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''nickname'','''+M_NAME+''');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''description'', '''');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''rich_editing'', ''true'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''comment_shortcuts'', ''false'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''admin_color'', ''fresh'' );', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''use_ssl'', ''0'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''show_admin_bar_front'', ''true'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''wp_capabilities'', ''a:1:{s:10:"subscriber";b:1;}'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''wp_user_level'', ''0'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''dismissed_wp_pointers'', ''wp330_toolbar,wp330_saving_widgets,wp340_choose_image_from_library,wp340_customize_current_theme_link,wp350_media,wp360_revisions,wp360_locks'');', 'INSERT INTO ''wp_usermeta''(''user_id'', ''meta_key'', ''meta_value'') VALUES ('+CAST(MEMBER_ID as nvarchar(10))+', ''default_password_nag'', ''1'');' from dbo.FORUM_MEMBERS order by MEMBER_ID ascMay 16, 2014 at 9:30 am #146410boblebad
ParticipantHi
I’m at the part of my coming website, where i need to fit bbPress layout to my needs.
It’s a dating/friending site where i use Sweet Date theme, which uses Buddypress for members and bbPress for forums.
As per default bbPress posts status’s at the top and bottom of every forum. I have some forums that only serves as main forum for sub-forums, and therefore in these i don’t want/need the notifications, that there no forums/topics in this forum.
How is this done the right way, and if, what files do i need to copy and edit to make it work ?
It would also be nice if members could comment on a post, but not create new topics.
I tried using the page.php template, but it uses different styling, so the text is another font and weight, i need the bbPress layout 🙂
EDIT: Forgot that i need to be able to have right sidebar on the pages as well.
All the best
CarstenMay 15, 2014 at 7:45 pm #146389In reply to: WP Symposium converter for bbPress
Stephen Edgar
KeymasterSorry my dump wasn’t successful in helping you out here…
Your dump was fine, it was just for quicker for me to install the plugin and have the examples included, if I wasn’t so tired the other night I would have done that in the first place and not asked. 😉
Slug vs. stub, I missed that one, I tried your version on my test install and it works !! It converted forum / topics / replies. Thanks! Couple of issues, questions, comments…
Awesome
In WPS terminology, there’s one forum made of categories. They can be nested. Along with subforums, they may contain topics with replies. One of these cats may be made the “default category” which users will be prompted with when posting in the forum frontpage, that’s ‘symposium_cats.defaultcat’. If not set, the first of the list will be the default. I’m not sure what happens if two or more cats are made default…
Cool, for example per this picture is what you are saying if I understand correctly is that I could choose the ‘Sun Dreesses’ forum to be the default forum selected when clicking ‘New Toipic’ from the WPS forums hopme page it will default to showing the ‘Sun Dresses’ forum as the destination for my topic unless I select another forum?
If that is the case then we can ignore this as we do not have that functionality in bbPress.
‘Allow new topics’ will basically close the category to new topics. Likewise, in a topic there’s a checkbox to allow new replies or close the topic.
I already implemented this for topics and partially for forums, I will fix this for forums shortly.
‘remote_addr’ is for monitoring spammers, I don’t think it deserves much interest in importing forum content as it’s mainly a short-time asset.
We do use IP addresses for Akismet and spam protection, we have some upcoming updates for this that will also take into account the users existing history on the site and from emory this can include the users IP address so I will take a look and see what can be done to add support for IPv6 as currently we only support IPv4.
I’ll go through your callback functions tomorrow, but a quick comment about values in WPS: they are either ‘on’ or anything else, possibly not set, so it’s better to revert the switch and test against the “case ‘on’” and any other “default” ?
That is what I have done for closed topics and will do the same for closed forums.
The group forum post from my demo install was converted. In the list of topics it is indicated as ‘no forum’ which is true (as per my previous post). We should either create a forum (named like the group itself for instance) or discard group forums topics altogether (WHERE symposium_topics.topic_group != 0).
phpBB has a similar sceanrio for a special sticky post, it is not assigned a forum. bbPress supports topics not having a forum so this technically doesn’t break things but we don’t have a ‘view’ that can show us topic s that are not in a forum.
I haven’t tried the WPS groups but I will create one and see what we can (or cannot) do with them.
About importing users, you raise an interesting point. I’d like to understand if this tool is a converter or an importer. Being located in a folder called /converter/ I had assumed it should work within the same WordPress install and convert it from one plugin to another, but you seem to move it towards the import of data accross platforms. Incidentally, I have been wondering why I need to fill the ‘Database Settings’ with db name / user / password / prefix, while I’m converting an existing forum within the same base. I’m happy with both, although I would tend to consider that most WP-to-WP imports will be performed within the same site…?
I would say it is more importer than converter though interchanging those terms is not much of a stretch as we do not only import stuff we also convert stuff then import :/
In total aside from WPS the only other importers that are also plugins ontop of WordPress are Mingle and SimplePress, the other 23 in most sceanarios would be a seperate database from the WordPress database. To extend the same issue I stated previously on how to handle users the same case applies, you are not explicitly limited to adding the bbPress plugin to your existing WP/WPS install and importing your data, you can also create a fresh WordPress install with a fresh database and import your data into that. So in theory we could ‘hide’ the database settings IF we knew your intented scenario before the fact. It would be nice in a future iteration to make the importer a ‘step by step wizard’ and we could then do such things and many more things to make the process a little less daunting…
The other topics I’d like to bring at some point in our discussion are the attachments and the avatars. I’m not sure yet how bbPress handles attachments, for WPS they are physically stored in a location set from the “params” tab, and displayed either online or as links (depending on a setting). As far as avatars, once WPS is deactivated they are all gone, is anything possible or is this too dependent upon the plugin the admin may install for avatars ?
There is a post in the Kunena importer thread where @cybnet has written an attachment importer with details on how to change it for your own Kunena forum. The source is here and no doubt could be adapted for WPS.
Edit: I should have added that bbPress does not include support for attachments, there is one or two plugins that do add support for attachments so I would look to using one of those and use that plugins architecture to facilitate how the attachments are handled. We’d like to support attachments in bbPress ‘one day’ though we have some bigger implementation details to work out before we have a crack at this.
Avatars are a bit trickier as bbPress nor WordPress do not support custom avatars for user profiles out of the box. There are many plugins for this so at the moment this is not something we can support. We can’t make avatar import support the hundres of avatar plugins available.
May 15, 2014 at 4:57 pm #146384In reply to: WP Symposium converter for bbPress
lagrou
ParticipantSorry my dump wasn’t successful in helping you out here…
Slug vs. stub, I missed that one, I tried your version on my test install and it works !! It converted forum / topics / replies. Thanks! Couple of issues, questions, comments…
In WPS terminology, there’s one forum made of categories. They can be nested. Along with subforums, they may contain topics with replies. One of these cats may be made the “default category” which users will be prompted with when posting in the forum frontpage, that’s ‘symposium_cats.defaultcat’. If not set, the first of the list will be the default. I’m not sure what happens if two or more cats are made default…
‘Allow new topics’ will basically close the category to new topics. Likewise, in a topic there’s a checkbox to allow new replies or close the topic.
‘remote_addr’ is for monitoring spammers, I don’t think it deserves much interest in importing forum content as it’s mainly a short-time asset.
I’ll go through your callback functions tomorrow, but a quick comment about values in WPS: they are either ‘on’ or anything else, possibly not set, so it’s better to revert the switch and test against the “case ‘on'” and any other “default” ?
The group forum post from my demo install was converted. In the list of topics it is indicated as ‘no forum’ which is true (as per my previous post). We should either create a forum (named like the group itself for instance) or discard group forums topics altogether (WHERE symposium_topics.topic_group != 0).
About importing users, you raise an interesting point. I’d like to understand if this tool is a converter or an importer. Being located in a folder called /converter/ I had assumed it should work within the same WordPress install and convert it from one plugin to another, but you seem to move it towards the import of data accross platforms. Incidentally, I have been wondering why I need to fill the ‘Database Settings’ with db name / user / password / prefix, while I’m converting an existing forum within the same base. I’m happy with both, although I would tend to consider that most WP-to-WP imports will be performed within the same site…?
The other topics I’d like to bring at some point in our discussion are the attachments and the avatars. I’m not sure yet how bbPress handles attachments, for WPS they are physically stored in a location set from the “params” tab, and displayed either online or as links (depending on a setting). As far as avatars, once WPS is deactivated they are all gone, is anything possible or is this too dependent upon the plugin the admin may install for avatars ?
May 15, 2014 at 5:24 am #146363In reply to: No search results in insert link box
Robin W
ModeratorThe approach should be to get to a ‘clean’ site – ie one that works, and then add back theme, and then plugins until you find which is conflicting with bbPress.
Some plugins and themes delete database stuff when they are deleted, but many/most just leave it behind, so deactivating should do it.
If you have a local dev, then I’d deactivate ALL plugins, and change to a default theme.
Then test if this works. if it does then you have a good start point.
Then add bbPress and see if this produces an issue.
a) If it does, then come back with what theme, and confirm versions of bbpress, wordpress and theme and exactly what you are doing to test – ie user set to… go into… select…. and I’ll try to replicate.
or
b) If your base version above works, then add theme next. Don’t worry about the extend plugin, as you’re seeing if the issue is with a post, not bbPress !
Then add extend and re-test
Then each plugin and retest
May 15, 2014 at 3:37 am #146355In reply to: No search results in insert link box
Robin W
Moderator‘I might be missing something, but if deactivating the bbPress plugin solves the problem, the bbPress plugin is probably causing it.’
Depends how you define ’cause’
bbPress is tested against the default themes (twentyten, twentyeleven etc.) and latest versions of wordpress, and should be fully functional against that.
Since bbPress is just a plugin, it ranks equally alongside all other plugins and all non core themes. All of these have the capability to conflict with each other as theme and plugin authors use tweaks and add-ons to WordPress. The ability for two authors of plugins/themes to try to change an element is actually quite large, and changes can have unexpected results.
So if two authors both make a change and one overwrites the other, both can argue it is the other’s fault.
So I cannot get bbPress with a default theme to have your issue for authors or above.
If without any other plugins, and using a default theme, you get this issue, then please come back with what levels of access and I’ll look further.
May 14, 2014 at 11:39 am #146327In reply to: Strange forum formatting
Robin W
ModeratorMay 14, 2014 at 4:43 am #146312In reply to: WP Symposium converter for bbPress
lagrou
ParticipantI’ve added a WPS install to one of my test sites. By default WPS has 3 forum categories, and one topic with two replies. I’ve added two topics, to populate all categories, and made one category child of another. So it should look like what you expect.
I’ve also created a group. In WPS, groups can have a forum, with no category hierarchy, so they are not listed in the table symposium_cats. I wasn’t using groups myself, but my proposal is, if we can, to make the converter gather the content as a subforum in bbPress, then the admin may decide to delete or restrict its content ? So, I’ve also created a group on that test install, with a topic and a reply.
As I’m not sure what you call a MySQL export I’ve dumped it using a page template where I perform a succession of queries, then
var_dump( $wpdb->last_query, $result );and copy/pasted the page content as a text file, added to my repository above. I hope it’ll be fine.May 13, 2014 at 1:50 pm #146278In reply to: No search results in insert link box
Robin W
ModeratorSuspect it is theme or plugin related!
Normally I’d just post the standard text viz
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
but with 29 plugins that could take you a while ! and it could even be a combination.
Think I’d start with a quick theme change to eliminate that and then I suppose it depends on who needs access as non admin but able to add links as to whether you plough through and work out where it is failing.
May 13, 2014 at 3:48 am #146249In reply to: Edit leading to 404 page
ozziecoin
ParticipantYour sneaky suspicion is correct. I reverted to default permalinks and the forum functions as it should.
Thanks for your help.
May 12, 2014 at 2:39 pm #146232In reply to: bbpress should offer to login in forum
Robin W
ModeratorIf you want a quick solution to this
create a directory within your theme called bbpress
ie wp-content/your-theme-name/bbpress
And into this folder copy the following file
bbpress/templates/default/bbpress/form-reply.php
Then alter this file to have a new line 175 as follows
<p> <?php echo do_shortcode ('[bbp-login]') ; ?>so that
<div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply"> <div class="bbp-template-notice"> <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p> </div> </div>becomes
<div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply"> <div class="bbp-template-notice"> <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p> <p> <?php echo do_shortcode ('[bbp-login]') ; ?> </div> </div>Save this file, and bbpress will use this and a login panel will be displayed.
May 12, 2014 at 9:43 am #146219Topic: Wierd CSS – please advise
in forum Troubleshootingsicky_brazz
ParticipantHi, I am using the following code to hide my menu/navbar and search form from my site.
‘/* Remove nav bar and search form */
.page #nav-bar {
display: none;
}.page #s {
display: none;
}’It seems to work wonders on all pages except BBPress pages.
Now when I set my permalinks to “Default” the navbar and search form are removed on bbpress pages, but when I have them to anything else, the navbar shows up again (but only on bbpress pages).
Does anyone have an explanation for this?
Or can someone point me in the direction of how to remove it without having to have “Default” permalinks set (which I can’t due to buddypress)May 12, 2014 at 4:10 am #146203In reply to: Problems after Importing Vbulliten
Stephen Edgar
KeymasterExcept for the default BBCode
[b],[i],[u],[img],[url]etc the vBulletin importer only has[quote],[mention],[youtube]BBCodes added at this time. You would need to manually edit your topics and replies for any SoundCloud embeds.To test this any further I will need your vBulletin version you importing from so I can take a closer look, firstly to see if I have a copy of a vBulletin ‘version xyz’ to test against and then to see if I can see any reason why it would not be importing everything correctly.
May 12, 2014 at 3:58 am #146200In reply to: bbpress editor
Stephen Edgar
KeymasterI would suggest you upgrade to WordPress 3.9.1.
Ultimate TinyMCE is NOT compatible with WordPress 3.9.x and is being replaced by WPEdit (it is worth reading the info via that link and the alternatives it offers)
I would suggest switching to Twenty Thirteen or Twenty Fourteen themes and disable all your plugins except bbPress to narrow things down.
Once you see bbPress working with the code in your original post to enable bbPress Visual Editor then go from there… Enable your theme, does it still work? Next try one of the TinyMCE plugins with the default options, does it still work? Now update any settings in that plugin, does it still work? Now enable your other plugins one by one, does it still work?
-
AuthorSearch Results