Search Results for 'code'
-
AuthorSearch Results
-
February 4, 2013 at 10:11 am #125974
Shane Gowland
Participant1:
Take a look at Widget Logic or Sidebars. These are plugins specifically made for adding different sidebars/widgets to specific pages. Manipulating widget areas is outside the scope of bbPress and is something you will need to implement yourself.2:
This is a theme specific issue. bbPress could do more to accomodate different primary content area widths, but it’s quite easy to fix with a bit of CSS.3:
You can create page templates for specific bbPress functions/pages by creating a /bbpress/ folder in your theme directory and copying your edited bbPress template files into it. It’s briefly mentioned in the codex, but I concede the documentation could be improved significantly.Further I expect from bbpress authors to work on these issues and release a fixed version.
bbPress is an open source project (largely) developed by volunteers. To expect anything reeks of self-entitlement. The best way to make these things happen is to ask for help on specific issues, fix those issues and then contribute your fixes to the project.
February 4, 2013 at 5:09 am #125971Shashank Shekhar
ParticipantHello, I am using lates bbpress 2.2.4 plugin with wordpress 3.5.1, php 5.4.3 & php 5.3.2.
This plugin is showing me many issues specially for user pages (profile, edit, etc.)
I am using twenty twelve theme, very little customized.1) I wanted to set a different sidebar for bbpress forum pages than other wordpress pages, so I checked and found the default template used by bbpress is ‘page.php’. I copied it, renamed to ‘forum.php‘ and added a new dynamic sidebar and commented default sidebar. It worked fine and now I can set any widget to this sidebar. I have checked that either I place ‘forum.php’ or ‘forums.php’ both working fine similar. Not sure which one is more correct.
2) On the bbpress users pages the profile content and edit form is not displaying full in widht cutting as its width overridden by sidebar, breaking layout. The content area ‘primary’ div is given a width in theme and having ‘secondary’ as sidebar. All other contents properly adjusted on every bbpress pages, but only this bbpress user profile edit page have the issue. The form should also be adjusted within the content area. Ex. url: http://mysite.com/forums/users/testuser/edit
3) Now, suppose to fix the issue mentioned above in point 3), I want to remove sidebar from users pages and give the primary content area more full width, how I can do it? One way is to forcibly hide the sidebar with css and make primary content wider with !important. But I want a way to change user pages template. Is it possible to have different template for user pages than bbpress other pages? I found that users pages also generating using ‘page.php’, in my case ‘forum.php’ template now. I tried alot by copying and changing ‘page.php’ to ‘user.php’, ‘users.php’, etc. but its not working. Please let me know how can I set user pages to use a different template file and rest bb pages use my forum.php or forums.php whatever.
4) For any user when I click ‘topic started’ or ‘replies created’ link, both show counts properly but the table didn’t appear. I checked in firebug, it present there but hidden somehow. Same issue mentioned here http://bbpress.org/forums/topic/profile-topics-or-replies-posts-not-being-displayed/ , I tried with the same thing, but till now no proper solution there. Please let me know proper way to fix it.
5) If suppose I want to completely hide the user-profile links on all bbpress forum/topic authors, on all bb pages, I mean want to display only author gravatars and usernames but want no link on them, so other people cannot go to their profile pages, how can I do that? A little help given here http://forum.graphene-theme.com/graphene-support/show-the-author-but-hide-its-link, but its not working properly. But I think it can be done with right filters in the same way. Please let me know with sample code.
6) Used the official facebook plugin http://wordpress.org/extend/plugins/facebook/ , and displayed the like button, like box for my facebook page using it in my site footer, header etc. But I found that on the user pages like edit profile, profile view etc. facebook widgets are completely disabled and not visible. On other bbpress forum pages they are displaying well. I checked with page source and found even facebook sdk is not embeded in page source. Their must be an conflict on bbpress user pages with facebook sdk which stopping it to be enqueued. This need to be checked and fixed.
These all issues mentioned here are serious issues with bbpress specially for user pages and must be solved and have proper solutions.
I dont expect from a single person to answer or fix all of above points, but hope different people will help me for different points (just mentioning points in their replies).Further I expect from bbpress authors to work on these issues and release a fixed version. May be some of above points just because of lack some documentation, so they can mention some solution in its FAQ itself, so people having same problems can get help without searching or posting here in forum.
—
Thanks
ShashankFebruary 4, 2013 at 5:03 am #125970LaurenceAtFree
ParticipantFor people like me new to php this is how to make a plugin with John’s code :
paste this code in an editor and save the file as teenybb.php :
<?php/*/
Plugin Name: Teenywithbb
Plugin URI: https://bbpress.org/
Description: Enable Teeny Mce in bbpress
Version: 1.0.1
Author: John James Jacoby
Author URI: https://bbpress.org/
/*/
function foo( $args = array() ) {
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'foo' );copy this file in your plugin directory where you usually copy other plugins.
You can see the plugin named Teenywithbb in wordpress you juste have to active it.
and then you have tinyMCE Advdaced as editor in bbpress 2.2. 🙂February 4, 2013 at 1:26 am #125967Erlend
ParticipantI’m not asking for something that’ll work out of the box. Some pointers on what pieces of code to look at to have a go at this ourselves would go a really long way. Same goes for excluding forums and topics from default index.
February 3, 2013 at 7:07 pm #125954February 3, 2013 at 3:14 pm #125950In reply to: Change Topic Hover Color
captjones
Participant^ A bit, I removed some stuff from original code, as you can see from the website & also changed fonts.
I created the theme from scratch using Artisteer.
Btw, I also tried with TwentyEleven & TwentyTwelve theme, the green hovering box like here on this forum, doesn’t display 🙁
Btw thanks for replies brahs, I’ve seen you replying to many threads here and been helpful :O
February 2, 2013 at 7:18 pm #125901In reply to: Roles and Capabilities in bbPress 2.2
aberglas
ParticipantYou say “Capabilities are saved in the database, per user, per site”. That is clearly NOT the (normal) case. The wp_usermeta table wp_2_capabilities row stores ROLES, not capabilities. Those roles appear to index into the wp_2_options tble row wp_2_user_roles row which contains a list of capabilities.
I have no idea what “Dynamic” roles are nor why bbpress contains a vast amount of capability fidling code, including no less than three files called capability.php. If someone could explain it in terms of actual table rows and colums that might help.
I want a simple setup where Authors can access Private forums but only in the site which they are an Author. The simple coupled set up that JJJ says is too simplistic. But now it cannot be done at all?
By default private sites are hidden to users. There is a weird “Auto Role” option that can adds bbp_participant to all users. But that means that users get access to all forums on all sites. Is that the “Dynamic role” feature?
So turn that off. Try to add bbp_participant role explicitly using action ‘add_user_to_blog’
$user->add_role(“bbp_participant”);
However, that failed to add the user. WordPress really only supports one role per user, certainly set_role() only accepts a single role and purges any others. So I think something is resetting it.Then I try simply
get_role( ‘author’ )->add_cap( ‘read_private_topics’ ); // for bbpress.
That successfully updates the database (wp_2_user_roles), but has no effect on bbpress. I suspect because one of the capability.php files in bbpress has
case bbp_get_spectator_role() … ‘read_hidden_forums’ => false,
rather than just leaving it out. So capabilities do not merge properly between roles.I am new to WordPress/bbPress, and having spent many hours in this mess am getting very frustrated. How hard can it be? Users/Roles/Capabilities.
Anthony
February 2, 2013 at 7:08 pm #125898In reply to: bbPress Registration Tab
Stephen Edgar
KeymasterI see you have a ‘register’ and ‘login’ page using the shortcodes, if you want something in the sidebar you could use the login widget https://codex.bbpress.org/widgets/
February 2, 2013 at 6:55 pm #125896In reply to: Sticky a Forum Post
Stephen Edgar
KeymasterSee the docs here https://codex.bbpress.org/getting-started-with-bbpress/#adding-a-topic
February 2, 2013 at 6:53 pm #125895In reply to: Arranging Forum Order
Stephen Edgar
KeymasterSee the docs on ‘Creating your First Forum’ here and you set the order from withion the WordPress Admini Forum Panel.
https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum
February 2, 2013 at 12:35 pm #125882In reply to: How do i set up bbpress and buddypress?
knussear
ParticipantAh – I spoke too soon. You saved me at 18:33 with the short codes! Thanks a bunch @labsecrets
February 1, 2013 at 8:55 pm #125867In reply to: Shortcodes in the column of WP
Stephen Edgar
KeymasterSounds like we need a bbPress widget for topic tags…
https://codex.bbpress.org/widgets/
Maybe create a ticket in trac https://bbpress.trac.wordpress.org/
February 1, 2013 at 8:44 pm #125866In reply to: bbPress Integration
Stephen Edgar
KeymasterAsk your host Hostpaedia if they have any instructions on installing WordPress (if not here is the generic Softaculous info) and once you have WordPress running then you add bbPress as a plugin.
Full instructions on installing bbPress are here:
https://codex.bbpress.org/getting-started-with-bbpress/February 1, 2013 at 8:39 pm #125865In reply to: "New topic page"
Stephen Edgar
KeymasterCreate a new WordPress page called ‘New Topic’ and add the shortcode [bbp-topic-form] to the page content.
https://codex.bbpress.org/shortcodes/ & https://codex.bbpress.org/widgets/
February 1, 2013 at 3:05 pm #125833Topic: Create a list of current Members/Users plugin or tricks?
in forum Pluginsbob marteal
ParticipantHi,
I need to make a list of forum members to display like http://stackoverflow.com/users. I can’t for the life of me find a way to do this. It seems like something that should be pretty obvious. I’d hope to get a plugin or at least some pretty well documented code to make a template or some such. Can anyone point me in the right direction?
I’m on WP 3.5.1 and bbPress 2.2.3
Thanks so much.
January 31, 2013 at 11:22 pm #125817In reply to: Sub forums in bbpress 2.3 and buddypress 1.7
moebis
ParticipantGood News All!!! Ok…. I have sub forums working in buddypress with a small hack to group.php (in latest trunk of bbpress 2.3). @johnjamesjacoby was right, it looks like they started building this functionality into bbpress and so-far it works. The only thing left to do, is maybe make it display a little more intuitively (I’ll continue to work on that), and on the buddypress side allow sub forum posts to be added to the activity feed of the group it belongs to. I was wrong before, sub forum topic posts do not show up on group activity feed, but I think I’ve already isolated the code to fix that.
Here is how to play with my hack in the latest trunk:
EDIT: /bbpress/includes/extend/buddypress/group.php
Delete lines 609-614 and add “?>” back to line 609.
This is how the forums in groups looks now (you can see all topics from the group forum and the bbpress sub forum of that group forum). Also, the post box has a drop-down select to chose the forum or sub-forum to post to:

January 31, 2013 at 9:35 pm #125813In reply to: Sub forums in bbpress 2.3 and buddypress 1.7
moebis
Participant@johnjamesjacoby – This actually almost completely works within the current trunks of bbpress and buddypress, even the activity feed of subforums looks and works correctly within the group. The only bug is somewhere in the display of the forum tab in the group, I assume because it’s not expecting a subforum, which is why it doesn’t display the parent forum, which is also the group forum. I confirmed this by creating another subgroup (so 1 parent, and 2 child), and it will only display the latest forum/subforum created within the group and ignore the older 2 (the parent and first created subfourm). I will play around with the source code to see where it’s generating the group forum display and make a code suggestion if you would like. It’s probably just querying the bbpress tables for a forum associated with the group and whichever shows last in the table is what the display generates. It’s smart enough to already calculate all of the topics in all forums and sub-forums, so it’s about 90% of the way there. I think because bbpress and buddypress are partitioned so well, this might not be an issue, it’s almost feature complete in this regard, and I know the community has been clambering for this functionality for a very long time. Most end up turning to the hierarchy plugin, which really isn’t the long term solution. Is it possible to get this into 1.7, which is so close to release? If so, I’ll work out a quick solution, that is future proof and can be expanded on in future versions.
January 31, 2013 at 6:55 pm #125810In reply to: Forum on a password protected page?
John James Jacoby
KeymasterThere’s no easy way to password protect the entire forum; you’ll probably have to find and use a third party plugin if one is available. While you *could* password protect a page, and use a shortcode, that doesn’t actually protect the exact permalinks themselves, so they’re not at all ‘private.’
January 30, 2013 at 10:48 am #125773Topic: Shortcodes in the column of WP
in forum TroubleshootingFabrizio Pivari
ParticipantI want to use [bbp-topic-tags] in the column of WP but it doesn’t seem to work in a normal widget for html
January 30, 2013 at 9:49 am #125771In reply to: Display list of topics under specific forum
ringishpil
Participant@Netweb, thanks I got it.
Now I want to make a reverse function like I want to display all freshest topics except the one I displayed before.
So I am doing something like:
$left['show_stickies']=false; $left['order']='DESC'; $left['post_parent']!=1263;and then
if ( bbp_has_topics($left) ) bbp_get_template_part( 'bbpress/loop', 'topics' );but its listing all of the topics.
When I go like
$left['post_parent']=1263;its ok, but when I want a negation (list all topics from all forums except the forum with 1263 ID, then in var dump of$left['post_parent']!=1263;I am getting NULLJanuary 30, 2013 at 9:14 am #125767In reply to: bbpress template tags in wp
zurdog
ParticipantI had used the code (below) prior to posting here in the forum and it didn’t work for me…
and it outputs nothing… what am I doing wrong? I put this in my header.php file in my wordpress theme directory.
January 30, 2013 at 4:40 am #125764In reply to: How to get rid of the blog sidebar?
Stephen Edgar
KeymasterThere are very little in the way of options for bbPress and this is by design.
I’m also from the Stonehenge forum era and am far from a developer but saw the potential of bbPress, now I’m learning PHP due to the awesome inline docs in the code of bbPress (and WordPress).
Speaking of proud things in bbPress… Search is really new and works really well 😉
eg. https://bbpress.org/forums/search/?bbp_search=remove+sidebar
(I’m not meaning to be lazy or dismissive of your specific query just that this question has been asked many times and there are quite a few topics on this subject and you might even find one specific to the WordPress theme you are using)
January 30, 2013 at 4:29 am #125763Stephen Edgar
KeymasterExcellent, the BBCode cleanup bits are the main changes that will ship with bbPress 2.3, I think I have most of them sorted now.
Moving topics is a manual task at the moment, it is planned for a future release. (#1838 & #1721)
Are you able to configure your old phpBB forums (or a copy of them) and set these forums the way you want them to exist in bbPress and then do the import?
(Essentially use the phpBB mod tools to get the setup you want before importing into bbPress)January 30, 2013 at 3:50 am #125762nadir
ParticipantStephan, I ended up with a fresh install again and did the import from scratch. This time, it looks like it worked!
Has there been any resources for cleaning up bbcode? it looks like a bunch of random characters are in place around the brackets where bbcode once was.
Also, I am using sitewide forums over the buddypress forums. However, I wanted to migrate topics from one of the imported forums into the group forum that was created … however, I see no option to mass move topics? I did some searching and found a reference to it if I were to “delete” a forum, however trashing it, simply just puts it in the trash bin! Can you please shed some light onthis?
Thank you so much for your continued support! I’ve been a hardcore phpbb user for a long time but the painful customization of it finally turned me!
January 30, 2013 at 3:07 am #125761In reply to: bbpress template tags in wp
Stephen Edgar
KeymasterHows this for starters? https://codex.bbpress.org/bbp_list_forums/
-
AuthorSearch Results
FirmaSite Social
How to download:
http://wordpress.org/extend/themes/firmasite
Theme Features:
Themes are in review for publishing on WordPress.Org Theme Directory but in meantime, you can download and try it from links above. Please share your opinions on theme in this topic.