Search Results for 'code'
-
AuthorSearch Results
-
May 8, 2015 at 5:31 pm #161981
In reply to: HTML tags appear in the forum posts
davelr1
ParticipantIs there any way instead of allowing the tag, just strip the code out?
May 8, 2015 at 11:13 am #161974In reply to: [New feature] View/Hit Counts
DevynCJohnson
Participant@robkk , thanks. Actually, I had written some code like that for my website late last night. The result can be seen in action at http://dcjtech.info/forum/articles/operating-systems/linux/ . I even figured out how to migrate the bbpress-simple-view-counts data to my implementation. The migration was easy (a few SQL queries via phpMyAdmin) and not at all complex as other developers thought (https://wordpress.org/support/topic/sync-with-simple-view-counts).
May 8, 2015 at 10:29 am #161972May 8, 2015 at 6:50 am #161968In reply to: insert bbpress team Lable/Bage on the top right
Benjamin Zekavica
ParticipantI am use Sahifa from Themeforest. I put all the codes in the Theme.
May 8, 2015 at 6:30 am #161967In reply to: HTML tags appear in the forum posts
Hope
ParticipantActually I already added ‘style’ to ‘span’, I added the paragraph ‘p’ as you mentioned but still the same issue!
Here’s the part of the HTML page that is treated in the function but still HTML tags appear in the post:
<p> <span style="text-decoration: underline; color: <a class="hashtag" rel="nofollow" href="http://localhost/wordpress/forums/search/?bbp_search=%23000080">#000080</a> ;ā> <em> <strong> <span style="font-size: 12pt;font-family: arial,helvetica,sans-serif">test</span> </strong> </em> </p>Again, have I missed something?
Thanks for your help
HopeMay 8, 2015 at 2:14 am #161963In reply to: shortcodes meeaning
Robkk
Moderatorits all self explatory really.
you can test them out by creating a test page and putting each shortcode into it to see what it does.
if you need help finding ids of bbPress post types install this plugin, then look in the certain post types section.
like say forums , you go to the WordPress back-end and go to forums> all forums and you will see all the forums post id to use for these shortcodes. It would be close to the same procedure for topics and replies.
May 8, 2015 at 2:10 am #161962In reply to: bbpress shortcodes view last replies
Robkk
Moderatori tried to make this and failed at it.
you can look for tutorials on the web for creating this type of thing like this.
or you can hire a developer to create this type of functionality for you.
if you need to post a job at http://jobs.wordpress.net/
May 8, 2015 at 1:58 am #161958In reply to: Check if we are under a certain category/forum
Robkk
Moderatoryou of course pass the ids of the specific forums and categories in each
()this for category
if( bbp_is_forum_category() ) {and i think this for forum
if( bbp_is_forum() ) {May 8, 2015 at 1:27 am #161948In reply to: insert bbpress team Lable/Bage on the top right
Robkk
Moderatorexplain to me where you put the code and how you did everything so i could see if you did anything wrong or not.
and also what theme are you using.
May 8, 2015 at 1:20 am #161945In reply to: bbPress causes Category pages to show full posts
Robkk
ModeratorIād set these to show short excerpts only
is this an option in your themes settings??
but im going to assume your theme thinks bbPress is a blog post , adn that you should create a bbpress.php file and remove any unwanted code.
this plugin will help you find the right file to copy to create a bbpress.php file.
May 8, 2015 at 1:13 am #161943In reply to: Desire forum, but no blog site comment ability
Robkk
ModeratorbbPress shouldnt have comments??
if you havent already create a bbpress.php file and remove any code for WordPress comments.
this plugin will help find the file you have to make a copy of to create a bbpress.php file
May 8, 2015 at 1:09 am #161941In reply to: Topic view in new theme
Robkk
Moderatorlook at the subpages on the left too.
Robkk
Moderatorthis custom CSS should do it.
span.bbp-reply-post-date { display: none; }May 8, 2015 at 12:51 am #161939In reply to: Confused about setup for forum landing page
Robkk
Moderatorcreate a bbpress.php and remove any post meta code like by (author) published (post date)
basically your theme thinks that the bbPress archive page is a blog post so it structures it like so , it keeps the forum limit low as if it was an excerpt.
this plugin will help you find the file you would need to copy and create a bbpress.php file from.
May 8, 2015 at 12:44 am #161937In reply to: [New feature] View/Hit Counts
Robkk
Moderatoryou can use this as an alternative if you want.
https://wordpress.org/plugins/wp-postviews/
you would have to put this code somewhere in your loop-single-topic.php file in your child theme.
<?php if(function_exists('the_views')) { the_views(); } ?>Maybe replace voice count?? or create a new column?? or just like simple view counts has like this.
function rk_bbp_postviews() { if (function_exists('the_views')) { echo the_views(); } } add_action( 'bbp_theme_after_topic_started_by', 'rk_bbp_postviews' );heck you can even use jetpack for post views.
May 8, 2015 at 12:26 am #161936In reply to: HTML tags appear in the forum posts
Robkk
Moderatoryou have to add on to the code.
the original is this
// Span 'span' => array( 'class' => true, ),you would have to edit it like this
// Span 'span' => array( 'class' => true, 'style' => true, ),and probably the same thing for the paragraph tag ‘p’ , but for this you will need to just add it on like this.
// Paragraph 'p' => array( 'dir' => true, 'style' => true, ),basically any child elements of the tag add it in the function.
May 7, 2015 at 12:35 pm #161922Topic: Topic view in new theme
in forum Troubleshootingsnecz
ParticipantHello,
I’m creating own new WordPress theme for my website.
On the forum page I can see the forum[bbp-forum-index]
But I can’t see individual topics pages.
Am I missing any template in my theme?May 7, 2015 at 10:58 am #161920In reply to: ERROR: Are you sure you wanted to do that?
tiquality
Participant@donutz Hy Peter, where can I Insert the code you wrote?
My site is in a internal server, and i didnt understand where I insert this code.
tks!
May 7, 2015 at 6:57 am #161908In reply to: HTML tags appear in the forum posts
Hope
ParticipantThanks Robkk for your help! I tried the mentioned code but apparently it’s not working properly, I don’t know why! For example, I’m still having:
<span style=”text-decoration: underline; color: #ff0000;ā>test
Although “span” is supposed to be treated in the code.Have I missed something?
Thanks for your help
HopeMay 7, 2015 at 12:55 am #161903In reply to: Edit Replies to post and get a blank page
hazedesigns
ParticipantI have had problems with yootheme on a project but have overcome them by simply ‘overriding’ ALL of the plugin files by copying them into the theme directory – not the directory for the ‘style’ as the warp framework calls it but the theme root directory. It seems you have to provide an override for every file to get all the different views working.
Just follow the process laid out in the codex:
https://codex.bbpress.org/theme-compatibility/
And remember to override ALL the files!
May 6, 2015 at 11:48 pm #161902In reply to: Change the default Forums page
TheMusicianGirl1
ParticipantGuys, I DID IT! After spending the better part of a day sweating over this problem, I finally fixed it. The solution is so simple, I have no idea why it took me so freaking long to think of it!
1. Download and install the “page links to” plugin at https://wordpress.org/plugins/page-links-to/
2. Go to Dashboard –> All pages –> and then click edit on your default forum page (usually http://www.yoursite.com/forums)
3. Once you’re on the editing page, scroll down to where your new plugin has two, magic little options for you. The first one, “this is a normal wordpress page,” is probably checked. Instead, check the one right below it, the one that says “custom url” or something like that. Enter the url for the page that you WANT your default forums page to be. Click publish.TA-DA! Now, when you click on “forums” in your breadcrumbs trail, instead of taking you to that default index page, it’ll take you to the special one that you made using the index shortcode.
You’re welcome!!
Maya š
May 6, 2015 at 4:57 pm #161898In reply to: insert bbpress team Lable/Bage on the top right
Robkk
Moderatoryou insert this into a child themes function.php file or a functionality plugin
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_get_role = bbp_get_user_display_role($replyid); $bbp_display_role = strtolower($bbp_get_role); $classes[] = $bbp_display_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );this custom css you can put in your child themes style.css file or a custom css plugin.
#bbpress-forums .bbp-body .keymaster div.bbp-topic-content, #bbpress-forums .bbp-body .keymaster div.bbp-reply-content, #bbpress-forums .bbp-body .moderator div.bbp-topic-content, #bbpress-forums .bbp-body .moderator div.bbp-reply-content { background: #f8f8f8 url(images/team-member.png) top right no-repeat; }now for this to work exactly like the other site , you can download this image from here, by right clicking save image as, then uploading the image to your child theme in a folder called images. Make sure its named “team-member”
May 6, 2015 at 4:40 pm #161897In reply to: Shifting forum posts to the left
Robkk
Moderatorsorry i forgot about this.
but since you have a full width forum try adding all this CSS to have bbPress look better.
.bbpress-forums .col-2cl .main { padding-right: 0; } .bbpress .site, .bbpress .site-header, .bbpress .site-content .entry-header, .bbpress .site-content .entry-content, .bbpress .site-content .entry-summary, .bbpress .site-content .entry-meta, .bbpress .page-content { max-width: 100%; } .bbpress .hentry { margin: 0 auto 48px; max-width: 100%; } @media screen and (min-width: 1008px) { .bbpress .site-content { margin-right: 0; margin-left: 182px; } } @media screen and (min-width: 1080px) { .bbpress .site-content { margin-left: 222px; } } @media screen and (min-width: 1218px) { .bbpress .site-content .entry-content { margin-right: 0; } } @media screen and (min-width: 673px) { .bbpress .site-content { margin-right: 0; } }May 6, 2015 at 3:32 pm #161895In reply to: insert bbpress team Lable/Bage on the top right
Benjamin Zekavica
ParticipantI have the side timewise on xampp in the localhost mode. If you can exactly say me which files I must insert this code. Is this in the Theme a folder or in the plug-in itself?
May 6, 2015 at 2:59 pm #161893In reply to: insert bbpress team Lable/Bage on the top right
Robkk
Moderatorlink to your site so i can check the source code
-
AuthorSearch Results
Hello!
First, I want to say how much I appreciate the BBpress platform. I’ve been using it for over a year now and it has served the site well.
I have ran into an issue where every single comment ever made on posts now appear below the forums. I’m completely baffled as to how to handle this. It does seem to be a theme issue as this does not happen with the TwentyFifteen theme. Is there a way to remove showing the comments altogether on any forum page (which is preferred actually).
Has anyone had this same issue? Is there a way to simply have the comments not show up at all in the forums? Is there code that I can place in my functions.php that will make them not appear in the forums?
Any and all help would be greatly appreciated. As of now, this issue is causing some confusion and making my pages extremely long.
My site is FREEDOMcgc.com
Link to where the issue is happening: CLICK HERE
WordPress Version WordPress 4.2.2
bbpress Version 2.5.7
Buddypress Version 2.2.3.1