Search Results for 'code'
-
Search Results
-
Hi everyone!
I’m using a members plugin called UserPro. I’m trying to integrate bbPress forums with the user profiles created through UserPro.
All I’m trying to do is replace the user’s photo and username links to instead link to the UserPro profiles.
The plugin’s developer gave users his own CSS changes to the “Loop-single-topic”, “Loop-single-reply” and the “loop-single-forum” .php files.
Though his supplied CSS works in terms of replacing the links, it also breaks the look of the entire forum and removes all of the info below the user’s pic and name.
Here’s the default “loop-Single-reply”:
<?php /** * Replies Loop - Single Reply * * @package bbPress * @subpackage Theme */ ?> <div <?php bbp_reply_class(); ?>> <div class="bbp-reply-author"> <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php bbp_reply_author_link( array( 'sep' => '', 'show_role' => true ) ); ?> <div class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></div> <div class="bbps-post-count"><?php printf( __( 'Post count: %s', 'Avada' ), bbp_get_user_reply_count_raw(bbp_get_reply_author_id()) ); ?></div> <?php if ( bbp_is_user_keymaster() ) : ?> <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?> <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div> <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?> <?php endif; ?> <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header clearfix"> <div class="bbp-meta"> <?php if ( bbp_is_single_user_replies() ) : ?> <span class="bbp-header"> <?php _e( 'in reply to: ', 'bbpress' ); ?> <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a> </span> <?php endif; ?> <a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id(); ?></a> <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?> <?php bbp_reply_admin_links( array ( 'after' => '<span class="admin_links_sep"> | </span></span>') ); ?> <?php do_action( 'bbp_theme_after_reply_admin_links' ); ?> </div><!-- .bbp-meta --> </div><!-- #post-<?php bbp_reply_id(); ?> --> <div class="bbp-reply-entry"> <?php do_action( 'bbp_theme_before_reply_content' ); ?> <?php bbp_reply_content(); ?> <?php do_action( 'bbp_theme_after_reply_content' ); ?> <div class="bbp-arrow"></div> </div> </div><!-- .bbp-reply-content --> </div><!-- .reply -->Here’s his supplied CSS:
<?php /** * Replies Loop - Single Reply * * @package bbPress * @subpackage Theme */ ?> <div <?php bbp_reply_class(); ?>> <div class="bbp-reply-author"> <?php do_action( 'bbp_theme_before_reply_author_details' ); ?> <?php /* Integrating UserPro */ global $userpro; $link = preg_replace("/(?<=href=(\"|'))[^\"']+(?=(\"|'))/", $userpro->permalink( bbp_get_reply_author_id() ), bbp_get_reply_author_link( array( 'sep' => '<br />', 'show_role' => false ) ) ); echo $link . userpro_show_badges( bbp_get_reply_author_id() ); ?> <?php if ( bbp_is_user_keymaster() ) : ?> <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?> <div class="bbp-reply-ip"><?php bbp_author_ip( bbp_get_reply_id() ); ?></div> <?php do_action( 'bbp_theme_after_reply_author_admin_details' ); ?> <?php endif; ?> <?php do_action( 'bbp_theme_after_reply_author_details' ); ?> </div><!-- .bbp-reply-author --> <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 --> </div><!-- .reply -->I would be grateful to get any assistance on how I might change the links alone without modifying or breaking everything else. Thanks so much in advance.
I’m using the Avada theme.
Hey there,
I have a forum on my website but the BBcode buttons have white text which makes them practically invisible. Is there custom CSS I can apply to make the font color of these buttons black? I’ve attached an image.

Hi
We are using this plug in for one of our clients. Their site just went live after being designed, built, and tested on our beta server. Everything worked great, so we moved it to the live server this week.
However, now that they’re on the live site, new forum users are not receiving their email notifications containing their password. In Beta, there was no email “link” as far as I could tell between the Beta site and our hosting. When a new user would register, they would receive an email from wordpress@clientname.org. Within our hosting back end, I can see that emails were actually sent from ourusername@ourbetaserver.com.
Within the Dashbaord/Settings/General, I’ve made certain that the email account listed on that screen matches what was set up with their hosting provider. I’ve dug through the files until I can see code with my eyes close and cannot figure out how to make this work again.
I’ve just now learning development, so please help (at a 101 level). I appreciate any insight!!
Hi
I am setting up a new BBPRess forum and I have changed the default reply order to descending so new replies begin at the top. So far so good.
However, when a new reply is submitted the user is taken to the other end of the thread rather than to the newest end. Is there a tweak I need to the reverse order code?
this is what I have in my functions:
function custom_bbp_has_replies() { $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending) return $args; } add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );thanks for any help.
Hi,
I using this two shortcode ( [bbp-login], [bbp-lost-pass] ) in my page.With debug, I saw that there is a tag <tt> (teletype) before and after the paragraph tag.
I would remove this tags so the style is equals in all site.
How can I resolve?
Thanks.
Topic: Import from vBulletin
Hi folks. Saw this page, https://codex.bbpress.org/import-forums/vbulletin/
It hasn’t been updated in 2 years. Just wondering if there are any improvements made to this tool?
Some of my concerns are these listed:
1. Custom vBulletin BBCodes are not supported eg. [youtube] – You will have to manually change these yourself either before importing in vBulletin or after importing into bbPress using phpMyAdmin.
2. All ‘Ordered Lists’
- will be displayed as numerical lists.
3. You may find extra page breaks <br> and paragraph <p> elements in topics and replies and is less than ideal and is from the way the BBCodes are converted during the forum import conversion. You will find these primarily around ‘blockquotes’ and ‘lists’
In regards to
#1 If I create the exact bbocodes in BBPress prior to the import, I assume this would rectify this area correct?
#2 This is definitely not good. I’m hoping someone knows a trick around this.
#3 Same as above.Hi, what code can I add to my functions that would basically allow all other roles tags to show but keep the tag participant at a display none ?
( note: hopefully there is a function for this so core files could be avoided ? but if not what is the name of the core file id be looking for )
– Thank you
Topic: bbp-forum-index issues
I am new to bbPress and am troubleshooting some issues. I created a page and am using the [bbp-forum-index] shortcode, but only around 50 of 80 forums are listed and there is no pagination to list the rest on successive pages. What am I missing and/or doing wrong?
i use twentythirteen theme as my parent theme and bbpress plugin to bulid my forum. In the search results page, the first result format is a bit different with the others.
according to my understanding, the execute order is: page.php->content-search.php->loop-search.php->loop-search-topic.php
in page.php:<div class="entry-content"> <?php the_content(); ?> </div><!-- .entry-content -->in content-search.php:
<?php bbp_get_template_part( 'loop', 'search' ); ?>in loop-search.php:
<?php while ( bbp_search_results() ) : bbp_the_search_result(); ?> <?php bbp_get_template_part( 'loop', 'search-' . get_post_type() ); ?> <?php endwhile; ?>in loop-search-topic.php:
<div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div>If there are three topics,the results should be:
<div class="entry-content"> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div>However, the result is:
<div class="entry-content"> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> </div> </div> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>> <div id="post-<?php bbp_topic_id(); ?>" <?php bbp_topic_class(); ?>>The first element is inside <div class=”entry-content”> tag.