Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,501 through 11,525 (of 32,508 total)
  • Author
    Search Results
  • #148369
    Stephen Edgar
    Keymaster

    Do you know why this fixes the pagination issue when using shortcodes and partnering with a page?

    No πŸ˜‰

    I’m not sure what is going on there, I’ll dig around a bit further and see what I can come up with, it should work for any combination of use cases though once you start adding two shortcodes per page it looks like bbPress may have an issue deciding which shortcode to honour the pagination for.

    #148368
    Jamie Marsland
    Participant

    Hi Stephen,

    Thanks for the in-depth reply πŸ™‚

    It looks like I’ve fixed it by selecting “Forum root should show – Topics by freshness”

    Do you know why this fixes the pagination issue when using shortcodes and partnering with a page?

    Thanks very much for your help!

    Jamie

    #148366
    Stephen Edgar
    Keymaster

    Argh… I can’t reproduce this with either the TWenty Thirteen or Twenty Fourteen theme yet I see the issue on your site!

    All of the following combinations work for me

    Using a page with the [bbp-topic-index] shortcode

    http://example.com/sample-page/ http://example.com/sample-page/page/2/
    http://example.com/support/ http://example.com/support/page/2/
    http://example.com/forums/ http://example.com/forums/page/2/

    Using a page with the [bbp-forum-index] and [bbp-topic-index] shortcode

    http://example.com/sample-page/ http://example.com/sample-page/page/2/
    http://example.com/support/ http://example.com/support/page/2/
    http://example.com/forums/ http://example.com/forums/page/2/

    Not using a page (using native bbPress /forums slug with “Forum root should show – Topics by Freshness”)
    http://example.com/forums/ http://example.com/forums/page/2/

    Any change your using a modified Twenty Thirteen theme?

    How about plugin conflicts?

    Have you tried resetting/flushing your permalinks?

    #148364
    Robkk
    Moderator
    add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
    
    add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
    
    function ja_return_blank() {
    
        return '';
    
    }

    i have this in my functions php in my child theme

    #148363
    greenhoe
    Participant

    Actually after an hour of trying to figure this out and than making this post I just figured it out. Thank you.

    For those that may stumble upon this I was looking for the line

    <?php // bbp_single_forum_description(); ?>

    On line 24 of content-single-forum.php

    #148361
    Stephen Edgar
    Keymaster

    Is this http://www.dexterindustries.com/forum/?reply=2027 the actual permalink from the email, with your permalink setup (which I think is ‘default’) I would have expected the url in the email to be http://www.dexterindustries.com/forum/?topic=install-sh-error/#post-2027

    Your currently using the Twenty Fourteen theme so do the emailed links work correctly with this theme?

    #148357
    Robin W
    Moderator

    Ok, good questions, and I’ve been meaning to write something on this for a while, as I’m always saying ‘drop this in your functions file’

    so new page in the codex

    Functions files and child themes – explained !

    Feedback welcome on what is clear/not clear !!

    #148354
    K-Path
    Participant

    WP 3.9.1
    Theme TwentyTen

    I need to add this snippet of code to my functions file in theme/childtheme. The problem is that I haven’t found anything in Documentation telling me where theme/childtheme is. Also will this be overwritten during the next bbPress update?
    This is the documentation I was given to modify and insert the following code but it assumes that I know where to put it. Help please.

    Layout and functionality – Examples you can use

    I’m trying to change how my breadcrumbs look


    function mycustom_breadcrumb_options() {
    // Home - default = true
    $args['include_home'] = false;
    // Forum root - default = true
    $args['include_root'] = false;
    // Current - default = true
    $args['include_current'] = true;

    return $args;
    }

    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'

    Auriel Kitsu

    #148351
    Stephen Edgar
    Keymaster

    I’m not frustrated, though I fully understand where you are coming from πŸ˜‰

    It is as simple as (to me at least) that bbPress does NOT include ANY support for uploading attachments, this includes any role or capability to facilitate that.

    That said, there is the plugin “GD bbPress attachments” that adds support to bbPress to upload attachments, how it does this and what changes it makes to either bbPress or WordPress roles and capabilities I do not know, as I stated above I have not looked closely at it (i.e. I have not looked at the source code to see how it works)

    If you want attachments in bbPress that is the ONLY solution I know of. πŸ™‚

    Robin W
    Moderator

    on registration, you will need to have auto-registration completed in

    dashboard>settings>general and under membership check the anyone can register tab

    you’ll then find register is added to the login boxes, and you can add ‘/wp-login.php?action=register’ to the login widget

    on your breadcrumb issue see

    Layout and functionality – Examples you can use

    Jamie Marsland
    Participant

    When using shortcodes for topic index the pagination breaks

    Tested on 2 separate sites..the following one with 2014 theme

    http://www.pootle-band.co.uk/support/

    Any ideas?

    Jamie

    #148330
    Micheal
    Participant

    I also presume you still have all your plugins except bbPress deactivated? YES, I turn them off when trying everything.

    Also what theme is it you are using? http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990?ref=Kriesi

    Have you any custom code in a functions.php file running? NO

    #148328
    Stephen Edgar
    Keymaster

    Indeed bbPress does this too πŸ™‚

    Quick answer, copy the templates you need into your theme folder under /bbpress

    More here: https://codex.bbpress.org/theme-compatibility/

    #148327
    Stephen Edgar
    Keymaster

    I’ve got nothing else at the moment…

    Let me think on it for a bit…

    I also presume you still have all your plugins except bbPress deactivated?

    Also what theme is it you are using?

    Have you any custom code in a functions.php file running?

    #148306
    Stephen Edgar
    Keymaster

    The string Keymaster is being translated to Super Administrator(here)

    If you login to http://translate.wordpress.org using your wordpress.org/bbpress.org username and password you can also suggest an updated translation and the Spanish translation team will review the translation and accept it or not.

    The first link above is for the ‘development’ version of bbPress, upcoming 2.6 release, you should also suggest any translation updates for the current bbPress v2.5 here.

    Once you have done the above you should let the Spanish translation team know:

    Contacto

    #148302
    HW
    Participant

    Hi Robin

    Thank you for the functions code you provided to create a custom role. I’ve implemented this and can see it and change the user to the new role – however it doesn’t save it so if i navigate away from the user page and go back it hasn’t kept the role it just defaults back to nothing until i post and then it puts me on participant (which I have enabled to set automatically for new posters). Would you know why that is happening?

    My initial setup was a template file called forum.php which bbpress automatically picked up as my forum page – I didn’t use override of existing bbpress templates within my theme, however when I made the bbpress-functions.php in my theme folder it made the forum stop using the bbpress styles (not sure why) – so i tried adding the overrides for bbpress in my theme folder and that made it not render any html at all just blank body – I’ve ended up copying the stylesheet to my theme folder and naming it something else.

    I’m looking for a user role half way between a participant and a moderator (I’ve called it a Junior Moderator) where they can moderate and flag things and get in touch with users who flagged inappropriate posts and inform them of the actions as well as receive emails or notifications from users flagging the inappropriate content- but they can’t delete or edit other people’s topics, replies and can’t delete forums or add new ones.

    Any help would be appreciated!

    Thanks

    #148299
    Robin W
    Moderator

    WHat can i do?

    you could post a link to a page that works πŸ™‚ I just get ‘this page cannot be displayed’

    But also have you read

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

    #148298
    Robin W
    Moderator

    Try adding this to your functions file, it may/should work – have never tried it in a different language !

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'super administrador' ) {
    	$translated_text = 'administrador';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    #148296

    Topic: Hi

    in forum Themes
    itisix
    Participant

    I’ve been using wordpress for about 6 months now and I’m using the “luminescent lite” theme. I now decided it was time to move my old phpbb board over to bbpress and I’m struggling a bit with the design. So:

    1 – The theme is universal, so not much chance to change much without hard coding or a new theme

    2 – I use categories and forums and it’s messy. I get:

    Category
    Forum nΒΊ 1 (14,54) Forum nΒΊ 2 /1,445 4,754)

    Can I add a paragraph for each forum or even not show the forums at all (they would open on a click on the category).

    3 – No “unread topics” display (icon/different colour)

    Not all is bad. I’m using buddypress and I’m loving it. BBpress ported quite well from phpbb3 and I lost no data at all (except PM’s). Even BBcode is looking good. My users are giving me a hard time, but they are just idiots anyway… lol

    #148280
    Stephen Edgar
    Keymaster

    I’ve not looked at doing do that personally, I saw something recently on adding short codes to WordPress quicktags so you could explore that option (WordPress’ quicktags are the buttons you see here ‘b’, ‘i’ etc)

    Also take a look at the source of bbPress Shortcode Whitelist plugin to see their implementation, and see if you can adapt it for your own needs.

    #148279
    greenhoe
    Participant

    For example I created a shortcode called [card]Card Name[/card] and when you use that shortcode it shows a tooltip for that card, but would like my users to be able to use that in the actual forum.

    #148278
    greenhoe
    Participant

    Thanks Stephan, is there a way to whitelist them manually? I code all the shortcodes myself and I prefer to not use plugins when possible and this seems like something I could do with out a plugin.

    Thanks

    #148273
    Stephen Edgar
    Keymaster

    Try running all the following tools (one by one of course):

    Recalculate the parent topic for each post
    Recalculate the parent forum for each post
    Recalculate private and hidden forums
    Recalculate last activity in each topic and forum
    Recalculate the sticky relationship of each topic
    Recalculate the position of each reply
    Count topics in each forum
    Count replies in each forum
    Count replies in each topic
    Count voices in each topic
    Count spammed & trashed replies in each topic
    Count topics for each user
    Count replies for each user

    That said the topic ID you link to is 9313 and it’s forum ID is 9299 so typically by post ID order the topic is newer than the forum.

    What happens if you move the topic to the correct forum?

    Maybe try create a few test topics and replies in a test forum to see if you can determine exactly what is going on as from what I can see looking at the HTML source everything looks fine though you say it is not πŸ˜‰

    #148269
    Stephen Edgar
    Keymaster

    No, you cannot use shortcodes within bbPress.

    This is more of a security issue than a technical issue, you don’t want users adding login shortcodes and the like into the content.

    There is a ‘bbPress Shortcode Whitelist’ plugin (It’s in the wordpress.org plugins repo) that will allow you to ‘whitelist’ a list of short codes so you can use the ones you approve.

    greenhoe
    Participant

    I was wondering can I use my normal worpdress shortcodes in bbpress? So my users could take say a certain query shortcode and post in the forums and allow it to work?

Viewing 25 results - 11,501 through 11,525 (of 32,508 total)
Skip to toolbar