BuddyPress Activity Plus
Adding target="_blank" to links (1 post)

  1. Number_6
    Posted 2 years ago #

    Hi folks. I've made it so that my activity stream links open with _blank, but the Activity Plus plugin doesn't include that.
    I'm illiterate when it comes to php, so I don't know where I could do that.

    I found a thread on that Buddypress premium site and an attachment was added of a modified version of link_tag_template.php. You have to be a premium member to download, so I thought I'd investigate myself.

    <div class="bpfb_final_link">
    	<?php if ($image) { ?>
    	<div class="bpfb_link_preview_container">
    		<a href="<?php echo $url;?>"><img src="<?php echo $image; ?>" /></a>
    	<?php } ?>
    	<div class="bpfb_link_contents">
    		<div class="bpfb_link_preview_title"><?php echo $title;?></div>
    		<div class="bpfb_link_preview_url">
    			<a href="<?php echo $url;?>"><?php echo $url;?></a>
    		<div class="bpfb_link_preview_body"><?php echo $body;?></div>

    If I figure this out for myself I will return and answer my own question.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.