MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
images in blocks error
AuthorText
carpman
Just arrived
Avatar

Posts: 9
Contributes: 9

Gender: _NEUTRAL_
Online: No
Date: 07/10/2008 20:23
images in blocks error
#post13206
Hello been playing with blocks but can't get images to display, in fact when i try i can't load the page at all i just get blank page?

the block works fine if just use plan text, this is my block

quote
<?php

if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_promo.php")) {
die("Error: This file cannot be opened directly!");
}

echo "<img src="images/linux-windows.jpg" width="175" height="104" border="0" alt="Linux - Windows">";

?>


using V4.0.0
Edited: 07/10/2008 20:24
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1091
Contributes: 290

Gender: _MALE_
Online: No

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 07/10/2008 20:38
Re: images in blocks error
#post13208
Hi
Use simple ' not " ^^
code

<?php

if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_promo.php")) {
die("Error: This file cannot be opened directly!");
}

echo "<img src='images/linux-windows.jpg' width='175' height='104' border='0' alt='Linux - Windows'>";

?>
 
Image
Delete Edit Quote
 
carpman
Just arrived
Avatar

Posts: 9
Contributes: 9

Gender: _NEUTRAL_
Online: No
Date: 07/10/2008 23:36
Re: images in blocks error
#post13239
cheers
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo