Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,226 through 8,250 (of 32,505 total)
  • Author
    Search Results
  • #164940

    In reply to: Private forum

    Emma_Jones
    Participant

    Hi,

    This might be helpful:

    Forum visibility:
    Public – Anyone can see these forums
    Private – Only logged in registered users with a forum role can see these forums
    Hidden: Only Moderators/keymasters can see these forums

    This is from the step by step guide:

    Step by step guide to setting up a bbPress forum – Part 1

    #164914

    In reply to: Full width and sidebar

    davidnsfw
    Participant

    Probably after updating the theme, this sidebar is showing there.

    Can you be more precise where I should remove this code?

    #164901
    Robkk
    Moderator

    I think it is pretty much when 2.6 is done it gets released.

    I think the version you want to revert to would be fine.

    The import being stuck could be normal, or there could be a post causing all the hold up.

    Import Troubleshooting

    Robkk
    Moderator

    Oh this worked, not the other one. I tried it to see if it would do anything and forgot to change it back.

    <?php if ( $post->post_content=="" ) { echo "yes";};?>

    #164897
    Robkk
    Moderator

    Did you try to see if it was another plugin, possibly causing the issue??

    Troubleshooting

    Robkk
    Moderator

    This works when I tested it.

    <?php if ( $forum->post_content=="" ) { echo "yes";};?>

    #164895

    In reply to: Full width and sidebar

    Robkk
    Moderator

    THis is all the CSS you need.

    .bbpress .post-section {
    margin: 0 2% 20px;
    width: 96%;
    }
    
    .bbpress #content-main {
    width: 100%;
    margin-right: 0;
    }
    
    @media screen and (max-width: 1002px) and (min-width: 768px)
    .bbpress #content-main-inner {
        margin-right: 0;
    }

    To remove the sidebar you have to follow this guide and remove the sidebar PHP code.

    Getting Started in Modifying the Main bbPress Template

    #164891
    davidnsfw
    Participant

    I have added this code to my css editor:

    .bbpress .post-section {
    	margin: 0 2% 20px;
    	width: 96%;
    }
    
    .bbpress #content-main {
    	width: 100%;
    	margin-right: 0;
    }

    But the left sidebar still shows up below the forum.

    http://bit.ly/1NQj9fO NSFW

    #164882
    Robkk
    Moderator

    I cannot duplicate the issue you are experiencing.

    I renamed my admin user
    changed the user ID to something besides 1
    And also changed my database table prefix.

    I then installed bbPress and saw the About Page fine.

    I also went to Tools > Forums then went to Repair Forums and still see no error.

    No new menu is added neither in the admin panel, so I have no way to use it, activate it or see it.

    This is forum bbPress menu items like Forums, Topics, and Replies right?? This is not just the About Page and the Repair FOrums page??

    The about Page can be accessed by going to the plugin in your plugin list and hitting the About link, and the Repair Forums Page can be accessed by going to Tools > Forums then went to Repair Forums.

    I tried several database changes as mentioned in the forum, but nothing worked.

    Well just so you know code in topics more than 2-3 years might be for the old standalone version of bbPress which might be useless and may break your site even.

    #164875
    Robkk
    Moderator

    You have to create a new role and it has to have these set capabablites

    'publish_topics' => false,

    and

    'publish_replies' => true,

    While what I listed is oversimplified, you may need to adjust extra capabilities to your liking. To learn how to create a new user role with its own custom capabilities read this guide.

    Custom Capabilities

    You then set the default role in the forum settings in Settings > Forums in the WordPress backend.

    To change existing users you have to change their forum role in Users > All Users in the WordPress backend.

    #164873

    In reply to: bbPress problem

    Robkk
    Moderator

    You might need your permalinks refreshed.

    Navigation Links Return 404s Errors

    #164869

    In reply to: Proper Emoji Plugin

    Robkk
    Moderator

    I think you can use emoji in the latest version of WordPress.

    https://codex.wordpress.org/Emoji

    🎅 👻 👹 👺 💩 💀 👽 👾

    #164857
    Amit Kumar
    Participant

    For Comment moderation just go to comments section and click to approve.
    For word verification you can use Google capcha code in your theme templet or comments.php
    See this site, Here i add word verification in comment section.
    If you want to same this than i can fully guide You.
    http://mytechnode.com

    #164848
    SalCollaziano
    Participant

    What if you want to change two different phrases? I’m trying to play with the code and I can’t get the second phrase to work…

    Sal C.

    edit: Found it:

    Change or Translate Text on a WordPress Theme

    #164840
    killer_x10
    Participant

    I was thinking of the strip tags function, where you write something and then it removes the Tags.

    Example: [b][i]Your written code.[/b][/i]
    After clicking the Button: Your written code.

    Yes, I was thinking of that since I saw on some Forum but it’s okay, i do not need that functionality.

    #164834
    Danilo Borges
    Participant

    Amazing Robkk! It is exactly what I was looking for!

    <?php if ( get_current_user_id() == bbp_get_topic_author_id() ) : ?>
    
    			<?php bbp_get_template_part( 'form', 'reply' ); ?>
    
    		<?php elseif ( current_user_can( 'moderate' ) ) : ?>
    
    			<?php bbp_get_template_part( 'form', 'reply' ); ?>
    
    		<?php else : ?>
    
    			<div class="bbp-template-notice">
    				<p><?php _e( 'You do not have permission to reply to this topic.', 'bbpress' ); ?></p>
    			</div>
    
    		<?php endif; ?>

    Thanks a lot!

    #164557
    killer_x10
    Participant

    Hello there everyone, I have searched all over the Forum and many Sites but I had no luck finding any bbcode Editor. The only thing that I found was the “bbpress Post Toolbar” Plugin which wasn’t maintained anymore, I took the risk and tried it out. But then I found out that it was actually coded to work with HTML and as many of you already know, your participants cannot use all the HTML tags. It used some Codes used that was not allowed for a participant to use. When I was searching I came up with the Idea to edit the Toolbar so that it uses bbcode. But for WordPress to support bbcode I had to install another Plugin, “GD bbpress Tools”. Everything is working except the “Close HTML Tags”, where I really don’t know how to do it, I was hoping any of you guys could help me.

    You can download the Edited Plugin here: http://bit.ly/1KramlM

    I used 2 Plugins:
    bbpress Post Toolbar
    GD bbpress Tools

    Thank you 🙂

    #164822
    Robkk
    Moderator

    @daphnechin

    What are your permalinks structure?? Do you have a port in your url, or just a unique looking url for your site??

    Also try some troubleshooting steps listed here.

    Troubleshooting

    #164817
    Robkk
    Moderator

    @project_subdomain

    Updated the Gist again, this time and it should work like how you want.

    You will need to show the lead topic using this though.

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #164774
    Robkk
    Moderator

    The close tags function closed my last bbcode opening tag. You can also just close the bbcode by hitting the button again. it should show a little / that shows that it needs to be closed.

    Other than that, I explain how to use some (not all) bbcodes to the quicktags here if that helps any.

    BBCode Buttons?

    #164768
    Robkk
    Moderator

    Sorry for the late reply, but I do not think there is code to display the total participants in a forum. There are for topics but not single forums. Could be possible to create though.

    #164764
    project_subdomain
    Participant

    thanks, robkk. that’s weird as I don’t have SEO plugins activated as well.
    This is what’s in my template.php:

    /** 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' );
    		}
    #164761

    In reply to: Check box

    Robkk
    Moderator

    You can add any code snippets into your child theme or into a plugin that can just hold code snippets like Functionality.

    #164760

    In reply to: Check box

    Mei Ling
    Participant

    I am a newbie. I have seen functions in the codex I’d like to activate: site of the member or limit the access to the admin panel, etc.
    Do we have to add the functions to the child theme or in the core of bbpress. Is there a more intuitive way to do such a thing.
    We do not want a lot of plugin.

    I thank you for your feedback

    Mei-Ling

    #164752
    Robkk
    Moderator

    Copy the form-reply.php file into your child theme and remove this code for topic tags input on the reply form.

    <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
    
    <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
    
    	<p>
    	<label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'bbpress' ); ?></label><br />
    	<input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    	</p>
    
    <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
    
    <?php endif; ?>

    You can customize the content of the form using this CSS.

    #bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
        margin-top: 0;
        height: 210px;
    }

    The font is inherited from your theme.

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