Closed (fixed)
Project:
External Links
Version:
5.x-1.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2007 at 16:05 UTC
Updated:
5 Jan 2009 at 00:20 UTC
Hey, I have a news section on my site that has external links to the news stories so I'm wanting the external link to open with a banner frame at the top to allow my users to be able to navigate back to my site once they have finished reading the article.
Can you add an option to have a banner at the top of the external page?
Thanks.
Comments
Comment #1
vkr11 commented+1
Comment #2
SolomonGifford commentedThis seems like a really easy modification. For a reasonable bounty I'd be willing too take a stab at it. solomongifford at gmail dot com.
Comment #3
quicksketchDuplicate of http://drupal.org/node/134949
Comment #4
never123456 commentednow.. we will create 2 files
outgoinglink.php
frame.php
outgoinglink.php
frame.php
in your template file for example node.tpl your put to
http://xxx.com/outgoinglink.php?url=before<?php print $link ?>FOR EXAMPLE THIS node.tpl file sends users to external link in new page with a banner .dont forget put your banner image to frame.php...
<a target="_blank" href="http://yourdomainname.com/outgoinglink.php?url=<?php print $link ?>" title="<?php print $title ?>"><?php print $title ?></a>Comment #5
vkr11 commentedThis is great suggetion.
If you add "in your template file for example node.tpl your put to http://xxx.com/outgoinglink.php?url= before
print $link" will this convert only the external links to something like this? Also will the extlink icon show up next to the link?Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
taqwa commented@never123456: Thanks for your code. Do you know if there is a way of providing the $node variable to the frame.php file?