Author |
Message |
buildingmaster01
Regular


Joined: Dec 11, 2004
Posts: 68
Location: Indiana, USA
|
Posted:
Fri Feb 18, 2005 7:15 pm |
|
Okay, so I changed hosts. My old one was terrible and quit, and the person who took his place lowered his limits to rediculous levels for my site.
I am at a new host, and I want to try and save enough money to buy a hosting plan or buy a domain at least. I signed up with Targetpoint since they allow PayPal payments, and I didn't want to give out my SSN.
I would of used Google adsense, but my parents won't even let me use my own credit card to buy a $4 domain name from Yahoo. I don't even have a checking account to link to PayPal after I would deposit the check.
I want to put the ads into a banner, but the code isn't HTML (javascript, of course). I want to create a block displaying the banner, but I haven't learned how to put this type of code into a phpnuke block (without getting sentinel upset at me). The banners feature in phpnuke seems kind of useless. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Feb 19, 2005 1:50 am |
|
Use the Banner system that comes with Nuke. It's sufficient for starting out
As to NukeSentinel not allowing JavaScript, It (and base nuke btw) will not allow JS in an HTML block, but they have no problem with regular blocks in the block folder. |
|
|
|
 |
buildingmaster01

|
Posted:
Sat Feb 19, 2005 8:46 pm |
|
Yeah, I am good on that part, but I guess my question is more of coding php then anything else. If I create my own block, I know how to put HTML code into php, but is javascript any different to do?
I think the banners feature is out of the question. There is in link URL, nor is there a link image. It is PPC, too. Although impression payments wouldn't be bad if I could find someone. |
|
|
|
 |
Raven

|
Posted:
Sat Feb 19, 2005 9:12 pm |
|
|
|
 |
buildingmaster01

|
Posted:
Sat Feb 19, 2005 9:43 pm |
|
That's what I have been looking for! Thank you!  |
|
|
|
 |
buildingmaster01

|
Posted:
Sun Feb 20, 2005 5:14 pm |
|
I got that done. Thanks again! |
|
|
|
 |
buildingmaster01

|
Posted:
Thu Feb 24, 2005 4:07 pm |
|
It works for me, and some of my friends, but some of my other friends don't see the content in the block. Any idea why? |
|
|
|
 |
buildingmaster01

|
Posted:
Mon Feb 28, 2005 5:17 pm |
|
Can I post the JS/php code in the code tags without getting blocked? (Thought I might want to ask before trying.) |
|
|
|
 |
ecvej
Hangin' Around

Joined: Oct 10, 2004
Posts: 45
Location: Northampton, UK
|
Posted:
Mon Feb 28, 2005 5:28 pm |
|
place a space in the word <scr ipt> |
|
|
|
 |
buildingmaster01

|
Posted:
Wed Mar 02, 2005 7:17 pm |
|
I edited it a little just to avoid giving out my customer id number, but this is basically it. I can probably get rid of a couple lines to simplify it, but I don't want to mess around with their code. I am new to php, so it is probably a little, stupid mistake. It was odd though. Worked for me and some of my friends for awhile.
Code:
<?php
if (eregi("block-banners.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = <<<_JS_
<scr ipt type="text/javascr ipt">
<!--
customer_id = '257';
cid = 60;
b_type = 1;
b_adults = 1;
b_skip = "mp3";
b_width = 120;
b_height = 600;
b_links = 4;
b_orientation = 1;
b_preset = "0!3!%Lots of numbers here!1!6 ";
//-->
</scr ipt>
<scr ipt type="text/javascr ipt" src="http://srs.targetpoint.com/banner.js"></scr ipt>
_JS_;
?>
|
|
|
|
|
 |
buildingmaster01

|
Posted:
Sat Mar 12, 2005 4:42 pm |
|
Whoops! Forgot to put a space when I tried to post it last time. Sorry Raven! This file keeps going bad. I have even tried...
Code:
<?php
if (eregi("block-banners2.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<scr ipt type=\"text/javascr ipt\"> ";
$content .= "<!-- ";
$content .= "customer_id = '257'; ";
$content .= "cid = 60; ";
$content .= "b_type = 1; ";
$content .= "b_adults = 2; ";
$content .= "b_skip = \"\"; ";
$content .= "b_width = 120; ";
$content .= "b_height = 600; ";
$content .= "b_links = 4; ";
$content .= "b_orientation = 1; ";
$content .= "b_preset = \"0!3Lots of number and signs here$5!4!9 8!1!6 \"; ";
$content .= "//--> ";
$content .= "</scr ipt> ";
$content .= "<scr ipt type=\"text/javascr ipt\" src=\"http://srs.targetpoint.com/resources/inc/banner.js\"></scr ipt>";
?>
|
|
|
|
|
 |
buildingmaster01

|
Posted:
Sat Mar 26, 2005 6:33 pm |
|
Bump! I want Raven to see that I tripped sentinel when editing my last post, so I am not blocked later on. |
|
|
|
 |
|