Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
steveh552
New Member
New Member



Joined: Jun 02, 2005
Posts: 19

PostPosted: Sat Jun 04, 2005 10:23 pm Reply with quote

When I tried to ad the code: <a href="http://www.ravenphpscripts.com" title="PHP Web Host - Quality Web Hosting For All PHP Applications"><img src="http://www.ravenphpscripts.com/images/mylinks/RavenWebServices.gif" alt="" border="0" /></a>


which is on the main page of this site, to link to here, I get the following error on my site:

The html tags you attempted to use are not allowed

Anyone have a fix for this, or an explaination why its doing that? I have Nuke 7.5 with the patch.
Steve
 
View user's profile Send private message
Guardian2003
Site Admin



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

PostPosted: Sun Jun 05, 2005 12:27 am Reply with quote

Code:
alt="" border="0" /></a>
should be
Code:
alt="" border="0"</img></a>
 
View user's profile Send private message Send e-mail
steveh552







PostPosted: Sun Jun 05, 2005 6:25 am Reply with quote

I changed it to what is there and I still get:



The html tags you attempted to use are not allowed

I also tried a script from a photo site, that puts my latest uploads onto my site and I get the same type of error.
 
Manuel
Regular
Regular



Joined: May 28, 2005
Posts: 90

PostPosted: Sun Jun 05, 2005 6:52 am Reply with quote

mmm... ravenphpscripts... lol

nuke blocks any script tags because of their danger

if you want to put a javascript in a block you need to create a block-yourblock.php file

_________________
Image 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
steveh552







PostPosted: Sun Jun 05, 2005 6:54 am Reply with quote

Thats what iv tried to do, put the script in a block. I get errors and it wont let me.
 
Manuel







PostPosted: Sun Jun 05, 2005 7:19 am Reply with quote

can you put the code here?
 
steveh552







PostPosted: Sun Jun 05, 2005 7:24 am Reply with quote

<a href="http://www.ravenphpscripts.com" title="PHP Web Host - Quality Web Hosting For All PHP Applications"><img src="http://www.ravenphpscripts.com/images/mylinks/RavenWebServices.gif" alt="" border="0"</img></a>

Thats one of them
The next one is:

I tried to enter the second one, but I got blocked my Nuke Senital.
 
Manuel







PostPosted: Sun Jun 05, 2005 7:33 am Reply with quote

but have you put this code directly in a block-yourblock.php??
 
steveh552







PostPosted: Sun Jun 05, 2005 7:36 am Reply with quote

Sweet, Thanks. I see what I did wrong. I was trying to use the "Add new block" then paste teh code into the box and go that way.
Steve
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Jun 05, 2005 7:40 am Reply with quote

steveh552 wrote:
<a href="http://www.ravenphpscripts.com" title="PHP Web Host - Quality Web Hosting For All PHP Applications"><img src="http://www.ravenphpscripts.com/images/mylinks/RavenWebServices.gif" alt="" border="0"</img></a>

Thats one of them
The next one is:

I tried to enter the second one, but I got blocked my Nuke Senital.
The reason you were blocked is because you cannot enter script tags w/o masking them. You would have been blocked by phpnuke also, even w/o NukeSentinel(tm). You have to use something like <scr~ipt> and </scr~ipt>
 
View user's profile Send private message
steveh552







PostPosted: Sun Jun 05, 2005 7:42 am Reply with quote

OK, thanks Raven. Great site, iv recieved LOTS of help in only a couple post.

Now that I created the block. The things I put in the blocks work great. The problem now is that below the graphic or whatever is in it, there is a little block that says "no content for this block" or something to that effect.
Steve
 
Raven







PostPosted: Sun Jun 05, 2005 7:51 am Reply with quote

Make sure that all your code is assigned to the $content variable. No echo statements or anything. The easiest way to include html/javascript code is to use the WHEREDOC/HEREDOC syntax. See these posts for help:
[ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ]
 
steveh552







PostPosted: Sun Jun 05, 2005 7:52 am Reply with quote

Thanks alot Very Happy
 
Manuel







PostPosted: Sun Jun 05, 2005 7:54 am Reply with quote

you must do something like this

blocks/block-example.php:

Code:



<?

if (stristr($_SERVER['PHP_SELF'], "block-example.php") OR stristr($_SERVER['SCRIPT_NAME'], "block-example.php")) {
    Header("Location: ../index.php");
    die();
}

$content = '<a href="http://ravenphpscripts.com" title="PHP Web Host - Quality Web Hosting For All PHP Applications"><img src="http://ravenphpscripts.com/images/mylinks/RavenWebServices.gif" alt="" border="0"</img></a>';

?>

 
Raven







PostPosted: Sun Jun 05, 2005 8:53 am Reply with quote

The advantage of WHEREDOC is that you can copy and past any html/javascript/css code without worrying about quoting. In addition, php variable can be used. So, as a very simple example, you could do this
Code:
<?

$url = "http://ravenphpscripts.com";
$content = <<<_code_
<a href="$url" title="PHP Web Host - Quality Web Hosting For All PHP Applications"><img src="$url/images/mylinks/RavenWebServices.gif" alt="" border="0"</img></a>
_code_;
?>
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©