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


Joined: May 07, 2005
Posts: 129

PostPosted: Sat Sep 17, 2005 5:16 pm Reply with quote

Can anyone tell me why this Block file code isn't working in PHP Nuke 7.6 ? It's driving me batty LOL HELP ?

Code:
<?php


// TO USE THIS BLOCK JUST REPLACE THE LINKS WITH THE LINKS 
// TO YOUR SITE AND THE LINK TO YOUR PICTURE               
// THEN UPLOAD IT TO YOUR BLOCKS FOLDER                     
// THEN ACTIVATE IT AS YOU WOULD ANY OTHER BLOCK           

if (eregi("block-Link_Us.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<p align=\"center\"><strong>Link This Site</strong></p>";
$content  .= "<p align=\"center\"><strong><a href=\"http://yoursite.com\" target=\"_blank\"><img border=0 src=\"http://yoursite.com/images/picture.gif\" alt=\"YOURSITE\" width=88 height=33></a></strong></p>";
$content  .= "<form name=\"form1\" method=\"post\" action=\"\">";
$content  .= "  <div align=\"center\">";
$content  .= "    <textarea name=\"textarea\" cols=\"12\" rows=\"5\"><a href=\"http://yoursite.com\" target=\"_blank\"><img border=0 src=\"http://yoursite.com/images/picture.gif\" alt=\"YOURSITE\" width=88 height=33></a><br></textarea>";
$content  .= "  </div>";
$content  .= "</form>";
?>
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Sep 17, 2005 8:51 pm Reply with quote

Could be ....

You say in the post subject that the block is named block-LinktoUs Problem yet in the code it's checking for block-Link_Us
 
View user's profile Send private message
pdoobepd
PostPosted: Sun Sep 18, 2005 9:26 am Reply with quote

I only used that title for the post...the block name is not changed or different when used. It is still not functioning properly in phpnuke7.6 . It keeps barfing on the code and making the block wide. The Box that is supposed to be displayed is not showing up only text is...in other words the form area is messed up. Any more Ideas ???

Help Again Please LOL
 
Raven
PostPosted: Sun Sep 18, 2005 1:05 pm Reply with quote

Code:
<?php


// TO USE THIS BLOCK JUST REPLACE THE LINKS WITH THE LINKS
// TO YOUR SITE AND THE LINK TO YOUR PICTURE
// THEN UPLOAD IT TO YOUR BLOCKS FOLDER
// THEN ACTIVATE IT AS YOU WOULD ANY OTHER BLOCK

if (eregi("block-Link_Us.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<p align=\"center\"><strong>Link This Site</strong></p>";
$content  .= "<p align=\"center\"><strong><a href=\"http://yoursite.com\" target=\"_blank\"><img border=\"0\" src=\"http://yoursite.com/images/picture.gif\" alt=\"YOURSITE\" width=\"88\" height=\"33\"></a></strong></p>";
$content  .= "<form name=\"form1\" method=\"post\" action=\"\">";
$content  .= "  <div align=\"center\">";
$content  .= "    <textarea name=\"textarea\" cols=\"12\" rows=\"5\"><a href=\"http://yoursite.com\" target=\"_blank\"><img border=\"0\" src=\"http://yoursite.com/images/picture.gif\" alt=\"YOURSITE\" width=\"88\" height=\"33\"></a><br></textarea>";
$content  .= "  </div>";
$content  .= "</form>";
?>

This block works for me (I cleaned it up a bit). What isn't working?
 
pdoobepd
PostPosted: Sun Sep 18, 2005 9:48 pm Reply with quote

As Near as I can tell it is something with the "form" coding that my site is "barfing" on. Your cleaned up fixed block still isn't working for my Site. As I said earlier I am running phpnuke 7.6

Please See the (Linked Thumbnail with Larger View) Image below for how the block shows up on my site when activated. (this is after your clean up and fix of the block. It is also the same way it was showing up before.)

Only registered users can see links on this board! Get registered or login!

Help...Pulling hair out LOL
 
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 ©