Search Results for 'code'
-
AuthorSearch Results
-
May 8, 2015 at 1:09 am #161941
In 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
May 6, 2015 at 1:32 pm #161885In reply to: bbPress like Flarum
Robkk
Moderatorjust checked the code and i can see that you really stripped a lot of the bbPress default code out.
alot of bbPress specific plugins i can expect not to work correctly because of this, and maybe even some snippets would not work anymore.
May 6, 2015 at 1:28 pm #161884In reply to: insert bbpress team Lable/Bage on the top right
Robkk
Moderatorfirst change the PHP function to this, it bugged me that its not lowercase.
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' );Thats CSS in the topic you linked to , put it anywhere you can put custom css
a child themes style.css file
a custom css pluginthis is basically what you would need in your code.
#bbpress-forums .bbp-body .moderator div.bbp-topic-content, #bbpress-forums .bbp-body .moderator div.bbp-reply-content { background: #f8f8f8 url(images/team-badge-head.png) top right no-repeat; }you will need an image in your child theme in a folder called images though for what they have.
you can test it out by just changing the background color for the users.
#bbpress-forums .bbp-body .keymaster div.bbp-topic-content, #bbpress-forums .bbp-body .keymaster div.bbp-reply-content { background: blue; }there should be classes inserted for every role
.keymaster = Keymaster
.moderator = Moderator
.participant = Participant
.guest = GuestMay 6, 2015 at 7:28 am #161879In reply to: insert bbpress team Lable/Bage on the top right
Benjamin Zekavica
ParticipantWhere should I insert then the code from: http://www.kriesi.at/support/topic/custom-images-for-moderator-in-bbpress/ of the site?
May 6, 2015 at 5:13 am #161872In reply to: SMF Import to bbPress
l5z5heli
ParticipantWhen I attempt to access the URL https://codex.bbpress.org/import-forums/smf the page is blank. Am I clicking wrong here, or is something wrong with the page?
May 5, 2015 at 11:34 pm #161865In reply to: insert bbpress team Lable/Bage on the top right
Robkk
Moderator1. it tells you right on the topic you linked to.
2. this PHP code will help with styling a users reply by role.
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_role = bbp_get_user_display_role($replyid); $classes[] = $bbp_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );3 this plugin will help
May 5, 2015 at 9:32 pm #161859In reply to: Error messages, please help to dummy guy
Robkk
Moderatorthere is a couple of patches here , you can see if the latest patch fixes your issue.
https://bbpress.trac.wordpress.org/ticket/2782
make sure to take a site backup before applying a patch.
https://codex.wordpress.org/WordPress_Backups
if it still doesnt fix your issue , then you might as well restore your site from the backup then wait for a newer patch.
if you really need this fixed soon , i suggest you post a job and hire a developer jobs.wordpress.net/
May 5, 2015 at 9:24 pm #161858In reply to: disabling anonymous user info remember
Robkk
Moderatorit worked for me, and just so you know bbPress uses some of the WordPress comments code for anonymous posting.
link to a topic i can test on and make sure you have the code placed.
the way i tested it is i tried normal anonymous posting when logged out of my test site inputted my email and name then posted a reply and topic. by default the name and email should populate automatically for my next reply and topic.
with my code it should display empty text inputs even when you already made a reply or topic.
May 5, 2015 at 6:25 pm #161855Stephen Edgar
KeymasterThe ticket is https://bbpress.trac.wordpress.org/ticket/1989, there are some specific things we want to do with revisions, we want to actually keep all revisions but only display one revision, we want to be able to “scroll through” the list of revisions, you can see an example of this in the following comment https://bbpress.trac.wordpress.org/ticket/1989#comment:19, in that comment you’ll see
previousanddiff, once you clickpreviousyou’ll then seenext.If you want to join our development chat we can chat about what and where further.
To join follow the instructions here and join the #bbpress channel 🙂
http://chat.wordpress.orgMay 5, 2015 at 5:36 pm #161853PinkishHue
ParticipantAny update on this? Or any suggestions?
If no replies I will dive in the code to try and figure it out. Just trying to save time, hopefully someone has already done this or has a general idea how to (even a suggestion on the file to edit would save me a step!)
Thank you 🙂
May 5, 2015 at 12:31 pm #161843Topic: Visual Composer Override? Please Help noob! :(
in forum TroubleshootingDigitalNinjaZA
ParticipantHey guys. I’m busy customizing my forum page.
I’m using WP Visual Composer Plugin to add some elements to the Forum Page, but every time I click update and reload the page they’re gone? Maybe they’re being overridden by css or bbpress code?
How can I fix this?
I’ve checked the bbpress shortcodes for visual composer but don’t think that will fix it. As I’m simply trying to add a header and footer image, plus a Custom header.
Thanks in advance.
May 5, 2015 at 4:26 am #161832In reply to: disabling anonymous user info remember
Robkk
Moderatori think this would have the same effect.
// define the comment_cookie_lifetime callback function filter_comment_cookie_lifetime( $number ) { // make filter magic happen here... return 0; }; // add the filter add_filter( 'comment_cookie_lifetime', 'filter_comment_cookie_lifetime', 10, 1 ); -
AuthorSearch Results