Results 1 to 2 of 2

Thread: RSS Display Boxes - Need Links To Open In New Tab

  1. #1
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS Display Boxes - Need Links To Open In New Tab

    1) Script Title: outputbody.php

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...laybox_ref.htm

    3) Describe problem:I have the installed version on my server and it is functioning flawlessly. What I need is all of the links generated by RSS Display Boxes to open in a new tab and I'm not sure if the "attr. target _blank" function can be used and if it can where or how to place it. Simple Pie doesn't seem to have a function for this so i'm hoping to get some insight here.

    Thanks,

    Worm
    Last edited by worm82075; 03-22-2011 at 12:40 AM. Reason: resolved

  2. #2
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Figured it out.

    I figured out where i needed to place the code in order for all of my RSS feeds to open in a new tab.

    Open the "outputbody.php and edit the following into any of your template's "rsstitle" div class.
    Code:
    target="_blank"
    original code:
    Code:
    <div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>><?php echo $item->get_title(); ?></a></div>
    Changed code:
    Code:
    <div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>"target="_blank"><?php echo $item->get_title(); ?></a></div>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •