Search Results for 'code'
-
AuthorSearch Results
-
February 3, 2013 at 3:14 pm #125950
In 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/
January 30, 2013 at 2:27 am #125760Topic: bbpress template tags in wp
in forum Themeszurdog
ParticipantHow do I call bbpress template tags inside of the wordpress theme files? For example, I’m in header.php of my wordpress theme, and would like to list the forums in the header. I found this code: bbp_list_forums(); but I’m not sure how to get it to work?
I understand I can use widgets or use the admin with various slugs… but I’m wondering how to do this on the backend with code.
January 30, 2013 at 12:12 am #125751In reply to: HTML not showing in posts
ckleiman
ParticipantProblem Solved, I think. I noticed I was able to make some bold text using html. Then I made some italic text and it worked too. Finally, I tried making a link, again, and, as before, it didn’t show. Then I looked more closely at he link code and put some text between the last > and closing tag and it showed and working. So, much to my delight I can use this plugin with my Arras theme, which, I wasn’t prepared to sacrifice. Thank you for this plugin. I thinks its just what I wanted for my WordPress site. Simple without all the who needs it extras that come with other plugins and and accomplishes exactly what I need.
January 29, 2013 at 7:11 pm #125744gregfielding
ParticipantI’m trying to make my forum look better on mobile devices. As it stands, if you look at a topic and it’s replies, the avatars of the authors take up about half of the screen and the text is all scrunched over to the right.
I’ve switched the sizing to be 20% for the “bbp-reply-author” div and 80% for the bbp-reply-content div. (this is in loop-single-reply.php)
Anyways, the percentage spacing works great except that the avatars aren’t responsive and don’t shrink.
This is the line of code that controls it:
‘<?php bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>’
I can code a little, but this is beyond me. Any ideas on how to make the avatar responsive?
Or, probably easier, anybody know how I can tweak the above code for use on mobile devices where it will call the avatar in a smaller size?
Here is a link to a forum: http://www.bayarearealestatetrends.com/question/when-will-we-start-to-get-more-inventory/
January 29, 2013 at 4:54 pm #125738In reply to: New to bbPress, confused on theming? Please help!
pjv
ParticipantI made a codex page describing what I learned so far. I don’t know if what I wrote is anything like a best practice, but it worked for me. It would be great if those more knowledgeable would correct and expand on it.
January 29, 2013 at 4:28 pm #125736In reply to: New to bbPress, confused on theming? Please help!
John James Jacoby
KeymasterIf it’s not, why not?
The honest truth is that once most people learn what they need, they never go into the bbPress codex and make a page to share their knowledge.
-
AuthorSearch Results