-
Author
-
November 5, 2014 at 04:25 #34127pittsleybParticipant
I have disabled favorites and subscriptions and would like to move tags to the favorites location and style it like the author and posts (small uppercase). Is this possible.
Attachments:
You must be logged in to view attached files.November 6, 2014 at 02:18 #34301sharmstrModeratorI tried to figure this out for you twice today :/ I know the call that creates the tag and where it lives, I’m just having a hard time injecting it where you want. Kleo doesnt touch that location. Its all handled by bbpress. Have you asked over there?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 6, 2014 at 02:30 #34314pittsleybParticipantI couldnt figure it out either, I tried and tried to move it down. I can move the tags other places just not there, lol.
November 6, 2014 at 04:37 #34326sharmstrModeratorI have a plugin called bbPress go to first unread post. That injects a ‘mark as read’ right next to the favorite and subscribe links. I took a quick look and I think its using the bbp_theme_after_topic_title filter to do it. That’s as far as I got.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 15:03 #34520sharmstrModeratorI got it. I totally forgot that I had made my ‘mark topics read’ plugin print out next to the favorite and subscribe links.
Anyhow, copy plugins/bbppress/templates/default/bbpress/loop-replies.php to /kleo-child/bbpress/loop-replies.php
Add the following after _e(‘posts’,’bbpress’) around like 25
COPY CODE<small><?php bbp_topic_tag_list(); ?></small>
Then copy /kleo/bbpress/content-single-topic.php to /kleo-child/bbpress-content-single-topic.php and comment out bbp_topic_tag_list function around line 24.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 16:32 #34546pittsleybParticipantYou sir, are the man. That worked but it is smaller than the author and posts and not lined up as shown in the screenshot. I will work on it.
Attachments:
You must be logged in to view attached files.November 7, 2014 at 16:35 #34551pittsleybParticipantI floated it right with a div and that worked to remove the spacing, now working on the style to match.
November 7, 2014 at 16:36 #34552sharmstrModeratorHmmm. Well I put the <small> tags around it because you said in your first post that you wanted them like the post meta. Try removing those.
Also, I’m not a man. 😀
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 16:42 #34558pittsleybParticipantWell you are a queen then lol. Yep, I just wanted it to match the Author and post font but cant figure that out.
November 7, 2014 at 18:27 #34576sharmstrModeratorI am the queen. Look how many crowns I have. LOL. just kidding.
Do this instead. Change your function call in the loop to this.
COPY CODE<?php echo my_bbp_get_topic_tag_list(); ?>
Then in your functions.php file add this
COPY CODEfunction my_bbp_get_topic_tag_list( $topic_id = 0, $args = '' ) { // Bail if topic-tags are off if ( ! bbp_allow_topic_tags() ) return; // Parse arguments against default values $r = bbp_parse_args( $args, array( 'before' => '<span class="bbp-topic-tags" style="float:right;"><small class="meta-category">' . esc_html__( 'Tagged:', 'bbpress' ) . ' ', 'sep' => ', ', 'after' => '</small></span>' ), 'get_topic_tag_list' ); $topic_id = bbp_get_topic_id( $topic_id ); // Topic is spammed, so display pre-spam terms if ( bbp_is_topic_spam( $topic_id ) ) { // Get pre-spam terms $terms = get_post_meta( $topic_id, '_bbp_spam_topic_tags', true ); // If terms exist, explode them and compile the return value if ( !empty( $terms ) ) { $terms = implode( $r['sep'], $terms ); $retval = $r['before'] . $terms . $r['after']; // No terms so return emty string } else { $retval = ''; } // Topic is not spam so display a clickable term list } else { $retval = get_the_term_list( $topic_id, bbp_get_topic_tag_tax_id(), $r['before'], $r['sep'], $r['after'] ); } return $retval; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
November 7, 2014 at 18:42 #34581pittsleybParticipantthe other way worked as well, what is the difference?
November 7, 2014 at 18:48 #34583pittsleybParticipantgot it with this
<div style="float: right; font-size: 13px"><?php bbp_topic_tag_list(); ?></div>
November 7, 2014 at 18:50 #34584pittsleybParticipantHere is the working screen
Attachments:
You must be logged in to view attached files.November 7, 2014 at 19:04 #34587sharmstrModeratorThe other way printed out a div, as you’ve figured out. I put the small tag on there because you said you wanted them to be like the post meta 🙂
So, you’re set now?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.