Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,501 through 11,525 (of 32,504 total)
  • Author
    Search Results
  • #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?

    Robin W
    Moderator

    These are exactly the questions I was asking 6 months ago, so I sense your frustration !!

    I was expecting to write some stuff on filtering, but having had a quick look at ‘bbp_new_topic_handler’ this doesn’t have any real filtering capability, although it does have some url filters.

    Fuller than probably needed answer for the benefit of others !
    Ok so you can usually
    either filter a function either using bbp_parse_args where you want to change some paramters that are being passed to wp-query

    or filter the whole function – if it ends with ‘return apply_filters(..)’ then you can easily copy the whole function and alter it within your child theme, just rename it slightly and then add a filter
    so a fictional function called ‘add_name’ in bbpress ends with
    Return apply_filters (‘add_name’, $name) ;

    you simply copy the whole function and change ‘add_name’ to say ‘my_add_name’ then add a line
    add_filter (‘add_name’, ‘my_add_name’)

    and wordpress will use your function to replace the original.

    But for your function, there is a url filter near the edn but otherwise this is a function that does, so no neat parameters that are replaceable at the end !

    I searched bbpress for where this function is used, and in includes/core/actions.php it is added as an action to wherever bbp_post_request is used

    Searching for that gets me a bit confused, as I’m not familiar with what this does, and have limited time to chase it down.

    Now, having written all that as I was going along, if I were you I’d do one of two things

    1. Go further back and find what is calling the function, and then change that. If it is a template, you can alter that in a bbpress folder within your theme to call your function instead, and neither will get overwritten by upgrades.

    2. There is no problem in changing core bbpress files as long as a) you are happy you know what you’re doing and b) you make a note of the changed function.

    Then on each upgrade, you’ll need to look at whether any code in the function has changed, and if not just overwrite it again. If it has changed, then you’ll need to redo your amendment taking into account the new code. But you sometimes need to do that anyway for a child theme function where bbpress is dealing differently with it.

    Yes changing core is ‘frowned’ upon, but only because people do it and then get upset when it is overwritten and they can’t remember what they changed !! Do it with knowledge and you’ll be fine !

    After all it just some code that someone’s written, and any ‘rules’ are just made up and have no authority !

    Jerry
    Participant

    I have a general question. I am trying to modify the behavior of the function bbp_new_topic_handler, which is located in bbpress/includes/topics/functions.php. I use child themes extensively. I have not found a way to modify functions.php within my child theme. After reading the codex, and various searches, I THINK that I need to take the entire function, bbp_new_topic_handler, and re-declare it within bbpress-functions.php. I can’t declare a function twice, so that implies I need to remove it from functions.php within the above mentioned directory. Or perhaps I am on the wrong track?

    What I fear is making changes directly to functions.php and then having those changes wiped out in the next bbpress update. I can’t use filters because I intend to modify how the function works, not just the wording.

    So I suppose my question is as follows: How does one go about making changes to functions within a functions.php file, located in the includes directory? Does someone have a “best practice” recommendation for doing this?

    Thanks.

    #148250
    Stephen Edgar
    Keymaster

    Take a look in includes/forums/template.php around Line#676 at bbp_forum_get_subforums()

    #148247
    Stephen Edgar
    Keymaster

    This is a theme issue, your theme isn’t letting bbPress inject it’s template styles.

    Ceate a file in the root of your theme called bbpress.php and putting the following code into it

    
    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
Viewing 25 results - 11,501 through 11,525 (of 32,504 total)
Skip to toolbar