Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,851 through 6,875 (of 7,279 total)
  • In reply to: Mirroring Forum Posts

    Robin W
    Moderator

    @robin-w

    Sorry, totally misread this – thought you had posts mirroring and wasted to get rid of them.

    I suspect that it would be very hard to get them to just replicate in the database, hits at core code.

    But you could re-do your forum templates to show them twice.

    Beyond my immediate knowledge, but start by looking at you forum page loop, and then the templates viz

    wp-content/plugins/bbpress/templats/default/bbpress


    Robin W
    Moderator

    @robin-w

    Most bbp functions have simple variables. Yes, there must be a shorter way, but this is an array not a simple variable, and it builds an unordered list using the array and a loop.

    It has an “apply filters” as part of the function, so they are expecting it to be able to be filtered, but hopefully not by having to do it all again !

    I am writing some codex guide for filtering in bbPress, and by co0incidence was just using this oen as an example, and have been trying to crack it.

    I can do it by amending the template –

    https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ section 2, and save template into

    wp-content/themes/yourthemename/bbpress

    bbPress then uses that one.

    I have posted a fresh query to Stephen Edgar or JJJ to pick up, but it’s gone into moderation as I posted a whole lot of code. Hopefully one of the two will pick it up and answer.

    In the meantime yours is so far the best answer !

    In reply to: Forum messed up

    Robin W
    Moderator

    @robin-w

    More of a case that the Presswork theme doesn’t support bbPress!

    Since this is a premium theme and therefore you have paid for support, suggest you go on their support site and ask for their help.


    Robin W
    Moderator

    @robin-w

    BBpress uses your themes page.php file as default page template.

    If you copy this (or any other page template) into the root of your theme and call it bbpress.php, it will be used instead.

    ie

    wp-content/themes/yourtheme/bbpress.php

    If you are after individual templates, these are held in :

    bbpress/templates/default/bbpress

    If you want to alter these, create a bbpress folder under your theme

    ie

    wp-content/themes/yourtheme/bbpress

    then any of these templates that you copy to this folder will be used instead, and you can modify them there.


    Robin W
    Moderator

    @robin-w

    Mycelus – which plugins have you tried, and what issues have you had, or what is lacking in them.

    Because if the developers take up your suggestion, you won’t want them to make the same mistakes that you have found in these plugins!


    Robin W
    Moderator

    @robin-w

    ok, something’s caused it, so we need to try and resolve down. Can you run the following :

    If you just type on http://mysite.com/wp-login.php into your url, do you get the same problem ? [test if the issue is in executing the result, or issue before that]

    Create a new page and put [bbp-login] in it, and then run that page (either by url eg http://mysite.com/my-new-page-name, or from a menu, I’d try both) [see if it’s in the widget]

    What other plugins are you running?


    Robin W
    Moderator

    @robin-w

    Did they say which plugin was the issue, and how they knew it was a plugin issue?

    I’d never rule anything out, but if there was an issue with bbpress and buddypress running on themes, then the whole world would be shouting about it, there are tens of thousands of these installations.


    Robin W
    Moderator

    @robin-w

    you don’t actually need to change the permalinks eg is Kazza were user 15

    http://www.mysite.com/forums/users/15/edit/

    works just as well as

    http://www.mysite.com/fourms/users/kazza/edit

    so you’d need to change how the profile page is called so that it displays the no. in the url.

    Given that profile is called from

    any topic or reply display (click the avatar or author name)
    several widgets (click the avatar or author name)
    possibly other areas

    you’d need to re-code these areas.

    the function bbp_reply_author_link is used for topic and reply display, not sure if widgets use that as well.

    In reply to: User ranking system?

    Robin W
    Moderator

    @robin-w

    Great, glad you’re fixed.

    If you do some coding for ranking, can you post this back here, and maybe I’ll add it as a plugin for others benefit

    In reply to: Mirroring Forum Posts

    Robin W
    Moderator

    @robin-w

    Ok, it should all be fine.

    Suggest you start by deactivating all your other plugins to see if that fixes. If it does, then add back one at a time to see which is causing it.

    If that doesn’t work, try changing to a default theme such as twentyeleven and see if that fixes

    Come back and let us know if that gets you anywhere

    In reply to: User ranking system?

    Robin W
    Moderator

    @robin-w

    Ok, not quite sure why that stopped working – it used to !

    But have just tested this :

    function display_counts () 
    {
    		
    		$user_id=bbp_get_reply_author_id( $reply_id ) ;
    		$topics  = bbp_get_user_topic_count_raw( $user_id);
    		$replies = bbp_get_user_reply_count_raw( $user_id);
    		$post_count   = (int) $topics + $replies;
    		echo "<br>Total posts : " ;
    		echo $post_count ;
    		echo "</br>" ;
    		}
    add_action ('bbp_theme_after_reply_author_details', 'display_counts') ;

    and that works.

    As before you can then add some if statements to display a status or icon

    In reply to: User ranking system?

    Robin W
    Moderator

    @robin-w

    yes just tried it, and it does say 0 – will come back to you – I just cribbed some code within a larger file that it worked several months ago – will take a closer look !


    Robin W
    Moderator

    @robin-w

    ok, try deactivating all your other plugins, and see if it then works. If it does, then add one at a time to see which is causing the issue.

    If still failing, switch to a default theme such as twentyeleven to see if it is theme related


    Robin W
    Moderator

    @robin-w

    Presuming you are using latest versions, these should work fine together.

    What other plugins have you got? Deactivate all other plugins except buddy and bb, and see if they are then ok.

    If not, then try switching to a default theme such as twentyeleven to see if it is theme related.

    If it is ok with just theme and bbpress and buddypress, add back plugins one at a time to see which is casuing the conflict


    Robin W
    Moderator

    @robin-w

    Yes it can be done, but you’d need to have some coding skills.

    You’d need to amend loop-single-reply.

    Start by creating a directory called “bbpress” under you theme directory

    ie

    wp-content/themes/what-every-yourtheme-is/bbpress

    and copy this file

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    to it

    This file is then used by a higher loop to display the topic and replies as you now see them, with avatars and all the content.

    You can then amend this file to display as a single line items, presumably with a post link attached.


    Robin W
    Moderator

    @robin-w

    It will almost certainly be an issue with the role editor

    A quick deactivate of that plugin to prove would be worthwhile

    and then try having a look at their support forum, or posting there

    In reply to: User ranking system?

    Robin W
    Moderator

    @robin-w

    Yes, but depends on how code savvy you are.

    Basically adding this to your functions file will get a count showing

    function display_counts () 
    {
    		$post_count = bbp_get_user_post_count( bbp_get_reply_author_id( $reply_id )) ;
    		echo "<br>Total posts : " ;
    		echo $post_count ;
    		echo "</br>" ;
    		//add some if statements here eg if $post_count>100 echo 'hero' or a link to a picture
    		}
    add_action ('bbp_theme_after_reply_author_details', 'display_counts') ;
    
    

    and where I’ve indicated adding some if statements link to icons or words will do the second

    In reply to: Mirroring Forum Posts

    Robin W
    Moderator

    @robin-w

    Not seen this and should not work like that.

    are those actual names of forums? If so, I’ll try it on my test site.


    Robin W
    Moderator

    @robin-w

    Should be immediate.

    Are you using any caching plugins?


    Robin W
    Moderator

    @robin-w

    edited to get the link right !


    Robin W
    Moderator

    @robin-w

    hmm..
    with bbPress you should have a login widget that takes them to the bbPress profile,

    I add the following code to it to make editing obvious

    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Amend Profile/Change password</a></p>
    

    You should be able to use that in your widget, or use it to substitute

    In reply to: Form To Forum Post

    Robin W
    Moderator

    @robin-w

    Hey great, look forward to seeing it !

    In reply to: Form To Forum Post

    Robin W
    Moderator

    @robin-w

    @jslom

    Do you fancy having a go at seeing if you can get this going for a bbpress entry !

    Come back and let us know.

    In reply to: Form To Forum Post

    Robin W
    Moderator

    @robin-w

    @pinkishhue
    – Great – thanks for posting that – I’ll take a look

    In reply to: WordPress with bbpress

    Robin W
    Moderator

    @robin-w

    No, it’s been around for quite a while.

    Try it !

Viewing 25 replies - 6,851 through 6,875 (of 7,279 total)