Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,201 through 7,225 (of 32,505 total)
  • Author
    Search Results
  • #169888
    gptxffa
    Participant

    What happened? The index doesnt display properly anymore. here is what I have in my functions file

    function recent_bbpress_topics() { 
     echo do_shortcode("[bbp-forum-index= search='no'] [bbp-topic-form]");
     }
    
    add_action('bbp_template_after_topics_index','recent_bbpress_topics');
    
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'custom_bbp_access_topic_form' );
    function custom_bbp_access_topic_form( $retval ) {
    
    	if ( bbp_is_forum_archive() ) {
    		$retval = bbp_current_user_can_publish_topics();
    	}
    
    	return $retval;
    
    }

    Its always worked in the past no problem. I found that if i deleted = search='no' then it works again. I would however prefer to not display the search bar because its redundant. Just not sure what changed to stop that original code from working.

    Thanks

    #169881
    Robkk
    Moderator

    It is usually recommended to not edit the core plugin files. Use a custom css plugin and add some of these styles and customize it to how you want it.

    1.

    
    .bbp-forum-content p,
    .bbp-topic-content p, 
    .bbp-reply-content p {
        font-size: 16px;
    }

    2.

    .bbp-topic-author a.bbp-author-name,
    .bbp-reply-author a.bbp-author-name {
        font-size: 14px;
    }

    3.

    Depends on what Avatars exactly? Plus CSS is not the best way to adjust this.

    #bbpress-forums div.bbp-forum-author img.avatar,
    #bbpress-forums div.bbp-topic-author img.avatar,
    #bbpress-forums div.bbp-reply-author img.avatar {
        border: none;
        max-width: 80px;
        padding: 0;
        margin: 12px auto 0 auto;
        float: none;
    }

    4.

    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    	background-color: #fff;
    }
    
    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    	background-color: #fbfbfb;
    }
    #169880
    Robkk
    Moderator

    Copy the archive-forum.php template from the extras folder and place it into the root of your child theme and customize it to your liking, make sure that the template code is similar to the one bbPress is inheriting from your theme.

    Just make sure the get_sidebar() code is in your archive-forum.php template while the rest of your forums are full-width.

    Getting Started in Modifying the Main bbPress Template

    #169876
    Robkk
    Moderator

    On your profile page and your forum index page it shoudn’t have this layout by default. It is most likely happening because of the template that bbPress is inheriting. You would need to follow this guide and create a bbpress.php file and place it in your child theme.

    Getting Started in Modifying the Main bbPress Template

    Here is an example bbpress.php file for your Canvas child theme. It is what I created straight from Canvas original theme code.

    https://gist.github.com/robkk/c7ec3a0f2d730f5cb10d

    #169872

    In reply to: How to show topics

    Robkk
    Moderator

    Here is some CSS to fix the avatar issue I see on your forums. Place this custom CSS anywhere where you could like in a child themes style.css file, or in a separate custom css plugin.

    #bbpress-forums p.bbp-topic-meta img.avatar,
    #bbpress-forums ul.bbp-reply-revision-log img.avatar,
    #bbpress-forums ul.bbp-topic-revision-log img.avatar, 
    #bbpress-forums div.bbp-template-notice img.avatar,
    #bbpress-forums .widget_display_topics img.avatar,
    #bbpress-forums .widget_display_replies img.avatar {
        float: none;
        margin-bottom: 0;
        vertical-align: middle;
        border: 1px solid #ddd;
    }
    
    #bbpress-forums .avatar {
        width: auto;
        height: auto;
        margin-left: inherit;
        display: inline;
    }

    As for what you wanted, you seem to have it by making sure a topic does not have a parent post (forum).

    You may also need to follow this guide to fix your /forums index page, instead of doing the workaround that you have already.

    Getting Started in Modifying the Main bbPress Template

    #169871
    Robkk
    Moderator

    @stewagner

    I had a feeling you were using that plugin, that is why you linked to the single reply post.

    There is a little shortcode you have to change in the plugins settings for the notification. It should have it this way by default, but it does not. Might need to contact the plugin author to set that as the default setup.

    I think you have to change [reply-url] with [reply-replyurl] in the plugins settings. It adds the settings to bbPress default settings in Settings > Forums.

    #169864
    Robkk
    Moderator

    This is not really a bbPress issue as the plugin just piggybacks off of WordPress’ core code, could be fixed server side with the explanation in the codex guide, or by using an smtp plugin though.

    There may be many factors to the emails being sent to the spam folder. There are some solutions outlined in the bottom of this WordPress codex guide piece for sending the emails correctly while using the hosts.

    https://codex.wordpress.org/FAQ_Troubleshooting#E-mailed_passwords_are_not_being_received

    Other common suggestions of fixing this issue is using SMTP and seing any emails on your site that way and making sure that you use an email address that has the same domain as your site.

    Robkk
    Moderator

    Guys some devs and I are having a hard time duplicating this issue.

    This is how I tested it and come across no issues.

    WordPress: 4.4
    bbPress: 2.5.8

    I tried these default WordPress themes

    2013, 2014, 2015 and 2016

    I tried these forum structures.

    Category > Forum > Forum
    Category > Forum > Private: Forum
    Category > Forum
    Category > Private: Forum
    Forum > Forum
    Forum > Private: Forum
    Category > Category > Category > Forum
    Category > Category > Category > Private: Forum
    Category > Category > Forum
    Category > Category > Private: Forum

    With the postname permalink structure (since it is most commonly used and I want to try to duplicate it)

    Other things I like to ask is if this is a theme side 404 message being outputted or the normal no topics/forums found here message bbPress outputs like the one below (it could be different if you are using a different language than English for bbPress of course).

    Oh bother! No topics were found here!

    If you guys can help ask a few questions like the ones that @casiepa asked and these additional ones.

    What is your bbPress version?
    Have you already tried troubleshooting for a possible plugin/theme conflict?
    Are you guys using BuddyPress groups for group forums?
    Are the issues only happening on private forums? (Like @kpdub has said)
    Did you try the postname permalink structure?

    Another thing I may suggest to help try to gather information for the developers, is to try to duplicate the issue yourself. Try to duplicate the issue again on a local installation on your computer. If you can tell us step by step to duplicate it.

    Creating a Test Site

    #169847

    In reply to: bbp_new_forum hook

    Antipole
    Participant

    I am still looking for a solution to this – I want to subscribe users to a new forum when it is created.

    The code above fires when you open the New forum admin page. I guess a new post is created at that time so an object ID is allocated. If you don’t go through and publish, the entry must then get deleted. Anyhow, if you do create the forum by publishing it, the subscriptions do not get created. My guess is that it is too soon in the process of creating a forum to add subscriptions to it.

    I have tried hooking onto the publish action but not got it to fire there. I really need to find a hook much later in the process. As stated above, the bbb_new_forum hook only fires from the front end and that limits it to creating group forums, as far as I can see.

    Any pointers gratefully received. Meanwhile I am having to manually activate some code and run it once after creating a new forum and then deactivate it – very error prone and easily forgotten.

    #169796
    convictedvapour
    Participant

    What I was mainly after was adding the little yellow text notice box that’s there on creating or replying topics. Like the one that states Your account has the ability to post unrestricted HTML content. within the yellow notice box.

    If you want the same you can add this is using my example above. Just replace Example text here. text with your own custom notice. Hope this helps someone out!

    <div class="bbp-template-notice">
    <p><?php _e( 'Example text here.', 'bbpress' ); ?></p>
    </div>

    Regards,

    Gareth

    #169795
    convictedvapour
    Participant

    Right then after some trial and error:

    You can add into the footer on the main bbpress forum page by editing the following file:

    \wp-content\plugins\bbpress\templates\default\bbpress\content-archive-forum.php

    Just add whatever you need where I have put <p>Example text here</p> on the following code

    <?php endif; ?>
    <p>Example text here</p>
    <?php do_action( 'bbp_template_after_forums_index' ); ?>
    </div>

    Hope this helps others who need this advice!

    Regards,

    Gareth

    #169794
    convictedvapour
    Participant

    @schwarzkopfclub Thanks you have been a legend and set me well on my way. Also gave me the terms to google and find a plugin that will help generally also:

    What The File is the best tool to find out what template parts are used to display the page you’re currently viewing!:

    https://wordpress.org/plugins/what-the-file/

    Also on the codex:

    Getting Started in Modifying the Main bbPress Template

    Thanks again,

    Gareth

    #169791
    dfeenstra75
    Participant

    Hello,
    I have a problem with bbpress.
    a couple of days ago a problem started with making accounts on my site.
    When a new user is making an account he receives an e-mail with an activation link in that mail.
    When he clicks that mail he is comming on a page with an box where he needs to add an activation code.
    But in the mail there is no activation code. only a link like: http://website.nl/activate/79d6b96dbaaf352d993dafae852f9b26/

    So looks like the account should be activated direct from that link but this is not working.
    Also when i enter the code 79d6b96dbaaf352d993dafae852f9b26 again in the field where is aked for activation code this is not working.
    So people can not make new accounts at this moment on my website.
    Who can help me solve this?

    Kind regards

    Daniel

    latest wordpress and bbpress version installed

    #169786
    raphque
    Participant

    I have a site in 3 languages, made with the Enfold theme and the WPML plugin.
    English: hidden
    French: default
    Dutch

    In the footer widget area of the theme, I added the bbPress “Recent Topics” widget, and it is only showing in the French site. In the Dutch site, the footer widget area is empty.
    This also happens in sidebars.
    Other (bbPress) widgets work perfectly in both languages.

    What can I do to solve this? Where can I find the code to change it?

    I’m using WordPress 4.4, bbpress 2.5.8 & WPML 3.3.3

    Robkk
    Moderator

    Your forums are here, I don’t know if your theme hardcoded the forum tile url or not, so you may need to contact your theme author.

    yoursite.com/index.php/forums/

    #169757

    In reply to: Buddypress Profile

    Robkk
    Moderator

    I think it is your current blog theme that has customized BuddyPress templates and css styles. The theme authors could be following this guide

    Theme Compatibility & Template Files

    #169749
    Robkk
    Moderator

    I cannot replicate this issue on the default single site installation of bbPress, or on multisite, using the bbPress forum index shortcode.

    Glad you fixed it using a tool?? Do not know for sure what tool exactly you are talking about though.

    #169748

    In reply to: Wrong Sidebar

    Robkk
    Moderator

    Wait do you want full width or with a sidebar??

    Making Forum Width 100% in point

    Does the bbPress wp tweaks sidebar work on a single forum or single topic page? It may not work if you placed the forum index shortcode in a custom page.

    #169743
    Robkk
    Moderator

    ^That CSS code should help remove the annoying notices, but keep the important ones.

    #169736
    Pascal Casier
    Moderator

    Hi,
    Some questions to you:
    – You have 2900 replies, how do you know to what topic they relate to ?
    – If you have 1400 topics and e.g. 5 forums, how do you know to what forum a topic belongs ?
    – To show some stats, how do you know when a topic or forum was last changed ?
    => All answers are the same: It’s coming from the meta data of the posts. So this data really needs to be filled.

    Please refer to the bbpress codex for custom imports (https://codex.bbpress.org/getting-started/importing-data/import-forums/custom-import/).
    I think you will find what you need overthere, if not, give us a shout here again !

    Pascal.

    #169732
    NejcL
    Participant

    Dear all,

    I am trying to achive similar look at forum listing as they are on phpbb forums:

    I found plugin that add a line at forum tittle which are unread by the user,and they are marked with one blue vertical stripe. But that isn’t what I was looking for. I would be very happy if some one will help my problem.

    1.I would like to add an icon beside the name of subforum and the forum name must me like on the picture like just a tittle and look seperated from subforms.

    2.Secondly after the 1. point I would like to create a unread/read diffrent icon like if the subform is unread the icon would be green if it is read the icon would be green.

    I know the whole point is in style.css but any help or basics steps will be helpfull.
    Thanks for any link, code, plugin, style.css, etc.

    Br Nejc

    #169728
    Pascal Casier
    Moderator

    Had a quick look and it’s using standard div naming, so I looked at how I did it in one of my plugins. The below css should hide the message, but not only that one as also these ones will be gone:
    – Oh bother! No topics were found here!
    – You must be logged in to create new topics
    – Your account has the ability to post unrestricted HTML content

    .bbp-template-notice {
    	display: none;
    }
    
    .bbp-template-notice.info,
    .bbp-template-notice.error,
    .bbp-template-notice.important,
    .bbp-template-notice.warning {
    	display: block;
    }

    Hope you can decide…
    Pascal.

    #169725
    Tom
    Participant

    All my quotes are broken on my forums now, its showing the quote code and not formatting after updating to 4.4

    #169714
    Mei Ling
    Participant

    Hello,

    whant kind of code should I use in my child theme to get the last visit in the BBPress profile?

    I thank you in advance

    Regards

    Mei Ling

    #169710
    bschaich
    Participant

    Looks like bbpress codes are not computing if they appear on a front page.

    Reproduction:
    1. Make a new page and name it foo
    2. Enter the string “[bbp-forum-index]”
    3. Check the preview of page (Everything should work as expected)
    4. Save the page and publish
    5. Goto settings -> Reading and set the page “foo” as front page
    6. Call your site.

    What should happen is that nothing appears on the page, except its title.

    Versions: WordPress 4.3.1, bbpress 2.5.8
    Wordpress is running in MU mode. Dont know if this is really an issue.

    Man, this took me a million calls of that front page to get it. It might also have destroyed the structure somehow, as somtimes I had the impression that bbcodes did not work at all. This went away after using the restructure feature/tool.

    With best regards,
    Benny

Viewing 25 results - 7,201 through 7,225 (of 32,505 total)
Skip to toolbar