Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,151 through 17,175 (of 32,501 total)
  • Author
    Search Results
  • #110401
    gloomis120
    Member

    I see. You were suggesting that we change the message to something else.

    Thanks for this code. Ive been waiting for something like this, and was about to start working on a plugin to do the same thing.

    #110351
    redcocker
    Member

    I may understand the reason.

    Because User(User group) wasn’t given “unfiltered_html” capability.

    https://codex.wordpress.org/Roles_and_Capabilities#unfiltered_html

    shooo
    Member

    Ok, hum, all this plugin arent bbpress 2.0 compatible, but bbpress 1.0 compatible.

    for bbpress login you can just put a widget in your sidebar, it’s on your wordpress admin bar ;)

    exactly same for last replies, last forum, …

    bbpress 2.0 isn’t the same thing that bbpress 1.0

    bbPress 2.0 doesnt require integration, it is a plugin to wordpress.

    good luck

    shooo
    Member

    Hi

    try to change your this css

    .num, #forumlist small {
    font: 11px Verdana,Arial,Helvetica,sans-serif;
    text-align: center;
    white-space: nowrap;
    }

    by

    .num, #forumlist small {
    font: 11px Verdana,Arial,Helvetica,sans-serif;
    text-align: center;
    }

    #110399
    gloomis120
    Member

    My final solution was to make bbPress ‘dumb’ when it comes to logged out users. I.e., it could either be clever and say “there are topics, but you’re not allowed to see them until you login” or it could just say “there are no topics”.

    Thanks for the code! I have it working but I dont follow what you mean with the quoted login.

    Is this a shortcode setting, or are you changing the default message of “Oh bother! No forums were found here!”.

    salondailies
    Member

    I am trying to locate the file to add code above my pagetitle on my forums in bbpress. I am not sure where the file is located. I am simply wanting to add a banner of adsense there.

    #106165
    devotee
    Member

    I´m also having problem with this. I´m getting the forum to work, but I have problems getting access to css and template files.

    I have created a child theme from the bp-default theme, which doesnt seem to support bbPress-templates, but still displays everything nicely somehow. Within this child-theme I change css and templates belonging to the bp-default theme and that works fine.

    Now I would like to be able to modify the bbPress part of the site from this child theme aswell, but I cant because the theme has no template files for the bbPress installation (even though it presents the forum very nicely). I can change the css-part by just copying the css from the bbpress.css into my styles.css (it get´s priority). But there is no template-files to copy except those from the bbp-twentyten theme, and if I do, the appearance just breaks :/

    What I want: The forum to look exactly like it does from the default bp-default theme, but with access to template files so I can remove and add stuff on my own.

    Can anyone help me with this one? :)

    #110287
    Steve
    Participant

    Its not natural traffic – it just seems to be bbpress doing repeated head/gets on links that are pasted in posts – it also seems to do it to links out to other sites – well it used 195MB of bandwidth against another server in less than 1 day.

    And I’ve found it does do it if the file is in the same domain – just missed it in the access logs.

    Checking my server access logs the only odd thing I see is

    192.168.0.1 - - [16/Nov/2011:07:59:44 +0000] "POST /xmlrpc.php HTTP/1.0" 200 483 "-" "The Incutio XML-RPC PHP Library -- bbPress/1.1"
    184.168.193.192 - - [16/Nov/2011:07:59:53 +0000] "GET /forums/topic/please-help-with-wordbooker-image-problem HTTP/1.0" 200 42632 "-" "WordPress/3.2.1; http://alt3redegos.com"
    184.168.193.192 - - [16/Nov/2011:08:00:05 +0000] "GET /forums/topic/please-help-with-wordbooker-image-problem HTTP/1.0" 200 42632 "-" "WordPress/3.2.1; http://alt3redegos.com/dev/relaunch"
    184.168.193.192 - - [16/Nov/2011:08:00:12 +0000] "GET /forums/topic/please-help-with-wordbooker-image-problem HTTP/1.0" 200 42632 "-" "WordPress/3.2.1; http://alt3redegos.com/dev/relaunch"
    192.168.0.1 - - [16/Nov/2011:08:00:21 +0000] "HEAD /wp-content/uploads/debugs/wordbookerdebug200406.zip HTTP/1.0" 200 - "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:21 +0000] "GET /wp-content/uploads/debugs/wordbookerdebug200406.zip HTTP/1.0" 200 862574 "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:21 +0000] "HEAD /wp-content/uploads/debugs/wordbookerdebug200406.zip HTTP/1.0" 200 - "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:21 +0000] "GET /wp-content/uploads/debugs/wordbookerdebug200406.zip HTTP/1.0" 200 862574 "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:40 +0000] "HEAD /2011/10/12/the-new-posting-options-explained/ HTTP/1.0" 200 - "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:41 +0000] "POST /xmlrpc.php HTTP/1.0" 200 483 "-" "The Incutio XML-RPC PHP Library -- bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:41 +0000] "HEAD /forums/topic/debug-204-6 HTTP/1.0" 200 - "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:42 +0000] "GET /forums/topic/version-204-released HTTP/1.0" 200 28310 "-" "bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:08:00:41 +0000] "POST /forums/xmlrpc.php HTTP/1.0" 200 446 "-" "The Incutio XML-RPC PHP Library -- bbPress/1.1"
    192.168.0.1 - - [16/Nov/2011:07:46:44 +0000] "POST /forums/bb-cron.php?doing_wp_cron HTTP/1.0" 200 - "-" "bbPress/1.1"

    So why does that bb-cron call at 07:46 appear after the 08:00 activies. What does bb-cron do?

    #107832
    shyaam
    Member

    pimarts: I really need your help in understanding if there is a documentation on how you did it or if you could provide me more assistance directly, that would be great as well.

    kangenguru: When I did it using your technique, I had issues :( the BBPress plugin did not have the bb-config.php, so I used the bb-config that is within the buddypress. Hence, I couldnt get the bb-press 2.0 to work. But again when I did it with what is built into buddypress itself, all the files and folders showed up like they were missing.

    I am not saying that integrating buddyPress+BBPress is bad, but all I am saying is that I did not know how to work with this issue (could be the lack of knowledge). If anyone could help, that would be awesome.

    PS: please do not ask me to google for the documents… I have googled for the past 3 weeks and found several solutions and most of them did not work in my situation. So any help would be greatly appreciated.

    #40743

    Hello,

    We’ve got a really big bbPress forum running at http://realmadridcf.nl.

    At some point though, the site crashed because of heavy query. After some inspection of the SQL slow query log, we found out that it was this query:

    # Query_time: 2.798700 Lock_time: 0.000138 Rows_sent: 5 Rows_examined:

    366600

    SET timestamp=1321347478;

    SELECT SQL_CALC_FOUND_ROWS wpecs_posts.* FROM wpecs_posts INNER JOIN

    wpecs_postmeta ON (wpecs_posts.ID = wpecs_postmeta.post_id) WHERE 1=1

    AND wpecs_posts.post_type IN ('topic', 'reply') AND

    (wpecs_posts.post_status = 'publish' OR wpecs_posts.post_status =

    'closed') AND ( (wpecs_postmeta.meta_key = '_bbp_forum_id' AND

    CAST(wpecs_postmeta.meta_value AS CHAR) NOT IN

    ('8365804','8558913','8558914','8561009','8561010','187','8365804')) )

    GROUP BY wpecs_posts.ID ORDER BY wpecs_posts.post_date DESC LIMIT 0, 5;

    You can see that this query is obviously way too heavy: Rows_sent: 5 Rows_examined:

    366600…

    After some examination we found out that the query was made through bbp_forum_functions.php – line 923 – function bbp_pre_get_posts_exclude_forums.

    Has this problem ever occurred before? Is there someone with a solution?

    Regards,

    Tommy

    #110208
    Trobee
    Member

    I think you misunderstood my question. I have my roles and capabilites set up, I am just missing the php code to display the role in forum posts, (ie where it says member under my name and moderator underneath yours)

    #106163
    WhiteRau
    Member

    as you like. my blogs and forums are all working. no need to be offended! i just found that after reading this thread *most* people’s questions came from not reading the sticky all the way through. and you are correct: the sticky doesn’t mention merging files. i read that elsewhere (i’ll try and recall where). does it matter? regardless: what i outlined works.

    as for duplicates, they override eachother. there’s duplication, overriding and modifying all over the place in WordPress and bbPress. this is nothing new. all that matters is precedence at the end of the day.

    nitpicking is pointless and unhelpful. take it or leave it. don’t really care. all i’m interested in is helping people sort this out. my way works. end of story. if you can indeed write a new plugin, then by all means give ‘er! :) yours might be the halcyon we’ve all been hoping for! that’s the beauty of all this stuff! :D

    WR!

    #106161
    WhiteRau
    Member

    okay. this is an addendum to my previous post, something was nagging at me and it has to do with the way bbPress’ functions enqueue the stylesheets.

    you are going to have problems. i forgot a CRITICAL MODIFICATION. and it may ONLY apply to CHILD THEMES. i haven’t finished testing it on standalone themes, but put it in your watch folder…

    if you look at the bbPress’ functions, near the middle, there is a section that enqueues stylesheets. i’m not sure why this is there because, in essence, it COMPLETELY OVERRIDES any style changes you make to your child theme’s CSS. what it does is load ANOTHER copy of the parent-style’s stylesheet with a version number tacked on. this forces a precedence over your own style.css, essentially making the newly loaded CSS sheet last-defined. and we know what that means.

    so. the fix:

    1) find this line in your functions.php file (the one you have the merged bbPress functions.php code in):

    wp_enqueue_style( ‘twentyten’, get_template_directory_uri() . ‘/style.css’, ”, $this->version, ‘screen’ );

    it’s on line 149 of the original functions(2).php file from my post above, so to make it easy to find, you can do some quick math to find the relevant line number in your (merged) functions.php file. (hope that made sense…)

    2) comment it out by simply adding ‘//’ in front of it.

    3) reload. your style.css sheet will now be dominant and the css/bbPress.css file will act in a better support role, as it should.

    i understand the long-view logic of why this function does what it does, but at a non-galaxy-class-developer level, it makes for massive headaches… and you still have the fun headaches with the bbPress tags…

    hope this was also useful. it will save you going bald.

    WR!

    #106160
    WhiteRau
    Member

    i got mine working almost without effort. i literally read the sticky at the top of this thread and it worked.

    a couple of things to note, that people are stumbling over:

    1) READ THE STICKY. don’t peruse it. READ IT.

    2) the sticky actually says the same thing twice. COPY the CONTENTS of wp-contentpluginsbbpressbbp-themesbbp-twentyten to YOUR theme’s folder, whether it be a child theme or not. in my case the path was wp-contentthemesSuperTurboTheme.

    3) it’ll ask it you want to overwrite ‘style.css’. don’t. just let the OS rename it to ‘style(2).css’.

    4) ditto for the ‘functions.php’ file. it should, temporarily, be ‘functions(2).php.

    5) MERGE the two functions.php files. i just copy/pasted everything from ‘functions(2).php’ to the bottom of the ‘functions.php’ file. just like in the sticky. i didn’t merge the ‘style.css’ and ‘style(2).css’ files. but i DID make sure the ‘Tags:’ line in my ‘style.css’ file included ‘bbPress’ as the first item, just to be sure. it was an old requirement that doesn’t seem to have been deprecated anywhere and i’m a belt-n-suspenders boy…

    6) at the very top of your newly expanded ‘functions.php’ file, add the line ‘add_theme_support( ‘bbpress’ );’ to the very top. just like in the sticky. EVEN THOUGH THERE IS A SIMILAR LINE IN the bbPress’ functions.php file, YOUR functions.php file MUST HAVE THIS LINE as well. EVEN THOUGH THEY ARE MERGED.

    7) reload.

    don’t get clever. don’t reinvent. don’t assume anything. just follow the steps and you should be fine.

    your only challenge now is figuring out how to do your CSS. the ‘style.css’ will control the WordPress portion of the site. it CAN handle the bbPress styling as well, but i prefer to leave it to bbPress.css (located in the ‘css’ folder you copied over) to handle the forum styles. its a bit of a headache sorting out the bevy of tags that get generates, but hey, it works. and i DO mean headache.

    not to beat a dead horse, but the real challenge IS sorting out the secondary CSS. i recommend Firebug to help you drill down the the styles. the byzantine class structure can make your head spin. try using the elements that are relatively easy to spot. and REMEMBER THIS: NOT ALL CLASSES ARE IN THE STYLESHEET. this can really toss a wrench into things. they are added for future slice-n-dice, but seems overkill to me. low-order CSS has proved easier for me. i can’t foresee a reason to slice the site up so finely…but it’s futureproofed to the wheel-wells! :)

    good luck. hope this was useful. i apologize if i missed anything. i tried to be thorough AND simple.

    feel free to correct me if i stepped wrong somewhere. this is what worked to me.

    WR!

    #40721
    Philip John
    Participant

    I just spent hours figuring this out so I thought I’d try and save others the bother by sharing it here.

    The basic aim was to hide the contents of topics in a bbPress 2.0 forum from any users not logged in. This makes for a nice private forum.

    I found suggestions about making forums hidden, private and so on but none of them really worked as they hid them for logged in users too.

    My final solution was to make bbPress ‘dumb’ when it comes to logged out users. I.e., it could either be clever and say “there are topics, but you’re not allowed to see them until you login” or it could just say “there are no topics”.

    The following code does the latter, dumb version by hooking into the forums, topics and replies loops.

    Code:
    function pj_hla_logged_in_topics($have_posts){
    if (!is_user_logged_in()){
    $have_posts = null;
    }
    return $have_posts;
    }
    add_filter(‘bbp_has_topics’, ‘pj_hla_logged_in_topics’);
    add_filter(‘bbp_has_forums’, ‘pj_hla_logged_in_topics’);
    add_filter(‘bbp_has_replies’, ‘pj_hla_logged_in_topics’);

    I simply placed this within my theme’s functions.php but you could just as easily wrap this in a function.

    Hope that helps someone!

    #108224
    Dan Milward
    Member

    That is a really good idea.

    I wonder if it would make more sense to add hooks or filters so that it could be made to integrate with the Achievements Plugin?

    Would that be cool?

    http://achievementsapp.com/

    If people think that is cool then we should probably find a developer willing to do a days worth of paid work on this to make this and all the other suggestions happen :)

    #110296
    GregKeen
    Participant

    Sure, but it’s in Hungarian. :) Also, it’s a work in progress (the live site still uses the old bbPress which came with an older BuddyPress), so don’t judge!

    The topic page which shows the wrong odering is located at: http://beta.gitartanfolyam.hu/forums/forum/bazar/

    To help with the Hungarian wording: the last column shows freshness, the words “napja” means “days ago”.

    Thanks for any help in advance!

    #110294
    GregKeen
    Participant

    Yes, I have, but it didn’t help. :( Thanks for the suggestion though!

    #107357

    @thecolab – A lot of the things you mention are more functions of a complete site than they are functions of only a forum. As such, bbPress can only predict so much of how any theme is setup, and sticks hard to the WordPress conventions of shortcodes, widgets, and theme hierarchy.

    Since WordPress doesn’t have ‘section specific widgets’ neither does bbPress. Some people want full-width forums, others do not. bbPress comes with some examples on how you can make some of these things happen, but it doesn’t yet work for 100% of all themes and sites all the time.

    Really what bbPress needs is for someone (other than me) to start developing themes and widgets for it. Until that happens, some things will remain balkanized my design to appeal to the greater 80% of WordPress users.

    In addition, having someone contributing code patches and new features is also helpful. For a while Gautam was able to consistently help, and Jared helped with Genesis integration. If someone wants to dream up new features and code them under my tutelage, I’m happy to help someone else get things done.

    #107356
    thecolab
    Member

    Glad to see BBpress so tighly integrated with regular wp now, still it seems getting it running smoothly out the box is a bit of a challenge for the non-developer.

    For instance, using the shortcodes scenario to list forums in a regular wp page is fine, but then when you click any of the forums the bbpress template is used instead, so any sidebar content which might have been added like logins, topics etc needs to be placed into the bbpress templates as well.

    any advice on how to set it up so we can have a forums home, with all the bbpress widgets in the sidebar, and then maintain those throughout the forums.

    Also off the bat the homepage of the forums doesn’t even have login or register buttons.

    Finding some of the simple things you would expect missing.

    #110258
    warezjasz
    Member

    Yes, I found one theme where everything works fine. (short codes can be placed in sidebar by pulling there text bar and shortcode on it)

    How to make it work on other themes?

    OR….

    How to make new widgets for bbpress plugin? There is default login, list of topics etc, but I need let’s say Tag Cloud on the sidebar.

    mesayre
    Member

    Hey folks. Got back up and running again. It is a load order issue. WP was attempting to load my theme files before it loaded the bbp core files. Since the class BBP_Theme_Compat is referenced in core, this makes wordpress asplode.

    I disabled the theme via FTP to get access to WP admin, then disabled bbpress. Then re-enabled bbpress and lastly re-enabled the theme. Seems to have solved it for now. If I had better WP/php chops I’d know how to write some code that ensures BBP core always loads before any themes. But I don’t. Maybe that can go on the list for next release?

    Have a good one.

    #110350
    redcocker
    Member

    I tried to check about other tags.

    'span' => array(
    'class' => array ()),

    I allowed “span” tag and “class” attribute successfully.

    'code' => array(
    'class' => array ()),

    “class” attribute was removed.

    #40713
    redcocker
    Member

    I am using bbpress2.0 (bbress 2.0.1 plugin) on WordPress 3.2.1 and want to allow “pre” tag and “class” attribute for non-admin users.

    I modified /includes/kses.php in the WordPress.

    I placed fllowing code in the definition of $allowedtags.

    'pre' => array(
    'class' => array ()),

    Nevertheless, “class” attribute was removed.

    So, <pre class="value">my code</pre> was replaced with <pre>my code</pre>.

    Any thoughts?

    Thank you.

    gourou
    Member

    The error when I tried to update to 2.0.1 was “Cannot remove old plugin” or similar.

    The result was the same as above

    Fatal error: Class 'BBP_Theme_Compat' not found in /var/www/karting/www/wp-content/themes/karting2011/functions.php on line 46

    I deleted the bbpress folder from wp-content/plugins and then uploaded version 2.0.1 from here:

    https://wordpress.org/extend/plugins/bbpress/

    To the same place as the old folder. The template for bbpress in my theme were untouched.

    This got the site working again.

Viewing 25 results - 17,151 through 17,175 (of 32,501 total)
Skip to toolbar