Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
buildingmaster01
Regular
Regular



Joined: Dec 11, 2004
Posts: 68
Location: Indiana, USA

PostPosted: Fri Feb 18, 2005 7:15 pm Reply with quote

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.
 
View user's profile Send private message Yahoo Messenger MSN Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Feb 19, 2005 1:50 am Reply with quote

Use the Banner system that comes with Nuke. It's sufficient for starting out Smile

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.
 
View user's profile Send private message
buildingmaster01







PostPosted: Sat Feb 19, 2005 8:46 pm Reply with quote

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







PostPosted: Sat Feb 19, 2005 9:12 pm Reply with quote

http://www.ravenphpscripts.com/postt28.html
 
buildingmaster01







PostPosted: Sat Feb 19, 2005 9:43 pm Reply with quote

That's what I have been looking for! Thank you! Very Happy
 
buildingmaster01







PostPosted: Sun Feb 20, 2005 5:14 pm Reply with quote

I got that done. Thanks again!
 
buildingmaster01







PostPosted: Thu Feb 24, 2005 4:07 pm Reply with quote

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







PostPosted: Mon Feb 28, 2005 5:17 pm Reply with quote

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

PostPosted: Mon Feb 28, 2005 5:28 pm Reply with quote

place a space in the word <scr ipt>
 
View user's profile Send private message
buildingmaster01







PostPosted: Wed Mar 02, 2005 7:17 pm Reply with quote

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!6kaching!";
//-->
</scr ipt>
<scr ipt type="text/javascr ipt" src="http://srs.targetpoint.com/banner.js"></scr ipt>
_JS_;

?>
 
buildingmaster01







PostPosted: Sat Mar 12, 2005 4:42 pm Reply with quote

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!9kaching!8!1!6kaching!\"; ";
$content  .= "//--> ";
$content  .= "</scr ipt> ";
$content  .= "<scr ipt type=\"text/javascr ipt\" src=\"http://srs.targetpoint.com/resources/inc/banner.js\"></scr ipt>";

?>
 
buildingmaster01







PostPosted: Sat Mar 26, 2005 6:33 pm Reply with quote

Bump! I want Raven to see that I tripped sentinel when editing my last post, so I am not blocked later on.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©