Search Results for 'code'
-
Search Results
-
Hello guys,
I tried to search for this topic for some time, and I found a lot of answers but non of them was on the point for my simple yet maybe difficult task.
My client needs the forum to be visible only for users/some users.
Basically only the users should be able to see the forums while others won’t even know it exist.Can someone please help me with on the point solution, and if non exist I would have to use some bypass, maybe even make my own php code – which I rather avoid.
Thanks for reading and helping!
Techical: using 4.1 WP and latest bbpress.Hello,
I am tired but couldn’t find a way to stop converting a simple url text into a hyperlink url.This is where I working >> http://www.punjabi.cc/topics/zikar-lyrics-jagjeet-kooner/
Is there any way I can remove this filter, even the code below returns no desired result.
remove_filter( 'bbp_get_reply_content', 'make_clickable'); remove_filter( 'bbp_get_topic_content', 'make_clickable');How to remove this?, Please help me guyz…
Topic: Edit reply – blank page
After installing BBPress nothing was working, I could see a list of forums if I went to /forums/ but nothing appeared to create a new forum or post, and no form appeared to enter a reply. I rebuilt the pages using the shortcodes and this worked great, but if I click “Edit” on a reply I get a page with no content.
Here is the code I am using in my main template to make the BBPress items show up:
<?php if (is_bbpress()) : ?> <section id="content" class="grid-block"><h3 class="page-subtitle"><?php echo $this['config']->get('Subtitle'); ?></h3> <?php if(!is_user_logged_in()) { echo do_shortcode("[bbp-login]"); } else { echo 'bbpress page'; $forum_id = get_the_ID(); if( get_post_type( $forum_id ) == 'page') { echo do_shortcode("[bbp-forum-index]"); } echo do_shortcode("[bbp-single-forum id=" . $forum_id . "]"); echo do_shortcode("[bbp-single-topic id=" . $forum_id . "]"); } ?>I can’t find a shortcode for the reply edit form. How can I made the reply edit form appear on a page?
Also none of the forms worked until I added this to the functions.php:
add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 ); function my_bbp_verify_nonce_request_url( $requested_url ) { return 'http://localhost:8088/mySite/' . $_SERVER['REQUEST_URI']; }I am using a woo-theme with their warp system, I think it does not work well with bbpress.
Please, how can I made the edit form appear? There appears to be no shortcode for that.
Hi. i want to add custom html under the keymaster’s name in his reply.
My html is:<p class="supportteam">I im in supporting group</p>I have all bbpress’s files in my theme and think that the loop-single-reply.php should be modify but can’t find the correct solution to do it.
Here is my purpose: http://i.cubeupload.com/ZSr3pR.png
my loop-single-reply.php :<div id="post-<?php bbp_reply_id(); ?>" <?php bbp_reply_class(); ?>> <div class="bbp-reply-author"> <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php bbp_reply_author_link( array( 'type' => 'avatar', 'show_role' => false ) ); ?> <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> </div><!-- .bbp-reply-author --> <div class="bbp-meta"> <?php bbp_reply_author_link( array( 'type' => 'name', 'show_role' => false ) ); ?> " title="<?php bbp_reply_title(); ?>" class="bbp-reply-permalink"><span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span> <!--HERE IS a place for my new code --> </div> <div class="bbp-reply-content"> <?php do_action( 'bbp_theme_before_reply_content' ); ?> <?php bbp_reply_content(); ?> <?php do_action( 'bbp_theme_after_reply_content' ); ?> </div><!-- .bbp-reply-content --> <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?> <?php $args = array ( 'id' => 0, 'before' => '<span class="bbp-admin-links">', 'after' => '</span>', 'sep' => ' / ', 'links' => array() ); bbp_reply_admin_links( $args ); ?> <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?> </div><!-- #post-<?php bbp_reply_id(); ?> -->I tried this code but it does not work:
<?php
$role=bbp_get_reply_author_role();
if($role == 'keymaster'){echo '<p class=="supportteam">I im in supporting group</p>';}
?>
It not show anythings!
Can you help me to correct this code?
When i use this:
$role=bbp_get_reply_author_role();
echo $role;
it print reply author’s role.My users login to bbpress via a login page with the shortcode, rather than via the sidebar widget. i’d like to redirect them to the forum or topic they came from when they clicked the login link, just as the sidebar widget does. But I don’t know how to make that work – at the moment it just redirects back to the login page after logging in.
Is there any way to achieve this?
Thanks
Hi all,
Just a question:
I use Kleo Template and bbpress as forum.
As of now, the layout is like the ordinary going through the forum.
Like this:Forum Index –> Topics list –> Full topic/text with reply field below.
I would like to have it more like Facebook.
But I’d still need multiple forum IDs.For example:
If I have a page with different ‘tabs’ (called perhaps: Forum1, Forum2 etc.) to show the contents of different forum-IDs, I’d like them to show the full topics for this specific forum.
AND it should have a reply function below each of these topics.This is how Facebook is doing it, and it makes a very direct access to the topics and easy access to reply.
I’m not sure if this is possible, without the need to change alot of code?
Thanks.
I would like to implement this for all those boring long quotes, and quote inside quote, inside quote, etc…
It would make reading forum topics much more pleasant.One click and long quote opens at whole. There is scroll if you dont want to click.
I managed this easy with CSS3 and transitions, but there is very nasty problem on mouse out and page jumping, confusing to know where on page you are after this.