Author |
Message |
Countryman98
Hangin' Around
![](modules/Forums/images/avatars/blank.gif)
Joined: Feb 24, 2005
Posts: 30
|
Posted:
Thu Nov 24, 2005 5:48 pm |
|
Hi All,
Am looking for a Center block for phpnuke that has a "Set" banner that will open a popup windows to the banners url when clicked on.
Please note : this banner is to be "outside" the phpnuke banner system..
Can anyone help please? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Thu Nov 24, 2005 6:09 pm |
|
You mean like a simple target blank ? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Countryman98
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 6:52 pm |
|
Yes, a banner graphic that when clicked on opens a target_blank with the banners URL
Must be center block
Thanks for the reply |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 6:56 pm |
|
Well i think that that others that read this are a bit puzzled.
Can you tell me what code your planning to put in the center block?
Cause its a bit confusing cause you talk about outside... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Countryman98
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 7:02 pm |
|
Hi there,
Sorry to confuse. What i mean is i want to put a banner image into the block manually not using the "banner system" that is standard with phpnuke.
A simple center block with banner.gif for example that when clicked on opens a target_blank window to the banners URL.
Hope this clarifys things. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 7:07 pm |
|
oh ok..
Well lets look at this sample block...
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$content = "<center><a href=\"www.advertiser.com\" target=\"_blank\"><img src=\"images/banner/adverstiser.jpg\"></a></center>";
?>
It should be like this.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Countryman98
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 8:32 pm |
|
I have copied this and have the graphic file in the right directory and i get the text but now graphic?
Any ideas why?
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
$content = "<center><a href=\"www.netguide.co.nz\" target=\"_blank\"><img src=\"images/netguide.jpg\" alt=\"Vote For Us!\" title=\"Vote For Us!\"></a></center>\n";
$content = "<center>Vote for us in the Netguide 2006 Webawards.<br>Best Entertainment Categorie!</center>";
?> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Countryman98
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 8:33 pm |
|
sorry now graphic should be NO graphic |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Countryman98
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 24, 2005 8:47 pm |
|
ok fixed the above problem (forgot the . on second $content line)... now im finding that the link is automatically adding my own sites URL before the url i want the link to go to..
ie : www.mysite.co.nz/www.netguide.co.nz
i have also found that this happens in links that i include when i send out newsletters etc can someone shed some light on this one please? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 25, 2005 7:14 am |
|
well,
using it like this works normal so i dont know what should be wrong.
<center><a href="http://www.netguide.co.nz" target="_blank"><img src="images/netguide.jpg" alt="Vote For Us!" title="Vote For Us!"></a></center>
<center>Vote for us in the Netguide 2006 Webawards.<br>Best Entertainment Categorie!</center>
And i dont know how links would show in newsletters,i never send them.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri Nov 25, 2005 10:17 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|