Search Results for 'code'
-
AuthorSearch Results
-
December 17, 2013 at 4:20 pm #140430
Topic: Change font color or background on bbpress
in forum Troubleshootingfishfanatix
ParticipantI’m having issues with the font or background color on my bbpress forums page. The font is to light I cant read anything. Can someone please explain to me how to change the color. I’m a beginner at all this so I don’t know any css but I can look it up. I tried to do it under the stylesheet under editor but I cant find the code. my website is fishfanatixblog.com and click the buy/sale/trade tab and see it.
December 17, 2013 at 1:33 pm #140422In reply to: Exclude specific forums in Recent Topics widget
Lynqoid
ParticipantYou could copy out the widget code and rename it to create your own widget and then include it in your functions.php
December 17, 2013 at 1:18 pm #140418Topic: Show Sidebar in default bbp pages
in forum Installationdiggeridoo
ParticipantHi all,
I’m searching about this topic here but I can’t solve this.
I want to put a sidebar in all the pages generated by bbpress: forums, topics, search… etc.
This works in the main page I’ve created for forum with[bbp-forum-index]shortcode and assigning a sidebar within my theme.
But, for the auto-generated pages (mentioned above) it uses full width by default.
¿How can I change this?Thanks!
I’m on WP 3.7.1 and bbPress 2.5.1-5217
December 17, 2013 at 5:48 am #140398In reply to: Global variables not accessible from theme files
Lynqoid
ParticipantCould you create a class then initalize it inside the bbPress code and use a getter to grab the values you need?
December 17, 2013 at 5:44 am #140397In reply to: Forum Size
Lynqoid
ParticipantHi!
You can achieve this with a relatively small amount of css:
.bbpress #sidebar { display:none; } .bbpress #left-div { width: 100%; }You will need to create a new image for your background though as it is currently not long enough, then you can add a little more CSS for that too.
Good luck!
December 17, 2013 at 4:41 am #140396In reply to: Website input default value is “Array”
Stephen Edgar
KeymasterArghhhhhh….. I still can’t reproduce this error using “Luminescence LiteVersion: 1.1.9”
Do you have any custom templates in your themes folder?
eg.
\wp-content\themes\luminescence-lite\bbpressDecember 16, 2013 at 7:19 pm #140386In reply to: Sidebars in BBpress profile
Stephen Edgar
KeymasterThe classes are set by the following:
<body class="topic bbpress single single-topic...<-bbp_is_single_topic
<body class="forum-archive bbpress archive...<-bbp_is_forum_archive
<body class="bbp-user-page single singular bbpress...<-bbp_is_single_user
<body class="bbp-view bbpress...<-bbp_is_single_viewTake a look at the source for any others here
December 16, 2013 at 6:49 pm #140381sixf00t4
Participantit seems it was semi addressed – https://bbpress.org/forums/topic/subscribe-to-new-forum-topics/
Subscriptions
Forum participants can elect to subscribe to a topic. They will be notified when a new reply is posted and subscribed forum topics will appear on their forum profile.December 16, 2013 at 6:38 pm #140378In reply to: Duplicated admin nick after import from phpBB
Stephen Edgar
Keymaster– Open up the WordPress admin users section
– Click delete onimported_LinDan94
– Check the box “Attribute all posts to:”
– Select the usernameLinDan94from the dropdown
– Click ‘Confirm Deletion’December 16, 2013 at 5:53 pm #140377Stephen Edgar
KeymasterYes, they work really well together, actually developed side by side most of the time.
To get an idea of what is in BuddyPress check this out:
December 16, 2013 at 3:18 pm #140373Remco Beugels
ParticipantI want want to remove the permission that moderators can delete topics and posts from the trash. But how can I change the standard permissions from bbPress?
I made this code but it doesn’t work because bbPress roles are separated from WordPress roles:
function changePermissions() { $role = get_role('moderater'); $role->remove_cap('delete_others_topics'); $role->remove_cap('delete_others_replies'); } add_action('init', 'changePermissions');December 16, 2013 at 6:48 am #140355In reply to: Can’t remove “Topic Status:” and “type”
Stephen Edgar
KeymasterYou can I think… Add the translation “Topic Status” as I linked to above.
Then at the bottom of that screen you can select ‘Export’, though the dropdowns to the right you want to select “only matching the filter” then to right select “Portable Object Message Catalog (.po)” and then click the ‘export’ link on the left, save this file as
bbpress-he.pothen select “Machine Object Message Catalog (.mo)” and click ‘export’ again and save this file asbbpress-he.moand then using FTP upload both these files to/wp-content/languages/bbpress/and you evertyhting should be perfect. 🙂December 16, 2013 at 6:37 am #140354In reply to: Can’t remove “Topic Status:” and “type”
ronthai
ParticipantIt might be in form-forum.php (bbpress/templates/default/bbpress)
It has these lines, have not tried it and be sure to have a backup:
<p> <label for="bbp_forum_type"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br /> <?php bbp_form_forum_type_dropdown(); ?> </p> <?php do_action( 'bbp_theme_after_forum_form_type' ); ?> <?php do_action( 'bbp_theme_before_forum_form_status' ); ?> <p> <label for="bbp_forum_status"><?php _e( 'Status:', 'bbpress' ); ?></label><br /> <?php bbp_form_forum_status_dropdown(); ?> </p>December 16, 2013 at 6:24 am #140353In reply to: Can’t remove “Topic Status:” and “type”
eitayz
ParticipantThank you 🙂
Of course,I will help to translate the strings.
But I would like to remove those two strings that I have marked.
I can’t use “display:none” since it’ll remove all the “label” or “p” in the page.
So I have to remove it from the PHP code. But I can’t find the code spot to do so.December 16, 2013 at 12:20 am #140347In reply to: Sidebars in BBpress profile
Sloppy Buns
ParticipantOk i think I have found where the problem is, take a look at the Body Class snippets from different pages on bbpress, paying particular attention to the sections after the word bbpress in each snippet.
The top two are from pages I am able to get sidebars to appear on and the bottom two I can not.
In the top two notice after the word bbpress you see a description of the type of page it is “single single-topic” and “archive” respectively.
In the bottom two this does not happen so my theme “Hueman” doesn’t know what sort of pages they are and therefore is unable to place the sidebars on these pages, now all I need to know is how to rectify this?
<body class="topic bbpress single single-topic postid-976 logged-in admin-bar no-customize-support topbar-enabled full-width gecko"> <body class="forum-archive bbpress archive post-type-archive post-type-archive-forum logged-in admin-bar no-customize-support topbar-enabled full-width gecko"> <body class="bbp-user-page single singular bbpress logged-in admin-bar no-customize-support topbar-enabled full-width gecko"> <body class="bbp-view bbpress logged-in admin-bar no-customize-support topbar-enabled full-width gecko">December 15, 2013 at 9:26 pm #140342In reply to: List user post total
ronthai
ParticipantI got it working and also Guests Posts (Topics and Replies) don’t return and empty value.
Might not be the best way, but all I got:<?php if ( bbp_is_topic_anonymous() ) { echo "<br>Guest Post"; } elseif ( bbp_is_reply_anonymous() ) { echo "<br>Guest Post"; } else { $post_count = ( bbp_get_user_topic_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo "<br>Total Topics: " . $post_count; $post_count = ( bbp_get_user_reply_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo "<br>Total Replies: " . $post_count; } ?>December 15, 2013 at 8:32 pm #140339In reply to: List user post total
ronthai
ParticipantNope, that does not seem to be working.
I tried several different ways, but all just output the same.I got to this code, but still outputs the Totals for guests without a value/number:
<?php if ( bbp_is_anonymous() ) { echo "Guest Post"; } else { $post_count = ( bbp_get_user_topic_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo "Total Topics: " . $post_count; $post_count = ( bbp_get_user_reply_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo "Total Replies: " . $post_count; } ?>December 15, 2013 at 8:15 pm #140336In reply to: Replies not showing up in forum
Stephen Edgar
KeymasterI see this at the bottom of your site when viewing a topic
add_shortcode( 'member', 'member_check_shortcode' ); function member_check_shortcode( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content ) && !is_feed() ) return $content; return ''; }December 15, 2013 at 7:52 pm #140334In reply to: Sidebars in BBpress profile
Sloppy Buns
ParticipantI have worked part of this out and have implemented a is_bbpress format for forum pages so I can choose what sidebars to put on my forum pages however I am still not able to get sidebars to show up on profile or most popular topics.
What I require is the is_ codex for these pages so I can write a script to place sidebars on these pages, I have found that the User profile has these html body classes:
bbp-user-page single singular bbpress
is_bbpress() does not workand Most Popular Topics:
bbp-view bbpressThis should be is_bbpress() however is_bbpress() does not work.
Any help would be greatly appreciated.
December 15, 2013 at 7:10 pm #140325In reply to: bbPress 2.5.1 is out!
Stephen Edgar
Keymaster@cyberdrone See this to get the translations or get started with translating bbPress. https://wordpress.org/plugins/bbpress-protected-forums/
@david7h6 What shortcode is broken?
December 15, 2013 at 6:03 pm #140316In reply to: List user post total
Stephen Edgar
KeymasterTry
bbp_is_anonymousto check if it’s an anonymous user before outputting the post count.December 15, 2013 at 9:02 am #140292In reply to: Two breadcrumbs are showing up
Lynqoid
ParticipantYou could hide the bbPress breadcrumb with some CSS.
.bbp-breadcrumb { display:none; }December 15, 2013 at 8:29 am #140288In reply to: List user post total
ronthai
Participantany idea where to add the code to have it show under the avatar in topics/replies?
I think the count works, just can not get it placed correctly
December 15, 2013 at 6:36 am #140287In reply to: List user post total
Lynqoid
ParticipantGive this a try:
$post_count = ( bbp_get_user_reply_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ) + ( bbp_get_user_topic_count_raw ( bbp_get_reply_author_id ( bbp_get_reply_id() ) ) ); echo "Total Posts: " . $post_count;December 15, 2013 at 5:12 am #140285In reply to: List Of Shortcodes
ronthai
Participant -
AuthorSearch Results