Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,176 through 13,200 (of 13,958 total)
  • In reply to: Freshness for Category

    @robin-w

    Moderator

    consider me tuned ! πŸ™‚

    In reply to: Freshness for Category

    @robin-w

    Moderator

    No problems, if you’d like the last post date rather than freshness, use this plugin

    https://wordpress.org/plugins/bbp-last-post/

    In reply to: Freshness for Category

    @robin-w

    Moderator

    Put the following code in your functions file

    function change_no_topics ($anchor) {
    if ($anchor=="No Topics") {
    $anchor=" " ;
    }
    Return $anchor ;
    }
    add_filter ('bbp_get_forum_freshness_link','change_no_topics') ;

    This will blank it.

    If you want it to say the same each time, just change the $anchor=” ” to whatever you want it to say.

    If you don’t know how to do any of this, come back

    @robin-w

    Moderator

    No problem !

    @robin-w

    Moderator

    @kvr28 great looking modification. Just tried it and it fell over with a parse error :

    Parse error: syntax error, unexpected ‘=’ in….line 44

    which is

    bbp_has_forums(β€˜post_parent=’.bbp_get_forum_id());
    

    Any ideas?

    @robin-w

    Moderator

    When you say “The spam is removed “, if you’ve only marked it as spam, then the post still exists, and the system may recognise this – whether it should is another matter !

    Try going into Dashboard>replies and deleting the offending reply.

    @robin-w

    Moderator

    Yes (at least it was in my case) – unless the old system used the same password system, then the encrypted password is alien to WP, so unless it just believes that all users are genuine, then it has to reject users.

    Password lost works as a good mechanism as it sends email to user, so confirms identity.

    I just created a page in my menu headed “old forum users” and put a message in there that they wuld need their password reset for security reasons, and to click lost password. I then used the [bbp-login] and [bbp-lost-pass] shortcodes to display that on screen under the message.

    @robin-w

    Moderator

    if you’re happy with rough and ready, I’ll try and cut some next week ! should be a simple couple of loops (but they’re never as simple as that !)

    @robin-w

    Moderator

    No problem – I spent several weeks getting my head around importing from a flat file database, in similar circumstances !

    The real issue here is whether you can get email addresses. If you can, then if you import users as per my previous, they can use “password lost” to re-do their passwords, and then it’ll all be fine.

    The problem otherwise is that posts link to user-id’s not names, so yes when they register they’ll get a new ID, and the old posts won’t show as theirs. Additionally logon names need to be unique so they can’t register with any existing username !

    OK so what would I do?

    I’d do as previous and create a user table to import, but call each user ‘old_xxx’ – you can do this before import, effectively your placeholder.

    As each user registers, you can run some code around the posts to remap them. You’ll get a registration notice, so if you cut some code, then you can just run this each time someone registers. Basically you would just enter there old username and their new one. The code would look up the old ID, the new ID, and then run through posts to remap to the new user. If you’d like help with that, just let me know and I’ll try and cut a quick loop code that you can run straight on the website (pw protected of course)

    @robin-w

    Moderator

    ok, you need to eliminate whether it is a plugin or theme issue

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins apart from bbpress, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    and come back and let us know

    In reply to: Shotcodes not working

    @robin-w

    Moderator

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins apart from bbpress, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    @robin-w

    Moderator

    try running the forum repairs

    Dashboard>tools>forums>repair and run one at a time

    @robin-w

    Moderator

    So you’re fixed !

    In reply to: Block User

    @robin-w

    Moderator

    It could with some coding, but this message probably applies to many situations eg not logged in

    Try this in your function file

    //This function changes oldtext to newtext
    function rchange_translate_text( $translated_text ) {
    	if ( $translated_text == 'oldtext' ) {
    	$translated_text = 'newtext'];
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'rchange_translate_text', 20 );
    

    where old text is the old text, and new text the new.

    If you have more than one of these functions (seem to think I have given you this solution for another part), then just make sure the function name is unique eg this ones called rchange… so next time maybe call it schange… and change it in first and last lines to match.

    In reply to: Shotcodes not working

    @robin-w

    Moderator

    what shortcodes?
    what software versions of bbpress, buddypress and wordpress are you running?
    what theme?
    what plugins are you running?
    url of your site?
    when do you get 404 – logged in, not logged in?

    etc.

    We would love to help you, but give us a fighting chance of working out what is wrong by giving us some details πŸ™‚

    Come back and we’ll do our best to hep you !

    @robin-w

    Moderator

    and this on their site seems to suggest issues

    http://help.olegnax.com/discussion/2099/retro-with-buddypressbbpress/p1

    @robin-w

    Moderator

    this just posted in wordpress

    https://wordpress.org/support/topic/cant-edit-own-post-with-bbpress?replies=1

    is that the same website?

    @robin-w

    Moderator

    and if you make it public does it work?

    @robin-w

    Moderator

    This does presume that you’ll be doing a manual re-register – ie that the users will send you a name and email and you’ll just amend the username created in the conversion. If you want an automatic registration, then come back as that may be really complicated !

    @robin-w

    Moderator

    I imported from an access database (ditto conversion to sql) so know what you’re going through! see https://bbpress.org/forums/topic/documented-import-from-snitz-access-database/ for a blow by blow of how I did this and presume you’re already well into using custom importer https://codex.bbpress.org/import-forums/custom-import/

    Now given that you’re going to re-register users, then we only need the topics to be assigned to a user which exists, which then when they re-register you can set up properly.

    So for instance if you have a topic with the author name of “fred” – then you need a user fred to exist. This needs to be at ID level.

    So in essence you’ll need to import

    topic with author ID
    User with same ID

    Minimum info to create a user is (in theory – it may be less) ID, username, email and password.

    In my case they mapped from a snitz access forum (via sql) as follows

    MEMBER_ID _bbp_user_id
    M_NAME user_login
    M_PASSWORD _bbp_password
    M_EMAIL user_email

    So I would go about it this way.

    What we need to end up with is a topics/replies table that has a author ID (number) against each topic/reply.
    In a user table, we then need that same ID, together with name, password and email.

    So first I’d go back to my lotus notes and see if topics has an author ID. If not we’ll need to create one (we’ll do that in a minute).

    Then from the topics and replies lists create a set of autor names and (if it has them) ID’s

    Create a user table (in my case in excel, but presume you’re familiar with creating in lotus notes) with the following headings

    ID NAME PASSWORD EMAIL

    If your topics/replies doesn’t have user ID’s then you just need to populate this table with unique ones, I’m pretty sure that you can just start with 1 and increment them – wordpress will assign new ID numbers as they come across starting with the next number that wordpress is not using.

    For password, just put anything – and they can all be the same

    Emails must be unique in theory, but don’t need to exist so abc@def.com is fine (you’ll be fixing these as they register, so doesn’t matter). But as you’re importing directly into the database, I reckon you could get away with them all being a single fictitious one. But if you have the skills, I’d create them as increments eg abc1@def.com, abc2@def.com just in case

    so now you have a user table to import.

    If you topics and replies don’t have author ID’s, then now go back to the topics and replies tables and run macro to populate a new column using name against the user table you’ve just created to populate with id.

    Now we have topics with ID’s an da user table to import. Just check that column names match the importer, convert it all to sql, and off you go !

    @robin-w

    Moderator

    you’re welcome !

    @robin-w

    Moderator

    This comes from your theme’s main style, in my case

    a:link { 
    color : #EEEEEE !important ; 
    }
    

    if you want to change this throughout your site, then drop this into your style.css (or amend the current setting)

    If you just want it in bbpress

    #bbpress-forums .bbp-author-name a:link { 
    color : #EEEEEE !important ; 
    }

    should work

    @robin-w

    Moderator

    No, nothing you can do, but I’ve just made an error in my plugin, and I think I have solved the problem above by chance !!

    The plugin will let you do this, but you’ll have to wait for the plugin though as it is still in dev – expect a week !

    I should be able to get content in as well with luck !

    Sorry can’t be sooner, but a lot of code to write properly now I know it works !

    and of course no guarantee that I won’t find some major flaw !

    @robin-w

    Moderator

    No problem, not an area I’m any good at, but maybe someone else reading may have the knowledge !

    Hope you get fixed !

    @robin-w

    Moderator

    Yes, it is in the long list I have, and I have failed you !

    As per your other post, this is all in related area, and I’ll try and have a look at this also !

Viewing 25 replies - 13,176 through 13,200 (of 13,958 total)