Search Results for 'code'
-
Search Results
-
Please is there any plugin or code i can use to set minimum reply length on my forum, i want reply’s to not be less than 60 character. so when any body reply’s with 60 character it tells to person to type not less than 60 character words.
Please i need this urgently.
thanks.Topic: How add Class on list
Hi,
I want to add Class on “★” by PHP template.
<ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies"> <li class="bbp-header"> <!-- various --> </li> <li class="bbp-body"></li> <li class="★"> <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header"> <div class="bbp-meta"> <!-- various --> </div> </div> <div <?php bbp_reply_class(); ?>> <!-- various --> </div> </li> <li class="★"> <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header"> <div class="bbp-meta"> <!-- various --> </div> </div> <div <?php bbp_reply_class(); ?>> <!-- various --> </div> </li> <li class="bbp-footer"> <!-- various --> </li> </ul>But I do not know the appropriate PHP template.
I wonder what I should do.
Thank you.Topic: pagination is not display!?
There are 13 comments on my page, and there are 5 display settings.
Web:http://urx2.nu/LPiR
Img:http://folio.ink/jzbNpwBut pagination is not display!!
This is the HTML:
<div class="bbp-pagination"> <div class="bbp-pagination-count"> </div> <div class="bbp-pagination-links"> </div> </div>I just installed an WordPress, and only BBPress plugin activated.
Why??
Topic: bbp_get_time_since issue
Hi,
The function
bbp_get_time_sinceinincludes/common/formatting.phpalways returns “right now”.bbPress Version: 2.6 release candidate 6
Hi all,
How can I get a reply post ID using a specific post ID?
For example, I want to get 1 using 3.
0
|–1
|–|–2
|–|–3I can not do with the following code:
<?php echo bbp_get_form_reply_to(3);?>How write it?
Thanks.
Hi!
I want to hide all the columns (Posts, Topics, Voices, Freshness) except the Forum and Topic.
Everything is working fine except the column size of Forum column is not changing. Here is the css:/* To hide VOICE, REPLY, POSTS and FRESHNESS columns in bbPress */ li.bbp-forum-reply-count, li.bbp-forum-topic-count, li.bbp-forum-freshness { display: none !important; } li.bbp-topic-voice-count, li.bbp-topic-reply-count, li.bbp-topic-freshness { display: none !important; } li.bbp-forum-info, li.bbp-topic-title { float: left; text-align: left; width: 100%; } /* End */Please help.
Topic: Forum Topic Loop
Hello there,
Firstly thank you for viewing this thread, really appreciate.
I am trying to create a topic loop to display in my in development theme. I have created a template part in my
theme-directory/bbpress/omna-forumthreadssee below:<?php /** * Single Thread * * @package bbPress * @subpackage Theme */ $threadURL = bbp_topic_permalink(); $threadTitle = bbp_topic_title(); $threadTIme = bbp_topic_post_date(); ///////////////// Thread Author Avatar URL //////////////////////// $user_id = bbp_get_user_id( $user_id ); $authorAvatarURL = get_avatar_url( $user_id, 300 ); /////////////////////////////////////////////////////////////////// $threadVoiceCount = bbp_topic_voice_count(); ?> <div class="swiper-slide-item"> <div class="icon-author" style="background-image: url('<?php echo $authorAvatarURL; ?>'); background-image: -webkit-image-set(url('<?php echo $authorAvatarURL; ?>') 1x, url('<?php echo $authorAvatarURL; ?>') 2x);"> </div><<?php echo $threadURL; ?>"><?php echo $threadTitle; ?></a></h2> <time class="data" datetime="<?php echo $threadTIme; ?>"><?php echo $threadTIme; ?></time> <span class="views"><i class="fa fa-comment-alt"></i><?php echo $threadVoiceCount; ?></span> </div> </div>And i believe this should work, But currently i have issues with the loop that should display it by driving the content from the template part. Here is my loops:
<div class="swiper-wrapper"> <div class="swiper-slide"> <div class="swiper-slide-container"> <?php if ( bbp_has_topics() ): while ( bbp_topics() ) : bbp_the_topic(); bbp_get_template_part( 'bbpress/omna', 'forumthreads' ) endwhile; endif; ?> </div> </div> </div>Now i get a pass error:
Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in C:\wamp\www\omna\wp-content\themes\omna\page-home.php on line 143
I have also tried the curly brace {} type of IF & WHILE expressions, still a parse error..
Please Help.
Topic: Page preview error
I seem to have an error with the page previews as you can see over here. As you can see in the first reply in this link, page preview for WP pages works fine, the problem only occurs with BBpress related urls (second post). In the image below I marked it with red:

When I disable the GP Premium plugin the preview dissapears and it only shows the title as an url inside a blockquote. BUT looking at the source code the wrong preview is still there. Changing class
wp-embedded-contentposition: absolute;toposition: relative;makes it visable again.Disabling all plugins, switching to another theme or deleting all custom css is of no influence. WordPress and all plugins are up to date.