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
Dacubz
Worker
Worker


Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois

PostPosted: Tue Sep 04, 2007 10:18 pm Reply with quote

I've had success putting HTML in blocks, but this one won't fly for me. Any idea how to get this into a block?

Quote:
<A href="http://www.stubhub.com?ticket_finder=6339&img=general_468x60.gif">
<img src="https://www.stubhub.com/promotions/scratch/affiliate/general_468x60.gif" border=0></a>
<img src="https://affiliate.stubhub.com/showban.asp?id=6339&img=general_468x60.gif" border=0>
 
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Wed Sep 05, 2007 5:21 am Reply with quote

If you cannot get it into a HTML block, create a separate block file to then add to your blocks. I suspect that the allowable HTML is not set up within your config.php to allow some of these tags?

If you want this in a block file, put in-between the PHP open and close tags the following:

Code:


if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}
$content = <<<EOF
<A href="http://www.stubhub.com?ticket_finder=6339&img=general_468x60.gif">
<img src="https://www.stubhub.com/promotions/scratch/affiliate/general_468x60.gif" border=0></a>
<img src="https://affiliate.stubhub.com/showban.asp?id=6339&img=general_468x60.gif" border=0>
EOF


And then give the file a name similar to those under the blocks directory (must start with "block-").

_________________
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! 
View user's profile Send private message Visit poster's website
Dacubz
PostPosted: Wed Sep 05, 2007 6:25 am Reply with quote

That worked! I would have never figured this one out. Thanks again for your help.
 
montego
PostPosted: Thu Sep 06, 2007 6:48 am Reply with quote

You are most welcome.
 
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 ©