Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 4,901 through 4,925 (of 32,518 total)
  • Author
    Search Results
  • #186972
    janallsopp
    Participant

    Hi, I’ve set up the lost password page with shortcode [bbp-lost-pass] but when users click on ‘forgot password’ and fill in the form they aren’t receiving an email with link to create new password.

    Using BBPress Version 2.5.14 and BBP Private Groups Version 3.5.9. Using WordPress 4.8.1. The website is private so I can’t share.

    Thanks in advance.
    J

    pmatteudi
    Participant

    Hi there,

    I’m writing because I have trouble to understand how templates are managed in BBPress (and wordpress I guess :)).
    I’d like to have a specific template on the main forum page (the one displaying the different forums). And another template for the page displaying the different topics.

    Currently in the wordpress page where I pasted the short code [bbp-forum-index], I call the template bbpress.php, which is presented in the bbpress codex (See example at the end of the topic).

    But how can I create a specific template for my forum index (listing all my forums), for instance “forum-display.php”. And another template, listing my topics (for instance “topic-display.php”).

    Maybe my file bbpress.php is not appropriate to do so ? or need to be customized a bit ?

    NB : I’m using twenty twelve theme

    I hope my question is clear,
    Thank you for your help,
    Pierre

    <?php
     
    /*
    Template Name: index-forum
    */
     
    get_header(); ?>
      
    <div id="primary" class="site-content">
     
    		<div id="content-forum" role="main">
    	 
    	 
    		<?php
    		/*
    		Start the Loop
    		*/
    		
    		while ( have_posts() ) : the_post(); ?>
    		 
    		 
    		<?php
    		/*
    		This is the start of the page and also the insertion of the post classes.
    		 
    		Post classes are very handy to style your forums.
    		*/
    		?>
    		 
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<?php
    			/*
    			This is the title wrapped in a header tag
    			and a class to better style the title for your theme
    			*/
    			?>
    		 
    			<header class="entry-header">
    			 
    			<h1 class="entry-title"><?php the_title(); ?></h1>
    			 
    			</header>
    			 
    			 
    			<?php
    			/*
    			This is the content wrapped in a div
    			and class to better style the content
    			*/
    			?>
    		 
    			<div class="entry-content">
    			<?php the_content(); ?>
    			</div>
    			 
    			<!-- .entry-content -->
    			 	 
    			</article>
    			 
    			<!-- #post -->
    			<?php endwhile; // end of the loop. ?>
    		 
    		</div>
    	 	<!-- #content -->
    	 	
    	 	<div class="login-sidebar"><?php dynamic_sidebar('forum_login_zone');?></div>
    
    </div> 
    	<!-- #primary -->
      
    <?php
    /*
    This is code to display the sidebar and the footer.
    Remove the sidebar code to get full-width forums.
    This would also need CSS to make it actually full width.
    */
    ?>
    		 
    <?php get_footer(); ?>
    #186939
    acpscommunications
    Participant

    Still looking for a solution on how to use a forum name shortcode with our email to subscribers

    #186927
    Robin W
    Moderator

    ok, so you create a page and use shortcodes to achieve this

    Shortcodes

    eg

    [bbp-topic-index]
    [bbp-forum-index]

    #186928
    Robin W
    Moderator

    ok, so you create a page and use shortcodes to achieve this

    Shortcodes

    eg

    [bbp-topic-index]
    [bbp-forum-index]

    #186923
    Kona Macphee
    Participant

    Hi guys,

    More than two years ago I posted the following bug report:

    Ajax validation issue for user auto-complete

    A ticket was opened for this bug here:
    https://bbpress.trac.wordpress.org/ticket/2864

    The issue was marked as fixed and the bug closed; however, the bug is not actually fixed and is still present in the most recent release.

    Here are the original details:

    Context:

    On the “Edit Topic” screen, there’s an “Author Information” box including an ID field. When you begin to type text into this box, the admin-ajax action “bbp_suggest_user” should auto-suggest potentially matching users.

    Issue:
    The user autosuggest is not returning any users, just “-1”. Having dug into the code, the step that’s failing is wp_verify_nonce() in check_ajax_referrer(), which is invoked on line 745 of bbPress file includes/admin/admin.php. The nonce is making it into wp_verify_nonce, but is not matching any expected/acceptable value – so wp_verify_nonce falls out the bottom with a failure.

    If I remove the check_ajax_referrer step, the Edit Topic user auto-suggestion works perfectly so it’s definitely the nonce validation step that’s the problem.

    Current context in which I’m still seeing the bug is WP 4.8.1 Multisite, bbPress 2.5.14, PHP 7.0.22. (I’ve been seeing the bug for over 2 years though, including with PHP 5.x).

    Would be really grateful if this bug could be fixed in the next release, because I’m having to manually patch every release at the moment (I have a user whose job relies on this function working properly.)

    Thanks!

    #186922
    Vishnja1
    Participant

    Hello! I have the same situation.
    There isn’t a problem to add link to user profile navigation. But the problem is to ‘register’ that page in such way, that it contents would render properly under ‘base_url/forums/users/someuser/your-custom-page/’ url. bbPress allows to see other user’s profile info too.
    I also couldn’t not find any guide how to do this or find it in plugin code. But if that page will be private (only for one user, like ‘Edit profile’ which disappears on others user acc pages) there is a workaround.
    You can create page template, copy ‘single-user.php’ contents to it and create page for this template in admin. Then add a link in profile page. Also you should add filters to ‘bbp_get_user_id’ and ‘bbp_get_displayed_user_field’ to make everything work correctly on that page. (I can provide code if you’re interested).

    #186909
    Robin W
    Moderator

    I’d ask them if memberpress is integrated with bbpress

    did you ask them the question above?

    ie is their plugin is integrated with bbpress and should be doing this, but it isn’t in your case, or if they haven’t integrated with bbpress, in which case it is not really up to bbpress to make sure there software works with paid plugins, so you would need someone to write the code that hooks to the memberpress cancellation to cancel the user subscriptions.

    PS I’m kinda interested that cancelling membership leaves the user still set up and able to access your site? Do they still show in dashboard>users?

    oh, and what version of bbpress are you using?

    #186907

    In reply to: PHP Fatal Error

    Vinod Dalvi
    Participant

    Sorry to hear of the problem you are having.

    It is working fine on my test site without any issue.

    Could you please try fixing the issue as described in the following pages?

    https://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded
    http://kb.wpbeaverbuilder.com/article/37-how-to-increase-the-wordpress-allowed-memory-size
    http://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

    You can also try using the below upcoming version 2.6 of bbPress.

    https://downloads.wordpress.org/plugin/bbpress.2.6-rc-3.zip

    #186906
    Vinod Dalvi
    Participant

    @lovechard Please understand that the bbPress provides functionality to users to subscribe/unsubscribe to topics from topics page but memberpress is restricting them to access topic page so they don’t have access to the page to unsubscribe to the topics.

    Here memberpress is changing the bbPress default process so in this case on cancelling the membership the memberpress should also unsubscribe users from all topics.

    The code in the following plugin will help memberpress to develop this functionality.

    https://github.com/tharsheblows/mjj-bbp-subscription

    #186900
    Stephen Edgar
    Keymaster

    Hmmmm….

    Could you try logging into https://codex.bbpress.org/wp-login.php before opening the email link, see if that works please?

    #186891
    clearscope
    Participant

    We have encountered a bug whereby when multiple forums are placed on a page, using the [bbp-single-forum id=##] shortcode, the HTML buttons do not appear for all but the 1st forum. The class=”quicktags-toolbar” div still appears in the source code, but it is empty (the HTML input buttons do not appear within the source HTML).

    This issue has been confirmed on multiple installs, with all plugins disabled and using the default WP theme.

    Here is a screenshot example: https://imgur.com/rqPiXa6

    #186884
    Robin W
    Moderator

    so what code are you using to pull the feed?

    #186881
    acpscommunications
    Participant

    This plugin does still work but apparently has no shortcode support for forum so still does not give me any way to adjust the subject line to start with which forum it’s coming from.

    #186869

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    can you post your code please

    #186855

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    which is back to my earlier post

    add_action( 'bbp_template_after_forums_index' ,'after_content_hook');
    

    There is </div> after this, but if you start you code with a close div and open a fresh one, then the one at the start of this sentence will then close yours

    #186840
    nwbus
    Participant

    Reply from MailChimp Support – I would agree this is a bbPress issue to address..

    “Thanks for contacting us here in Support. I can certainly understand the concern there, and I’m happy to help out in any way I can.

    In your forum post you mentioned that there is no issue when bbPress is not enabled. Based on that information, the issue seems to be related to a plugin conflict rather than an issue with pulling the RSS feed on our end. I recommend contacting bbPress’ support folks to see if they’re able to shed some light on how enabling the plugin will impact the feed. If not, I recommend trying out another plugin that would allow you to add a forum to your site. It’s possible that another plugin would not have this issue. ”

    I replied asking them if they were sure they were not going to help and they came back to me and said:

    “First, I’d like to clarify how MailChimp interacts with RSS feeds. When using an RSS campaign, MailChimp will pull the RSS feed shortly before the campaign’s scheduled sending time. The RSS merge tags pull content from the XML code for the RSS feed. The app cannot alter the appearance of the content in the feed. It will only display what appears in the code. If you’re not able to disable the plugin, it may be a good idea to consider another feed host to generate a URL that can be used in MailChimp.

    While we’re happy to troubleshoot however we can, we’re limited in our support of third party systems. The bbPress plugin is not developed WordPress, but by bbPress Community. They’ll be the best resource on how to troubleshoot any plugin conflicts between bbPress and the site.

    Please don’t hesitate to write back in if there is anything else I can help with, and I’ll be sure to keep an eye out for any replies.”

    The ball is in your court bbPress – can anyone help me please?

    #186837
    Robin W
    Moderator

    Try this

    a.bbp-fourm-link {
    color: #e4e4e4;
        background: #232323;
        padding: 1px 2px;
        margin: 2px 2px;
        line-height: 1.7;
        border-radius: 3px;
    }
    #186808

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    in index, then

    add_action( 'bbp_template_before_forums_index' ,'after_content_hook');

    #186807
    Robin W
    Moderator

    untried, but try adding this to your functions file

    add_filter ('bbp_before_filter_anonymous_post_data_parse_args' , 'rew_remove_mail' ) ;
    
    function rew_remove_mail ($args) {
    	$args ['bbp_anonymous_email'] = true ;
    return $args ;
    }
    #186805
    denrocs
    Participant

    Hi all

    I’m using the ‘Kleo’ WordPress theme on WordPress 4.7.5 and BBPress 2.5.13, and am trying to change the standard links to forums in BBPress as they are too difficult to read currently, specifically the ‘bbp-forum-link’ class.

    What I’m trying to achieve is a background highlight on each link, with rounded corners, plus a little extra space between them using the following code:

    color: #e4e4e4;
        background: #232323;
        padding: 1px 2px;
        margin: 2px 2px;
        line-height: 1.7;
        border-radius: 3px;

    I have also put this image together of what I’m trying – https://imgur.com/OKO9pZ8

    How would I put this code into the custom style.css file of Kleo to stylise these links, please?

    No link to site as it is on my local host (MAMP PRO 4 if that helps)

    Many thanks

    #186804
    dgssaedfrhes
    Participant

    Hi,
    I want to remove “e-mail” field from the replay form of anonymous users.
    wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.php

    I removed the website field and it works, I’m trying now to remove the e-mail field too but because it’s require filed it doesn’t work!
    If i press “submit” nothing happen at all.

    Okay from what I know i should remove this code

    <p>
    <label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    <input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" />
    </p>

    after that what should I do?! 🙂

    #186782
    dgssaedfrhes
    Participant

    I have wordpress 4.8.1 + bbpress 2.5.13 with fresh installation. No plugin at all. When I click from control panel “All forums” it will redirect me to white blank page.

    What I have tried:
    Re-install the wordpress.
    Re-install bbpress.
    Deleting the whole website and the database and make another one.

    Also if I put the short code of the forum that I made inside any page it will show the forums. but if I clicked on any forum it will show white blank page! Any help here?!

    #186774

    In reply to: bbp_after_main_content

    Robin W
    Moderator

    this <div id=”bbpress-forums”> is used in several places – if you can describe where you want to add, I can probably find the right hook for you.

    Most of the hooks are in the templates, located in

    templates/default/bbpress/

    the main forum uses

    content-archive-forum.php

    which has an action hook of

    ‘bbp_template_after_forums_index’ so if it just the main forum list then

    add_action( 'bbp_template_after_forums_index' ,'after_content_hook');
    #
    would work

    #186767
    jon182
    Participant

    I am trying to add a hook after the <div id=”bbpress-forums”>

    when I try this hook it does not work..

    function after_content_hook(){
      echo "my content";
    }
    add_action( 'bbp_after_main_content','after_content_hook');

    is this hook only available for Twenty Twelve theme?
    can we add a hook after the id=”bbpress-forums” ?

Viewing 25 results - 4,901 through 4,925 (of 32,518 total)
Skip to toolbar