Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Countryman98
Hangin' Around



Joined: Feb 24, 2005
Posts: 30

PostPosted: Thu Nov 24, 2005 5:48 pm Reply with quote

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?
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Nov 24, 2005 6:09 pm Reply with quote

You mean like a simple target blank ?
 
View user's profile Send private message
Countryman98







PostPosted: Thu Nov 24, 2005 6:52 pm Reply with quote

Yes, a banner graphic that when clicked on opens a target_blank with the banners URL

Must be center block

Thanks for the reply
 
hitwalker







PostPosted: Thu Nov 24, 2005 6:56 pm Reply with quote

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...
 
Countryman98







PostPosted: Thu Nov 24, 2005 7:02 pm Reply with quote

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.
 
hitwalker







PostPosted: Thu Nov 24, 2005 7:07 pm Reply with quote

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..
 
Countryman98







PostPosted: Thu Nov 24, 2005 8:32 pm Reply with quote

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>";

?>
 
Countryman98







PostPosted: Thu Nov 24, 2005 8:33 pm Reply with quote

sorry now graphic should be NO graphic
 
Countryman98







PostPosted: Thu Nov 24, 2005 8:47 pm Reply with quote

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?
 
hitwalker







PostPosted: Fri Nov 25, 2005 7:14 am Reply with quote

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..
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Nov 25, 2005 10:17 am Reply with quote

The problem is caused by not using the FULL path to the url.
Using just www.takemehere.com can sometime get the nuke url added to the beginning of the url thus;
http://www.mysite.com/www.takemehere.com

If you use the full url you should have no problem. Smile
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©