Search Results for 'code'
-
AuthorSearch Results
-
October 12, 2012 at 7:34 pm #118786
In reply to: How to remove Avatar Title
Jared Atchison
MemberYeah unfortunately there is no global filter for that. The code above is pretty much what you will need to do on all instances, but you just need to track down the other filters.
October 12, 2012 at 4:28 pm #118770zaerl
ParticipantIt’s quite strange. I forced 1.000.000 on bbp_get_topic_pagination with no luck. A “find . -name ‘*.php’ | xargs grep 1000” didn’t show the value hardcoded anywhere.
October 12, 2012 at 3:14 pm #118766In reply to: Very simple question — changing font size
John James Jacoby
Keymaster@renai42 – Thanks for the feedback. The great thing about bbPress being open-source is you’re able to fix the things you don’t like on your own with Subversion patches via our Trac.
Sorry you’re finding the CSS to be complicated. There are some compromises we made to be able to make bbPress as good as it can with every possible WordPress theme available. As such, some CSS rules are more strict than others, and we tend to have things wrapped in ID’s to allow groups of content to be styled and/aggressively reset.
The staff here are volunteers, every one of us. We operate under the assumption that if you’re in the code, asking code questions, that you’re comfortable taking on something new and foreign. I’ll defend the code here though, since bbPress’s code is nicely documented and orderly.
Volunteer community members represent the project, but they also represent themselves. If someone’s made you feel bad, that’s between you and them. We’re all adults here, and it doesn’t benefit anyone to talk above or below anyone else; when it happens, it weeds itself out pretty quickly.
Regarding CSS specifically, it’s in the name: it cascades down. This means you’re able to add whatever rules you’d like in the stack, and the browser will interpret those new rules in kind. If it’s not obvious enough to you, that just means you learned something new today. That’s not anyone’s fault, or anything that anyone should be upset about on either side.
Again, thanks for your feedback; if you’d like to talk privately about a specific matter or person, contact me privately (a Google search should bring up multiple ways to do this.)
October 12, 2012 at 8:14 am #118752In reply to: How do I keep users out of the WP admin back-end?
wolfie-79
ParticipantWhat would those shortcodes be Jare Datch? I’m to interesting on making sure they never see the backend.
October 12, 2012 at 6:26 am #118746Garindan
ParticipantOk simple question… What file/s do I need to add code to so it affects every bbpress page?
style type = ‘text/css’>#breadcrumbs { display: none !important; }/style>
Sorry, couldn’t work out how to display code without it hiding style tags
October 12, 2012 at 2:30 am #118741In reply to: Ask for a plugin
smiga
ParticipantThere is one “must have” plugin missing on 2.x, what worked well on 1.x -> unread post plugin. Its already discussed under this topic https://bbpress.org/forums/topic/adding-view-unread-posts-plugin/
In 3 words describing – when users logs in it sees unread topics in different color (new topics and topics with new replies counting from last user visit). When he enters topic its automaticaly redirected to last unread post inside topic.
Old 1.x source code you can see here -> http://paste.php.lv/720a5c85e7a31f117a104d2a14ce368f?lang=php its just one file.October 11, 2012 at 5:37 pm #118728In reply to: Adsense Plugin
ntmedia
ParticipantYes, that`s the right plugin, but i insert the code manuelly at loop-single-reply.php of bbpress right after the reply-content is called.
Thanks for your help
October 11, 2012 at 5:15 pm #118727In reply to: Very simple question — changing font size
renai42
Participanthey mate,
this is precisely the kind of overly simplistic response which turns people off using bbPress. Your suggestion is pretty much contained in the bbPress documentation already and is less than useful.
Sure, you need to copy bbpress.css to the right directory and edit it. But what you fail to mention, and what is mentioned nowhere in the bbPress documentation, is that many of the font specifications are not actually listed in that CSS file — you need to puzzle out the CSS entry yourself and add a new CSS entry, not edit an old one, to change the font size.
I spent three hours working this out last night. The correct entry is:
bbpress-forums .bbp-topic-content p,
bbpress-forums .bbp-reply-content p {
font-size: 12px;}
I have seen this same response from the moderators on the bbPress forum dozens of times as I searched it last night. This same arrogance — ‘just copy the CSS file and edit it’. Technically you’re right, but without any detail or documentation around bbPress, this suggestion comes across as the contempt of an experienced web developer for someone who is, in their eyes, a ‘n00b’.
I operate a major WordPress site and edit its CSS files daily. And yet, the CSS for bbPress is hideously complex and hard to understand. I suggest that you guys modify your attitude and start looking for actual solutions to people’s problems … especially around making default themes easier to customise. Otherwise, bbPress, which is an awesome solution to a long-held problem for WordPress site owners, will remain the little-used forum software that it is.
Cheers,
Renai LeMay
Publisher, Delimiter.com.auOctober 11, 2012 at 3:20 pm #118722In reply to: Adsense Plugin
jezza101
ParticipantI think it would be a case of changing the order of the two filters? So when you apply a filter you have to set the priority:
https://codex.wordpress.org/Function_Reference/add_filter
If you change the priority of the filter on that plugin to be less than the filter on mine it might then work in the right order.
Which plugin are you using? Is it this: https://wordpress.org/extend/plugins/kk-i-like-it/
I can have a look if I can get the right plugin to test…
October 11, 2012 at 2:45 pm #118720In reply to: Very simple question — changing font size
Jared Atchison
MemberCopy the
bbpress.cssfrom the bbpress plugin directory toyourtheme/bbpress/bbpress.cssand then edit the CSS/font size from there 🙂-
This reply was modified 13 years, 10 months ago by
Jared Atchison.
October 11, 2012 at 2:43 pm #118718In reply to: Automatic Notifications and 'From' Address
Jared Atchison
MemberI believe bbPress uses
wp_mail()and does not explicitly set a “from”, so wordpress@domain.com is used by default.October 11, 2012 at 8:12 am #118697Topic: Automatic Notifications and 'From' Address
in forum Troubleshootingaussi
ParticipantHi all,
When email notifications are sent from our bbPress deployment, the ‘From’ address is being set to ‘wordpress@[domain]’. Looking into the WordPress core code (v3.4.2) in pluggable.php, this is done on line 336 when no ‘From’ header is passed in to the wp_mail() function. We’ve reviewed the bbPress configuration and can’t find anywhere that this can be set, have we missed a setting somewhere?
Note our site is using WordPress 3.4.2 Multisite with bbPress 2.1.2.
October 10, 2012 at 6:49 pm #118688In reply to: 500 error when logging in
emike09
ParticipantLooks like I’m getting the following error:
PHP Warning: require_once(bbp-converter.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home1/mojaveun/public_html/blog/wp-content/plugins/bbpress/bbp-includes/bbp-user-functions.php on line 1466October 10, 2012 at 6:21 pm #118682In reply to: class="reply" added to body
Jared Atchison
MemberThis should do the trick. Just drop it in your theme’s
functions.phpfile.October 10, 2012 at 6:05 pm #118679In reply to: class="reply" added to body
Jared Atchison
MemberThe body classes are applied dynamically using the WordPress
body_class()function (https://codex.wordpress.org/Function_Reference/body_class)You can use a little trickery to hook into it and remove classes, but if possible I probably won’t do that.
Why are you wanting to remove that body class?
October 10, 2012 at 5:46 pm #118671Jared Atchison
MemberThere is no way to simply just stick the entire forum in a specific page.
You can use the bbPress shortcodes (https://codex.bbpress.org/shortcodes/) to create a page that houses a forum index, but that doesn’t stick everything in that page.
Even if you restrict a page that you create with a shortcode, bbPress generates all its own pages such as the forum/topic/reply index pages, user pages, etc.
You can certainly restrict the forum to certain memberships, but it’s going to require some custom code and a little elbow grease. It’s not something that you will be able to do by just marking a checkbox in the WishList settings.
October 10, 2012 at 7:56 am #118666In reply to: Adsense Plugin
ntmedia
ParticipantHey jezza, great Plugin – just what im looking for and it works perfect.
But I have an little issue especially with my theme, because i also added the KKLike-Button at the end of every reply so user can like each of them. This button is added after the content and as you manipulate the content to insert the adsense-code the Like-Button is now shown after the adsense-code. Hope you understand my bad english! 🙂 Any ideas to fix it?
October 10, 2012 at 4:38 am #118664In reply to: Problem with shortcode
nirzol
ParticipantI try with the default buddypress theme and the same.
shortcode don’t work -> [bbp-single-forum id=44] http://rplayers.com/forums/
but this shortcode works : [bbp-topic-index]if I make an other page http://rplayers.com/forums2/ all shortcode works
So I go to settings > forums > Archives slug > forums base :: change forums by forums2
but http://rplayers.com/forums2/ shortcode don’t workNeed help … :-/
October 10, 2012 at 3:52 am #118662In reply to: Forum Root Page Issues
nirzol
ParticipantI have the same problems I think…
on http://rplayers.com/forums/ –> [bbp-single-forum id=44] don’t work
but [bbp-topic-index] this shortcode worksAnd when I do the same things there http://rplayers.com/forums2/ all shortcode works
I posted a message there but no reply https://bbpress.org/forums/topic/problem-with-shortcode/
October 10, 2012 at 1:24 am #118661In reply to: class="reply" added to body
goddess_dix
ParticipantAnd I’ve gathered the script would go something like this?
$("body").removeClass("reply");Any clues as to what template or how I might add that to remove the reply class from the body would be great. This is my first foray with bbPress and it’s been a learning curve…
October 9, 2012 at 11:35 pm #118653In reply to: How to remove Avatar Title
Jared Atchison
Memberadd_filter( 'bbp_before_get_reply_author_link_parse_args', 'ja_reply_avatar_title' );
function ja_reply_avatar_title( $args ) {
$args['link_title'] = 'Avatar';
return $args;
}This only takes care of the replies, you will likely need to apply this same concept to other places in the theme.
October 8, 2012 at 6:13 pm #118628In reply to: Forum Root Page Issues
Jared Atchison
MemberI suspect It’s your theme and there’s no simple way to fix it short of diving into the code 🙁
/forums(the auto generated page) is an CPT archive page and your theme is likely modifying the query or auto formatting its archives (this is common in frameworks). Normally this isn’t a problem, until you use a plugin like bbPress which excepts archive pages to not be “highjacked”.The
/forumworks because I assume this is the page you created with the shortcode which isnt using the same template as mentioned previously.Forwarding
forumsto `forum’ might work, but make sure that the root of the problem isn’t affecting other archive areas of your site (topic listings etc).October 8, 2012 at 6:04 pm #118626Jared Atchison
MemberCopy
plugins/bbpress/bbp-themes/bbp-default/bbpress/loops-single-reply.phpto
[your_theme_directory]/bbpress/loops-single-reply.phpEdit line 27 to your liking.
You will need to create a counter. Something like http://pastie.org/5021188 would be a start. Though it will not take pagination into play, which will be something you must write.
-
This reply was modified 13 years, 10 months ago by
Jared Atchison.
October 8, 2012 at 1:32 pm #118623In reply to: Blank Page Problems
RobMackay
ParticipantThe shortcodes work fine.
Just so people know – I have forms set up I am trying to post in a form that I have set up. I have the “new topic” box but when I submit the new topic it takes me to a blank page. Everything else is in the OP
More help needed please 🙂
October 8, 2012 at 12:18 am #118616In reply to: Problem with shortcode
nirzol
ParticipantSorry, someone have a solution plz ? thx
-
This reply was modified 13 years, 10 months ago by
-
AuthorSearch Results