Stephen Edgar (@netweb)

Forum Replies Created

Viewing 25 replies - 1,826 through 1,850 (of 3,352 total)
  • @netweb

    Keymaster

    I just had a closer look and you are correct, ‘Press Permit’ only supports bbPress dynamic roles with a paid upgrade.

    @netweb

    Keymaster

    Just a note, I haven’t tried either plugin so I can’t recommend either of them, nor was my post meant as a recommendation. I was only helping to troubleshoot your problem and point out that the first plugin doesn’t support bbPress dynamic roles and the second one says they do in the ‘Free Version’.

    @netweb

    Keymaster

    @netweb

    Keymaster

    is it possible that the database tweaks can be done independently from upgrading the kunena installation? or can I tweak the importer to work with the jos_fb_ version – I don’t have the skills to do that but I suspect it’s a major job and probably unfeasible.

    You should in theory be able to do the import without modifying your database, and this reply probably should have been before the previous reply. 😉

    So try opening up phpMyAdmin and running the queries I posted before your previous reply.

    If all else fails then you can try upgrading Kunena and converting the database engine.

    @netweb

    Keymaster

    In theory this is all you need to do, but please make sure you have a few backups of your database, after all these years you don’t want to lose everything now 😉

    alter table the_table_name_you_want_to_convert engine=innodb;

    That’s the theory anyway, to enable you to use the ‘alter’ command you need to uncheck the following setting:

    phpMyAdmin -> Settings -> Main Panel -> Table Structure -> Hide table structure actions

    Then open a table, and click ‘Operations’ and in the ‘Table options’ section you will now see ‘Storage Engine’ where you can change this from MyISAM to InnoDB once you click ‘Go’ you will a success or error message.

    @netweb

    Keymaster

    It looks like you just paste that entire code into your themes functions.php file and change the values to the ones you want 🙂

    @netweb

    Keymaster

    I’m not familiar with exactly what you need but bbPress JavaScript files typically live here:

    /wp-content/plugins/bbpress/templates/default/js for the following 5 files:
    editor.js, forum.js, topic.js, reply.js & user.js

    @netweb

    Keymaster

    I’ll see if I follow you now, you mean how to I make the topic a ‘sticky topic’?

    If so click ‘Stick’ to sticky the topic in the current forum or ‘to front’ to stick it to the top of all your forums.

    In reply to: Remove default css

    @netweb

    Keymaster

    The following should work, a few CSS & JavaScript changes came with bbPress 2.5 😉

    add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
    function deregister_bbpress_styles() {
     wp_deregister_style( 'bbp-default' );
    }
    In reply to: Limit search in scope

    @netweb

    Keymaster

    This is a start…

    https://gist.github.com/ntwb/8037110

    add_filter ( 'bbp_before_has_search_results_parse_args', ntwb_bbpress_custom_search_results);
     
    function ntwb_bbpress_custom_search_results() {
     
    	$default_post_type = array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() );
     
    	$args['post_type'] = $default_post_type;
    	$args['orderby'] = 'date';
    	$args['ignore_sticky_posts'] = 'false';
    	$args['order'] = 'DESC';
     
    	return $args;
    }

    Just need to work out how to parse the other $args :/
    https://bbpress.trac.wordpress.org/browser/trunk/includes/search/functions.php
    https://bbpress.trac.wordpress.org/browser/trunk/includes/search/template.php

    @netweb

    Keymaster

    Just enable ‘Anonymous Posting’ in the bbPress forums settings.

    WordPress Dashboard -> Settings -> bbPress

    @netweb

    Keymaster

    I think you will find the docs for that reference the_content in a WordPress context.

    For bbPress things are similar but the following best explains it though in this case it was related to Jetpack, the methodology is still the same though.

    https://bbpress.org/forums/topic/social-media-share-button-missing/#post-125857

    This won’t work out of the box, and is by design. Jetpack hooks sharing options to the end of the ‘the_content’ filter. bbPress doesn’t use this filter, because blog content doesn’t have the same rules as forum content does; they work differently. To make it work, Jetpack’s sharing options would need to hook into bbp_get_topic_content and bbp_get_reply_content instead.

    Someone could write a piggyback function to do this, but it may be more difficult than this first step once you’ve gotten this far. Replies don’t use the same “premalink” logic as topics, forums, pages, and posts do, since they are technically children of topics. There could be other quirks, too.

    @netweb

    Keymaster

    That is indeed a bug and we have it fixed for bbPress 2.6 😉

    The issue is to do with the included bbPress ‘Green’ admin theme, my suggestion would be for now to switch to a different color admin theme until bbPress 2.6 is released.

    @netweb

    Keymaster

    You stick can’t stick topics like this in bbPress at this stage

    A topic is either ‘sticky’ in a single forum or ‘super sticky’ in every forum.

    @netweb

    Keymaster

    The best place to start would be the WordPress Plugin Developer Center
    https://wordpress.org/plugins/about/

    And checkout the bbPress Codex https://codex.bbpress.org/context/developer/

    @netweb

    Keymaster

    I didn’t make it but I expect it was a decision made not an option for the broadest compatibility.

    Decisions, not Options https://wordpress.org/about/philosophy/
    When making decisions these are the users we consider first. A great example of this consideration is software options. Every time you give a user an option, you are asking them to make a decision. When a user doesn’t care or understand the option this ultimately leads to frustration. As developers we sometimes feel that providing options for everything is a good thing, you can never have too many choices, right? Ultimately these choices end up being technical ones, choices that the average end user has no interest in. It’s our duty as developers to make smart design decisions and avoid putting the weight of technical choices on our end users.

    Though as you point out if you want HTML emails you can enable this pretty easily.

    @netweb

    Keymaster

    Yes, that was what I inferred by ‘back end’ & ‘front end’ that I tried it from both places that we can create topics, the front end and the back end.

    The one thing I did do, that I have just tested against was I had copied and pasted the the ‘content’ from the back end to create the topic in the front end.

    I just manually typed the following into the ‘front end’ for single quote ', double quote " and

    `

    tilde symbols.

    I am also using a clean install and the Twenty Thirteen theme so like yourself I am a little perplexed as to why we are seeing something different.

    @netweb

    Keymaster

    Hey, I most probably could have worded things a little better, it was not meant to be a case of your not telling the truth, rather I see things contrary to what you have said, sorry about that.

    I was trying to get across the point that I was seeing other things that are more likely than not the cause of your issues, yet you beg to differ, fine, we’ll just have to agree to disagree on if you received any support in this thread or not.

    All the best then,

    Stephen

    @netweb

    Keymaster

    If your theme has a template with sidebar maybe page.php then make a copy of that file and rename it to bbpress.php

    @netweb

    Keymaster

    I think this is most likely an issue with the extra plugin you are using “CIMY User Extra Fields”

    I am not sure what the actual issue is but you should disable that plugin and see if you can update your password in your bbPress profile.

    @netweb

    Keymaster

    You can try the ‘Remap existing users to default forum roles’ repair tool to see if that fixes the bbPress Roles: https://codex.bbpress.org/repair-forums/

    I had a quick look at https://wordpress.org/plugins/role-scoper/ and they make no specific mention of supporting bbPress’ ‘Dynamic Roles’ and that could be where the core of the issue is.

    Yes, Role Scooper is the issue and it appears there will be no longer further development or support:

    https://wordpress.org/plugins/role-scoper/faq/

    With the production release of Press Permit, is Role Scoper still supported?
    Basic Role Scoper support (bug fixes but not necessarily plugin conflict resolution) will be provided while WP 3.6.x is the active WordPress version. Compatibility with WP 3.7 and beyond is not assured, as I do not plan any further unfunded development of the Role Scoper code base. Further development and support will be available on a consulting basis as indicated on agapetry.net, but I will encourage migration to Press Permit – a superior platform with a sustainable funding model.

    The good news is the new plugin ‘Press Permit’ does support bbPress’ Dynamic Roles 🙂

    https://wordpress.org/plugins/press-permit-core/
    Customize bbPress forum permissions

    @netweb

    Keymaster

    I just tried this and it works for me from both the front and back end.

    @netweb

    Keymaster

    Updated 🙂

    Subscriptions
    Forum participants can elect to subscribe to a forum or topic. They will be notified when a new topic is created in a subscribed forum or a new reply is posted to a subscribed topic. Subscribed forums and topics will appear on their forum user profile.
    https://codex.bbpress.org/forum-settings/

    @netweb

    Keymaster

    Just set the ‘Forum Order’ of your forums to whatever order you want them displayed in.

    https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum

    @netweb

    Keymaster

    Cool, glad your taking a look at it.

    “It seems to have appended an extre Re: in front of each (so they read Re:Re:Topic)”

    The Re: should only be added to the title of a reply, this should not be adding them to the topics and this shows that the SQL in the importer isn’t quite matching up with your database.

    The SQL queries below are based on the Kunena1.php importer and use the prefix jos_ as the table prefix for the bbPress importer.

    When the importer fails you should see an error message like the following:
    WordPress database error: [Unknown column 'kunena_categories.locked1' in 'field list']

    In this particular case the importer was looking for jos_kunena_categories.locked1 where jos_kunena_categories is the table name and locked1 is the field name. I used ‘locked1’ as a way to force an error to show the example, so if I knew my version of the database should be looking at the field locked instead of locked1 you can find the 'from_fieldname' => 'locked1' in Kunena1.php and update that with the correct field mapping 'from_fieldname' => 'locked',.

    Another way you can go about this is to jump directly into phpMyAdmin and test each of the following SQL queries, there are primarily four queries are as follows:

    Again I used prefix jos_ for my database and you will need to change this to match your own database table prefix.

    Forums

    
    SELECT 
    kunena_categories.id AS id,
    kunena_categories.parent AS parent,
    kunena_categories.numTopics AS numTopics,
    kunena_categories.numPosts AS numPosts,
    kunena_categories.name AS name,
    kunena_categories.description AS description,
    kunena_categories.ordering AS ordering,
    kunena_categories.locked AS locked 
    FROM jos_kunena_categories AS kunena_categories
    

    Topics

    
    SELECT 
    kunena_messages.thread AS thread,
    kunena_messages.catid AS catid,
    kunena_messages.userid AS userid,
    kunena_messages.ip AS ip,
    kunena_messages_text.message AS message,
    kunena_messages.subject AS subject,
    kunena_messages.time AS time,
    kunena_messages.locked AS locked 
    FROM jos_kunena_messages AS kunena_messages 
    INNER JOIN jos_kunena_messages_text AS kunena_messages_text 
    ON kunena_messages_text.mesid = kunena_messages.id 
    WHERE kunena_messages.parent = 0
    

    Replies

    
    SELECT 
    kunena_messages.id AS id,
    kunena_messages.catid AS catid,
    kunena_messages.thread AS thread,
    kunena_messages.ip AS ip,
    kunena_messages.userid AS userid,
    kunena_messages.subject AS subject,
    kunena_messages_text.message AS message,
    kunena_messages.time AS time 
    FROM jos_kunena_messages AS kunena_messages 
    INNER JOIN jos_kunena_messages_text AS kunena_messages_text 
    ON kunena_messages.id = kunena_messages_text.mesid 
    WHERE kunena_messages.parent != 0
    

    Users

    
    SELECT 
    users.id AS id,
    users.password AS password,
    users.username AS username,
    users.email AS email,
    users.registerDate AS registerDate 
    FROM jos_users AS users
    

    That’s a bit to digest so I’ll leave it at that for now and it is probably as clear as mud unless you are a seasoned SQL junkie.

    If anything I wrote above doesn’t make sense just ask away and remember 🙂
    https://en.wikipedia.org/wiki/No_such_thing_as_a_stupid_question

Viewing 25 replies - 1,826 through 1,850 (of 3,352 total)