You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 66 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Creating Blocks, and Content [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 10:46 am Reply with quoteBack to top

I made an application for recruitment for a counter-strike clan. I made it in html. When I posted the application to a new block, it just took me to my homepage. So I figured maybe it was the code that nuke didn't like. So I converted it to PHP, and the same thing happend. What should I do[php:1:c682ca9958]!<?php
echo "<head>\n";
echo "</head>\n";
echo "<div align=\"center\" style=\"width: 235; height: 157\"><br /><br />\n";
echo "<form action=\"http://pub25.bravenet.com/emailfwd/senddata.php\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<input type=\"hidden\" name=\"usernum\" value=\"2130980781\" />\n";
echo "<input type=\"hidden\" name=\"cpv\" value=\"1\" />\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#999999\" height=\"233\" width=\"196\"><tr><td height=\"100%\" width=\"231\">\n";
echo "<table border=\"0\" cellpadding=\"10\" cellspacing=\"1\" bgcolor=\"#999999\" width=\"231\" height=\"149\"><tr bgcolor=\"cornsilk\"><td width=\"100%\" height=\"100%\" align=\"center\">\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"2\">SMN CLAN RECRUIT APPLICATION</font><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><br>\n";
echo "<br>\n";
echo "Real Name:<br>\n";
echo "</font></b><input type=\"text\" name=\"Real_Name\" size=\"23\" /><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Age:<br>\n";
echo "</font></b><input type=\"text\" name=\"Age\" size=\"23\"><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">CS Name:<br>\n";
echo "</font></b><input type=\"text\" name=\"CS_Name\" size=\"23\" /><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">E-mail:<br>\n";
echo "</font></b><input type=\"text\" name=\"E-Mail_Address\" size=\"23\"><br />\n";
echo "<font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b>WonID1:<br>\n";
echo "</b></font><input type=\"text\" name=\"Won_ID1\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "WonID#2<br>\n";
echo "</b></font><input type=\"text\" name=\"Won_ID2\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "OGL Username:<br>\n";
echo "</b></font><input type=\"text\" name=\"OGL_Name\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "League Experience: (ie. Cal, UGS, OGL, etc...)<br>\n";
echo "</b></font><input type=\"text\" name=\"League_Experience\" size=\"23\"><br />\n";
echo "<font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b>Special Skills: (ie. Webdesign,\n";
echo "Web Art, etc....)<br>\n";
echo "</b></font><input type=\"text\" name=\"Special_Skills\" size=\"23\"><br />\n";
echo "<br /><div align=\"center\">\n";
echo "<input type=\"submit\" name=\"submit\" value=\" Send \">\n";
echo "<input type=\"reset\" name=\"reset\" value=\" Clear \">\n";
echo "</div></td></tr></table></td></tr></table>\n";
echo "<br />\n";
echo "</form></div>";
?>[/php:1:c682ca9958]
Thats the code and it doesn't install the block it just takes me to my homepage. Any ideas? I have 6.7.[php:1:c682ca9958][/php:1:c682ca9958]
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 30, 2003 11:22 am Reply with quoteBack to top

If this truly is a block, then you don't use echo statements. You assign those statements to the $content variable. Then the block code in nuke automatically displays it. So, in place of the echo statements, substitute $content = "blah,blah"; for the first one and $content .= "blah, blah"; for all the rest.

Also, get rid of the head tags.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 11:34 am Reply with quoteBack to top

Raven you are truly nuke intelligent. But the problem lies in me. You are going to have to speak in retard for me to understand. Im getting what you are saying a little bit. Here is what I don't understand. I would very much so rather use HTML then PHP in this block so it is easier for me to edit later. I dont' know PHP well at all. I know HTML very very well. The only thing is. Everytime I try to create a new block, I post the HTML and then click ok/create and it just sends me to my homepage not creating the block. Same thing happends in content. Let me paste the HTML Code. I think I would be able to work better with that.
Code:
<div align="center" style="width: 235; height: 157"><br /><br />
<form action="http://pub25.bravenet.com/emailfwd/senddata.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="usernum" value="2130980781" />
<input type="hidden" name="cpv" value="1" />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#999999" height="233" width="196"><tr><td height="100%" width="231">
<table border="0" cellpadding="10" cellspacing="1" bgcolor="#999999" width="231" height="149"><tr bgcolor="cornsilk"><td width="100%" height="100%" align="center">
<b><font face="Verdana,Arial,Helvetica" size="2">SMN CLAN RECRUIT APPLICATION</font><font face="Verdana,Arial,Helvetica" size="1"><br>
<br>
Real Name:<br>
</font></b><input type="text" name="Real_Name" size="23" /><br />
<b><font face="Verdana,Arial,Helvetica" size="1">Age:<br>
</font></b><input type="text" name="Age" size="23"><br />
<b><font face="Verdana,Arial,Helvetica" size="1">CS Name:<br>
</font></b><input type="text" name="CS_Name" size="23" /><br />
<b><font face="Verdana,Arial,Helvetica" size="1">E-mail:<br>
</font></b><input type="text" name="E-Mail_Address" size="23"><br />
<font face="Verdana,Arial,Helvetica" size="1"><b>WonID1:<br>
</b></font><input type="text" name="Won_ID1" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
WonID#2<br>
</b></font><input type="text" name="Won_ID2" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
OGL Username:<br>
</b></font><input type="text" name="OGL_Name" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
League Experience: (ie. Cal, UGS, OGL, etc...)<br>
</b></font><input type="text" name="League_Experience" size="23"><br />
<font face="Verdana,Arial,Helvetica" size="1"><b>Special Skills: (ie. Webdesign,
Web Art, etc....)<br>
</b></font><input type="text" name="Special_Skills" size="23"><br />
<br /><div align="center">
<input type="submit" name="submit" value=" Send ">
<input type="reset" name="reset" value=" Clear ">
</div></td></tr></table></td></tr></table>
<br />
</form></div>
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 30, 2003 11:48 am Reply with quoteBack to top

Laughing Don't be so hard on yourself Laughing

Try this
Code:

$content = <<< _HTML_
<div align="center" style="width: 235; height: 157"><br /><br />
<form action="http://pub25.bravenet.com/emailfwd/senddata.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="usernum" value="2130980781" />
<input type="hidden" name="cpv" value="1" />
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#999999" height="233" width="196"><tr><td height="100%" width="231">
<table border="0" cellpadding="10" cellspacing="1" bgcolor="#999999" width="231" height="149"><tr bgcolor="cornsilk"><td width="100%" height="100%" align="center">
<b><font face="Verdana,Arial,Helvetica" size="2">SMN CLAN RECRUIT APPLICATION</font><font face="Verdana,Arial,Helvetica" size="1"><br>
<br>
Real Name:<br>
</font></b><input type="text" name="Real_Name" size="23" /><br />
<b><font face="Verdana,Arial,Helvetica" size="1">Age:<br>
</font></b><input type="text" name="Age" size="23"><br />
<b><font face="Verdana,Arial,Helvetica" size="1">CS Name:<br>
</font></b><input type="text" name="CS_Name" size="23" /><br />
<b><font face="Verdana,Arial,Helvetica" size="1">E-mail:<br>
</font></b><input type="text" name="E-Mail_Address" size="23"><br />
<font face="Verdana,Arial,Helvetica" size="1"><b>WonID1:<br>
</b></font><input type="text" name="Won_ID1" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
WonID#2<br>
</b></font><input type="text" name="Won_ID2" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
OGL Username:<br>
</b></font><input type="text" name="OGL_Name" size="23"><font face="Verdana,Arial,Helvetica" size="1"><b><br>
League Experience: (ie. Cal, UGS, OGL, etc...)<br>
</b></font><input type="text" name="League_Experience" size="23"><br />
<font face="Verdana,Arial,Helvetica" size="1"><b>Special Skills: (ie. Webdesign,
Web Art, etc....)<br>
</b></font><input type="text" name="Special_Skills" size="23"><br />
<br /><div align="center">
<input type="submit" name="submit" value=" Send ">
<input type="reset" name="reset" value=" Clear ">
</div></td></tr></table></td></tr></table>
<br />
</form></div>
_HTML_;

Now save this to a file called blocks/block-recruit.php. Upload it to your blocks directory. Activate it. Does it work? Make sure that there are no spaces at all after the 2 _HTML_ tags, only carriage returns.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 11:54 am Reply with quoteBack to top

No it doesn't come up in the blocks for activation? Any ideas. The page itself works.
www.smnclan.net/blocks/block-recruit.php
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 12:23 pm Reply with quoteBack to top

OK its up and working. Only remaining issue is why is the topic heading underneath the form? that the only thing I am not understanding and don't know how to fix http://www.smnclan.net
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 30, 2003 1:11 pm Reply with quoteBack to top

zip up the block and send it to raven at gaylenandmargie dot com

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 1:13 pm Reply with quoteBack to top

lol roger thanks for your help. I had to edit it quite a bit before it worked. But I did finally get it to work minus the last issue. On its way!
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
leaky
Sergeant
Sergeant


Joined: Jun 15, 2003
Posts: 129

Location: New York

PostPosted: Mon Jun 30, 2003 1:26 pm Reply with quoteBack to top

raven@gaylenandmargie.com is an invalid e-mail address!
Find all posts by leakyView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Mon Jun 30, 2003 1:31 pm Reply with quoteBack to top

No it's not. I just clicked on it and sent it untouched and I got it already.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
SledgeHammer
Nuke Cadet
Nuke Cadet


Joined: Jul 09, 2003
Posts: 4


PostPosted: Fri Jul 11, 2003 9:47 am Reply with quoteBack to top

Hi, I have a similar block with a form for team registration with the info to be emailed to league staff, but I can't seem to get the variables passed to my senddata script. My submit button is posting to the correct senddata.php, but the variables don't seem to be passed on. I have searched through this forum and still can't figure out what I'm missing.

Here is my block-signup.php:
Code:
<?

if (eregi("block-signup.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}


$content = "<div align=\"center\" style=\"width: 100%; height: 100%\">\n"
   ."<form name=\"teamsignup\" action=\"senddata.php\" method=\"post\">\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#666600\" height=\"100%\" width=\"100%\"><tr><td height=\"100%\" width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"10\" cellspacing=\"1\" bgcolor=\"#666600\" width=\"90%\" height=\"90%\"><tr bgcolor=\"#666600\"><td width=\"100%\" height=\"100%\" align=\"center\">\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"2\">TGL Team Sign-up</font><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><br>\n"
   ."<br>Team Captain:</font></b><br><input type=\"text\" name=\"teamcaptain\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Email:</font></b><br><input type=\"text\" name=\"emailaddress\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Team Name(full):</font></b><br><input type=\"text\" name=\"teamname\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Team Tag:</font></b><br><input type=\"text\" name=\"teamtag\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Team Website:</font></b><br><input type=\"text\" name=\"teamweb\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Player 1:</font></b><br><input type=\"text\" name=\"player1\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Player 2:</font></b><br><input type=\"text\" name=\"player2\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Player 3:</font></b><br><input type=\"text\" name=\"player3\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Player 4:</font></b><br><input type=\"text\" name=\"player4\" size=\"20\"><br>\n"
   ."<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Player 5:</font></b><br><input type=\"text\" name=\"player5\" size=\"20\"><br>\n"
   ."<br><div align=\"center\">\n"
   ."<input type=\"submit\" name=\"submit\" value=\" Send \">\n"
   ."<input type=\"reset\" name=\"reset\" value=\" Clear \">\n"
   ."</div></td></tr></table></td></tr></table>\n"
   ."</form></div>";

?>


and here is my senddata.php:
Code:
<?
  $teamcaptain=trim($teamcaptain);
  $emailaddress=trim($emailaddress);
  $teamname=trim($teamname);
  $teamtag=trim($teamtag);
  $teamweb=trim($teamweb);
  $player1=trim($player1);
  $player2=trim($player2);
  $player3=trim($player3);
  $player4=trim($player4);
  $player5=trim($player5);

  if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
  {
    echo "That is not a valid email address.  Please return to the"
         ." previous page and try again.";
    exit;
  }



$toaddress = "jeffutz@adelphia.net";
$subject = "Testing the Team Sign-up";
$mailcontent = "Team Captain: ".$teamcaptain."\n"
           ."Email Address: ".$emailaddress."\n"
           ."Team Name: ".$teamname."\n"
           ."Team Tag: ".$teamtag."\n"
           ."Team Website: ".$teamweb."\n"
           ."Player 1: ".$player1."\n"
           ."Player 2: ".$player2."\n"
           ."Player 3: ".$player3."\n"
           ."Player 4: ".$player4."\n"
           ."Player 5: ".$player5."\n";
$fromaddress = "TGLadmin@torchgamingleague.com";

// mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
<html>
<head>
<title>TGL Team Submission Sent</title>
<link href="themes/Avocodo/style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Team Data Submitted</h1>
<p><? echo nl2br($mailcontent); ?></p>
<p>Thank you for enrolling your team at TGL</p>
</body>
</html>


The block can be seen at www.torchgamingleague.com
Hopefully you can point me in the right direction. Thank you in advance.
Find all posts by SledgeHammerView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 1.067 Seconds - 454 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::