WPIntell

Source evidence

custom html in link text

Post Comments as bbPress Topics · support · 2022-08-28T18:40:00+00:00

mixedsentiment
highseverity
0.95relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 30 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

24 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
xbladerunner resolved
For years I’ve been using html center tags and bold tags to customize my link text, but this suddenly stopped working. The tags are now displayed with the link text on the front end, whereas prior to this, only the link text would display, centered and bold. I’m wondering if it is related to anything in the most recent updates, or if you have any ideas on how to remedy my situation. This topic was modified 3 years, 9 months ago by xbladerunner . Almost certainly due to recent updates that we were forced to make by the plugin mods… The plugin is unlikely to be modified much, so you could override the code if that’s something you know how to do. See this recent question for some details https://wordpress.org/support/topic/no-button-16/ @robin-w We should give some thought as to how we can appease the plugin lords while giving users ability to present what they want on the front end… Perhaps a filter that a snippet could hook into? Though it would be frankly ludicrous to require all users to create a snippet… Maybe we can selectively revert some of the required changes? @xbladerunner can you share the exact text and tags that you are trying to display, and where you’ve input it? Thanks @nickchomey — Here’s the text and tags I’m trying to display: <center><b>CLICK HERE</b> to join the discussion of this post in our discussion forums.</center> I’ve put this in “bbPress Topics for Posts Strings”, where it says “Link text (when showing only a link to the topic):”. ` Thank you for the link to the discussion– haven’t tried it yet, but it looks like it gives me the steps to do exactly what’s needed. Hate to lose it with a plugin update, though. This reply was modified 3 years, 9 months ago by xbladerunner . I can marked as resolved, as I finished customizing the plugin to do what I need. Thank you again for the lead on it. Would love to see a plugin update that makes my hack obsolete. Happy to leave the thread open for that discussion. I’ll close it unless I hear otherwise. Here’s what I did, replacing the original line in the plugin /templates file comments-bbpress-link.php: <!--ORIGINAL LINE <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo esc_attr($link_text) ; ?></a>--> <!--SUGGESTION FROM POST, CREATES A BUTTON BUT NO CUSTOM HTML OPTIONS <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<button>" . esc_attr($link_text) . "</button>"; ?></a>--> <!--THIS ONE DOES WHAT I WANT BUT WITHOUT BUTTON EFFECT <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<b>CLICK HERE</b> to join the discussion of this post in our discussion forums." ; ?></a>--> <!--THIS ONE DOES BOTH--><a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<button>" . "<b>CLICK HERE</b> to join the discussion of this post in our discussion forums." . "</button>"; ?></a> This reply was modified 3 years, 9 months ago by xbladerunner . Great to hear. I’ll just close it but hopefully @robin-w and I will find time to make a better solution for this issue as this sort of customization should not be necessary.

Comments

5 shown
Nick 2022-08-28T19:13:00+00:00

Almost certainly due to recent updates that we were forced to make by the plugin mods… The plugin is unlikely to be modified much, so you could override the code if that’s something you know how to do. See this recent question for some details https://wordpress.org/support/topic/no-button-16/ @robin-w We should give some thought as to how we can appease the plugin lords while giving users ability to present what they want on the front end… Perhaps a filter that a snippet could hook into? Though it would be frankly ludicrous to require all users to create a snippet… Maybe we can selectively revert some of the required changes?

Nick 2022-08-28T19:15:00+00:00

@xbladerunner can you share the exact text and tags that you are trying to display, and where you’ve input it?

xbladerunner 2022-08-28T21:43:00+00:00

Thanks @nickchomey — Here’s the text and tags I’m trying to display: <center><b>CLICK HERE</b> to join the discussion of this post in our discussion forums.</center> I’ve put this in “bbPress Topics for Posts Strings”, where it says “Link text (when showing only a link to the topic):”. ` Thank you for the link to the discussion– haven’t tried it yet, but it looks like it gives me the steps to do exactly what’s needed. Hate to lose it with a plugin update, though. This reply was modified 3 years, 9 months ago by xbladerunner .

xbladerunner 2022-08-29T04:15:00+00:00

I can marked as resolved, as I finished customizing the plugin to do what I need. Thank you again for the lead on it. Would love to see a plugin update that makes my hack obsolete. Happy to leave the thread open for that discussion. I’ll close it unless I hear otherwise. Here’s what I did, replacing the original line in the plugin /templates file comments-bbpress-link.php: <!--ORIGINAL LINE <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo esc_attr($link_text) ; ?></a>--> <!--SUGGESTION FROM POST, CREATES A BUTTON BUT NO CUSTOM HTML OPTIONS <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<button>" . esc_attr($link_text) . "</button>"; ?></a>--> <!--THIS ONE DOES WHAT I WANT BUT WITHOUT BUTTON EFFECT <a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<b>CLICK HERE</b> to join the discussion of this post in our discussion forums." ; ?></a>--> <!--THIS ONE DOES BOTH--><a href="<?php bbp_topic_permalink( $bbp_post_topics->topic_ID ); ?>"><?php echo "<button>" . "<b>CLICK HERE</b> to join the discussion of this post in our discussion forums." . "</button>"; ?></a> This reply was modified 3 years, 9 months ago by xbladerunner .

Nick 2022-08-29T14:02:00+00:00

Great to hear. I’ll just close it but hopefully @robin-w and I will find time to make a better solution for this issue as this sort of customization should not be necessary.