• Resolved xbladerunner

    (@xbladerunner)


    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 2 years, 3 months ago by xbladerunner.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nick

    (@nickchomey)

    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://www.ads-software.com/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?

    Plugin Author Nick

    (@nickchomey)

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

    Thread Starter xbladerunner

    (@xbladerunner)

    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 2 years, 3 months ago by xbladerunner.
    Thread Starter xbladerunner

    (@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 2 years, 3 months ago by xbladerunner.
    Plugin Author Nick

    (@nickchomey)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom html in link text’ is closed to new replies.