Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,576 through 8,600 (of 32,505 total)
  • Author
    Search Results
  • #163016
    flippyr
    Participant

    Thanks guys, I had actually found a workaround, i copied page.php and renamed it to be page-slug.php and put an if statement at the beginning as below

    if ( !is_user_logged_in() ){
        header("Location: http:homepage");
    }else{
        // Show content
        the_content();

    now comes the question, which method is better? in terms of maintenance going forward i mean

    #163015

    In reply to: SMF Import to bbPress

    Mei Ling
    Participant

    Yes bbcode. We use “Aeva media”

    #163014
    ns
    Participant

    I checked function.php, and I found the cause.

    function.php had below code.

    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    function change_reply_order() {
    	$args['order'] = 'DESC';
    	return $args;
    }

    So I commented this part out and then I confirmed it works property.

    Thank you for replying and helping me.

    #163012
    ns
    Participant

    Thank you for replying.

    Yes, that’s right.
    The link of https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is made by bbp_user_replies_created_url() function.
    The default file of user-detail.php has this function and I don’t change.
    The parameter of this function is blank.

    When the page like https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is executed.
    As the core processes of bbPress, does it really retrieve only specific user’s replies from database?
    This is what I don’t understand now and the current question.

    I checked php files user-replies-created.php, loop-replies.php, and loop-single-reply.php, and interface of functions which used in these php files.
    I haven’t almost changed codes in these php files, the content of these php files is nearly the original.
    As far as I checked, there are no parameters which can retrieve only specific user’s replies in functions.
    In this bbPress forums, user interface part is customized from the original file, though, why can it show only specific user’s replies data correctly?

    I think I might have to add or change some codes in some of php files…, I don’t know it’s true.

    #162999

    In reply to: Visual Editor

    Robkk
    Moderator

    @galador

    Please go through some of the troubleshooting steps listed here.

    Troubleshooting

    and What schmoo and I were saying is that you can use both of the plugins we mentioned to extend/show the visual editor.

    to display the visual editor make sure you have configured the setting in settings > forums in the WordPress back-end.

    #162998

    In reply to: Allow HTML from users

    Robkk
    Moderator

    @atsouf

    just use autoembed links in settings > forums

    when the user places the link in the reply content area that link will automatically become a video when posted.

    https://codex.bbpress.org/getting-started/embeds/

    #162997
    Robkk
    Moderator

    @pamhsims

    Use this code instead for what you want

    //custom text for subscribe links
    function rkk_forum_subscribe_link() {
      $args['subscribe'] = esc_html__( 'Subscribe to this forum',   'rkk' );
      $args['unsubscribe'] = esc_html__( 'Unsubscribe to this forum',   'rkk' );
      return $args;
    }
     add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'rkk_forum_subscribe_link' );
    //custom text for topic subscribe links
    function rkk_topic_subscribe_link() {
      $args['subscribe'] = esc_html__( 'Subscribe to this topic',   'rkk' );
      $args['unsubscribe'] = esc_html__( 'Unsubscribe to this topic',   'rkk' );
      return $args;
    }
     add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'rkk_topic_subscribe_link' );
    #162996
    Robkk
    Moderator

    @billreefer

    If you do write a guide or start to write a guide.

    You can email me your ideas , or if you want to start writing it out soon you can write in a Google Doc Spreadsheet and email it to me , so I could put it in the codex.

    Email anything you want in the COdex, you find my email in this link.

    Contact

    #162995

    In reply to: Topic excepts

    Robkk
    Moderator

    @hemant-ahir

    I think if you are using the bbPress login shortcode this is the hook if you need a hook

    bbp_redirect_login

    #162994

    In reply to: SMF Import to bbPress

    Robkk
    Moderator

    how is it embedded?? with bbcodes??

    #162993
    Robkk
    Moderator

    Please go through some troubleshooting steps here.

    Troubleshooting

    THis guide will be improved in the next few days.

    Also you most likely will not need to do the advanced troubleshooting.

    #162990
    Robkk
    Moderator

    What replies page?

    Did you try any of the troubleshooting steps listed here

    Troubleshooting

    I do not think you have to do the advanced troubleshooting though.

    #162989

    In reply to: First post not showing

    stevenwb
    Participant

    Hi Pinkishhue,

    First of all, I am using Enfold theme.
    Second, I have explored the show lead topic thread and to be perfectly honest, I have no idea if it is enabled or not. I have found the php file and dropped in that code, however it doesn’t show my first topic.

    Still though, if I deactivate Wishlist Member, the first topic shows.

    Any more ideas as i am lost here

    Thanks

    Steve

    #162986
    patrix87
    Participant

    I modified a little script I found inside a plugin named “bbp signature” https://wordpress.org/plugins/bbp-signature/
    That plugin actually does not work with Buddypress, it is a bbpress plugin
    [modified by moderator]

    But the code wasn’t too terrible. even though I only kept a few line of it.

    So here’s the solution;

    make sure you have buddypress with xprofile enabled *(extended profiles)

    1. Create a new text box field in Xprofile and name it “Signature”. *(caps is important, no quotation mark.)

    Then add that code to the function.php of your child theme.

    
    //Add Signature
    
    function bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
    	// Default arguments
    	$defaults = array(
    		'separator' => '<hr />',
    		'before'    => '<div class="bbp-signature">',
    		'after'     => '</div>'
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r );
    
    	// Verify topic id, get author id, and potential signature
    	$reply_id  = bbp_get_reply_id       ( $reply_id );
    	$user_id   = bbp_get_reply_author_id( $reply_id );
    	$signature = xprofile_get_field_data( 'Signature', $user_id );
    
    	// If signature exists, adjust the content accordingly
    	if ( !empty( $signature ))
    		$content = $content . $separator . $before . $signature . $after;
    
    	return apply_filters( 'bbp_reply_content_append_signature', $content, $reply_id, $separator );
    }
    
    add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
    
    

    That’s it !

    PS. If you want to enable HTML in xprofile there is a way but it’s risky.
    you can read about it here : https://buddypress.org/support/topic/html-in-profile-field-again/

    #162985
    Robkk
    Moderator

    @mmice

    you should have posted that on gist.github.com or at least pastebin so that users do not have to scroll through all that.

    As for importing have you tried a creating a custom import using the example one in the bbPress plugin
    https://codex.bbpress.org/import-forums/custom-import/

    And for Karma system you might have to look into a WordPress plugin like MyCred.

    And for importing private messages , I am not sure how that is going to work, but there is a lot of Private messaging plugins for WordPress like BuddyPress.

    Robkk
    Moderator

    I do not see the issue on your site currently.

    I do see these weird avatar image placement though.

    Add this CSS to fix that issue.

    #bbpress-forums p.bbp-topic-meta img.avatar {
      display: inline !important;
    }

    There are a few functions to help with this:

    • bbp_new_forum
    • bbp_new_topic
    • bbp_new_reply
    #162979
    Robkk
    Moderator

    created per startup instruction.

    Where did you get the information from??

    As for your theme , if you are using Genesis you can install a plugin to help.

    But some other themes you have to create a template for bbPress

    follow this guide

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #162977
    Robkk
    Moderator

    once i went into bbpress settings and set a register page and activation page.

    This sounds like you went to BuddyPress’s settings, you can use BuddyPress’s register form.

    For a login page you can place the bbPress login shortcode in a page and it should work.

    For a lost password page I guess you can use the lost password shortcode but I do not know if it works correctly or not, or it just redirects to the WordPress lost password form.

    #162963
    flippyr
    Participant

    Hi Guys/Gals

    I am looking to only display pages if users are logged into BBPress. I am aware that i can set the visibility of a page to be password protected however this is an additional step that could be avoided.

    I have noticed there is a function bb_is_user_logged_in() that i could utilise however i dont know where i should add the code and indeed if it needs to go in the theme or child theme.

    Can anyone help?

    Many thanks and have a nice day

    #162962
    flippyr
    Participant

    Thanks for the reply Robin,

    I have sorted this now. basically i was using the shortcode and couldnt see the password field however once i went into bbpress settings and set a register page and activation page. BBpress then generated the needed components and the registration page.

    Robin W
    Moderator

    (I have crossposted this to the Private groups plugin support board. I hope there are no issues with that.)

    no problem, you get me either way !

    This could be coded, but it is quite complex to do.

    In essence you would need to change the can_view function in private groups to have a view or change capability.

    The issue is that I am fully tied up at the moment in other paid work, so you would need to put this to someone who would need to learn how bbpress/private groups works.

    I suggest you try

    http://jobs.wordpress.net/

    I hope you find someone.

    #162954
    flippyr
    Participant

    Hi everyone,

    Looking for some assistance here,Instead of using WordPress facing registration page/ login page i have made a page that has login, registration an d lost password shortcodes. However during the registration process, i cannot get the user to specify the password therefore there is a need for approving admins to go create a password then email the user. Any ideas?

    I have looked at many forums, plugins but haven’t got very far. Many thanks

    #162953
    billreefer
    Participant

    Please see

    http://contracostabee.com/forums/

    created per startup instruction.

    The forums page with only the shortcode in it produces text instead of form showing forums. Then when if you click on the image it takes you to the most recently created Forum page.

    I’ve posted this problem several times but it disappears.

Viewing 25 results - 8,576 through 8,600 (of 32,505 total)
Skip to toolbar