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
Defcon
Regular
Regular


Joined: Mar 10, 2005
Posts: 90

PostPosted: Sun Nov 13, 2005 12:25 pm Reply with quote

I wanna customize a look of my block on front page (index.php). That block i wanna to put an image on top of that block only. See this pic:

Standard Block View:
Only registered users can see links on this board! Get registered or login!

I want my block look like this:
Only registered users can see links on this board! Get registered or login!

This block name is block-malscene where u can download from Only registered users can see links on this board! Get registered or login!

The source code is:

/*********************************************/
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

$content .= "<center>";
$content .= " <script language=\"JavaScript\" src=\"http://www.malscene.net/gigs2.php?mode=2\"
type=\"text/JavaScript\">";
$content .= "<close script>"; <--- < /script>
$content .= "<close center>"; <--- < /center>
/*********************************************/


I already try this code but it useless:


/*********************************************/
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}

$content .= "<center>";
$content .= "<img src=\"images/topics/gegeymusic.gif\">" <-- image
$content .= " <script language=\"JavaScript\" src=\"http://www.malscene.net/gigs2.php?mode=2\" type=\"text/JavaScript\">";
$content .= "<close script>"; <--- < /script>
$content .= "<close center>"; <--- < /center>
/*********************************************/

Can somebody help me?



*p/s I have a problem "The html tags you attempted to use are not allowed" on this forum board. Wish somebody here can understand that php coding and what i mean/view an example image/etc
 
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Sun Nov 13, 2005 12:54 pm Reply with quote

Try this, but remember to change the jabascript reference back to javascript as well as remove the spaces you see in the script tags. You cannot use some HTML tags on these forums because they are commonly used for scripting attacks and so are blocked here.

Code:


<?php
if (eregi("block-malscene.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<center>";
$content  .= "<img src=\"images/topics/gegeymusic.gif\" alt=\"\">"
$content  .=  "<s cript language=\"jabascript\" src=\"http://www.malscene.net/gigs2.php?mode=2\" type=\"text/jabascript\">";
$content  .= "</ script>";
$content  .=  "</center>";
?>


I am also assuming that this is your complete script file, so if it is not, you will have to adjust accordingly. Also, you still had reference in the eregi command to block-BlockCreator.php. You needed to change that to your actual script name.

If you have additional problems, please respond back to this thread with specific errors that you are seeing.

_________________
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
Defcon
PostPosted: Sun Nov 13, 2005 9:28 pm Reply with quote

montego wrote:

.."Try this, but remember to change the jabascript reference back to javascript"..


Jabascript ??? First time i heard that, however thanxs to montego .. i will try out source code from you.. if something wrong or successfully i will tell here.

Thanxs.
 
Defcon
PostPosted: Mon Nov 14, 2005 11:14 am Reply with quote

Yes it done!! Thanxs montego
 
montego
PostPosted: Tue Nov 15, 2005 5:53 am Reply with quote

Great to hear. Thanks for posting back to let us know all is well now.

Regards,
montego
 
Defcon
PostPosted: Wed Mar 15, 2006 12:56 am Reply with quote

montego wrote:
Great to hear. Thanks for posting back to let us know all is well now.

Regards,
montego


~*Thanxs again*~
 
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 ©