Forum Replies Created
-
In reply to: Username list for each voice
Curiously if I write the code in “functions.php” that break my login/logout/edit profile page and display a blank page. I have moved the code in “my-plugins” and no issue now.
Thank you for your information and your patience _ck_, I will try to solve my last problem by my self.
Edit: solved with :
foreach ($results as $result){$list.=" ".bb_get_avatar($result->ID, 20, $default)."<a href='".bb_get_option('uri')."profile/".$result->user_login."'>".$result->user_login." </a>";}
In reply to: Display Forum name + link in the Topics listHi, bb-gian
If you want this in “front-page” latest topic you can try this:
<a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id); ?></a>
or if you just want show all categories:
<a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>
In reply to: Pagination bug?I edited my first post:
try add / to your forum url in “settings > general > bbPress address (URL) “
In reply to: Pagination bug?Hi Kar-l,
I think the 2 errors are the special chars “Następna” .
or if this is “href” try add / to your forum url in “settings > general > bbPress address (URL) “
In reply to: Display the Author of a topicHi, bb-gian
Try this:
<?php topic_author(); ?>
In reply to: "The tag was not removed."I use my own personal custom theme and it’s works for me.
I just tried replace “topic-tags.php” from kakumei in the theme in your link, no issue.
Sorry for my bad english.
In reply to: Username list for each voiceHi,
I want to add a link to the profile page:
foreach ($results as $result){$list.=" <li class='list_b'>".bb_get_avatar($result->ID, 25, $default)."<a href='" .$result->user_profile_link. "'>".$result->user_login."</a></li> ";}
I tried
.$result->user_profile_link.
, but it doesn’t work, any idea ?In reply to: Username list for each voiceThanks a lot _CK_ !!!
It works with “Kakumei”, I need to re-check my custom Template, because nothing seems to appear.
In reply to: "The tag was not removed."I had the same problem when I wanted to upgrade an old theme, when I have update to 1.0 I could not remove tags, for solve this issue I copied “topic-tag.php” from kakumei to my custom theme.
I think this isn’t the best practice but you can try this for the moment:
If you use a custom template, edit with a text editor:
my-templates/(name_of_your_templates)/front-page.php
after:
<?php bb_get_header(); ?>
add:
<?php if ( bb_is_user_logged_in() ) : ?>
before :
<?php bb_get_footer(); ?>
add :
<?php else : ?>
<?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
<?php endif; // bb_is_user_logged_in() ?>do the same for:
my-templates/(name_of_your_templates)/topic.php
my-templates/(name_of_your_templates)/forum.php
my-templates/(name_of_your_templates)/profile.php
my-templates/(name_of_your_templates)/tags.php
my-templates/(name_of_your_templates)/tag-single.php
my-templates/(name_of_your_templates)/view.php
but your forums posts can allways be read trough the rss feed..
In reply to: Username list for each voiceThank’s _CK_ !!
But, your code doesn’t seem to work in bbPress 1.0 (I tried to add it in functions.php or directly in topic.php).
However I have no problem if I add your code in bbPress 9.0 theme.
I want to add ”
<?php echo bb_get_avatar( $poster_id->ID, $size , $default); ?>
” in your code, but I can not ?Hi, dan90036
Try this:
<?php if ( bb_is_user_logged_in() ) : ?>
HTML content for registred user
<?php else : ?>
HTML content for unregistred user
<?php endif; // bb_is_user_logged_in() ?>In reply to: Username list for each voiceThanks for your reply!
And if I want to create a list of each users who marked the topic as a favorite, this is the same problem ?
In reply to: Show (gr)avatar on frontpageHi,
You don’t need any plugin for doing this, check this topic https://bbpress.org/forums/topic/custom-avatar-function-broken-in-10-rc2
In reply to: Custom avatar function broken in 1.0 rc2Ok, I find a solution :
<?php echo bb_get_avatar( $member->ID ); ?>
In reply to: IF User is logged in DO, if not DO…Hi,all
I use this for display “add new topic”, try:
<?php if ( bb_is_user_logged_in() ) : ?>
HTML
<?php endif; // bb_is_user_logged_in() ?>