Hello,
I found the ezhomepage scripts (from
http://www.mannyjuan.com) that will let your website visitors make their own webpage at your stie. There are several versions, but the only one I was able to get to work at all is the ezhomesite version.
The problem is when I click on New Site (on this page:
http://www.winxclub.us/ezhomesite/index.html) it takes you to the page (
http://www.winxclub.us/cgi/ezhomesite.pl) to start a new site but at the bottom where you are supposed to click a button to create the site, I get the following message:
Content-type: text/html The following error occurred : Undefined subroutine &main::build_form_body called at
/home/content/w/i/n/winxclub/html/cgi/ezhomesite.pl line 349.
Below is the peice of code that I believe is getting the error:
Code:
&build_form_body($usrname, $mail, $head, $sub, $body, $body2, $body3, $body4, $body5, $bgimage, $bgimage2, $linkcolor, $vlinkcolor,
$ahref1, $ahref2, $ahref3, $ahrefname1, $ahref2name, $ahref3name,
$filename, $imurl, $hrline, $emailpic, $textcolor, $fontface, $bullet, $tbltext,
$navigator1, $navigator2, $navigator3, $navigator4, $navigator5, $headpos, $pagepos, $imagepos);
print "<input type=submit value=\"Create Site\">\n";
print "</form>\n";
Here is a bit more of the script (above and below that.) If anyone can tell me what is wrong that would be just greatly appreciated:
Code:
print "</td></tr><tr><td bgcolor=lightgrey><font face=\"verdana, helvetica, arial\" size=\"1\"><b>Name on webpages:</b></font><br>\n";
print "</td></tr><tr><td bgcolor=white><font face=\"verdana, helvetica, arial\" size=\"1\">(Will also be the name of your navigation links)<br>\n";
print "Page 1: <input type=text size=40 name=\"navigator1\" value=\"$navigator1\"><br>\n";
print "Page 2: <input type=text size=40 name=\"navigator2\" value=\"$navigator2\"><br>\n";
print "Page 3: <input type=text size=40 name=\"navigator3\" value=\"$navigator3\"><br>\n";
print "Page 4: <input type=text size=40 name=\"navigator4\" value=\"$navigator4\"><br>\n";
print "Page 5: <input type=text size=40 name=\"navigator5\" value=\"$navigator5\"></font><br><br>\n";
print "</td></tr><tr><td bgcolor=lightgrey><font face=\"verdana, helvetica, arial\" size=\"1\"><b>Do you want the pages centered:</b> <input type=radio name=\"pagepos\" value=\"yes\" checked>Yes\n";
print "<input type=radio name=\"pagepos\" value=\"no\">No</font>\n";
print "</td></tr><tr><td bgcolor=lightgrey><p><font face=\"verdana, helvetica, arial\" size=\"1\"><b>Slogan:</b></font><br>\n";
print "</td></tr><tr><td bgcolor=white><font face=\"verdana, helvetica, arial\" size=\"1\">(Subtitle of your site)</font><br>\n";
print "<input type=text size=40 name=\"subhead\" value=\"$sub\"><br><br>\n";
&build_form_body($usrname, $mail, $head, $sub, $body, $body2, $body3, $body4, $body5, $bgimage, $bgimage2, $linkcolor, $vlinkcolor,
$ahref1, $ahref2, $ahref3, $ahrefname1, $ahref2name, $ahref3name,
$filename, $imurl, $hrline, $emailpic, $textcolor, $fontface, $bullet, $tbltext,
$navigator1, $navigator2, $navigator3, $navigator4, $navigator5, $headpos, $pagepos, $imagepos);
print "<input type=submit value=\"Create Site\">\n";
print "</form>\n";
print HTML "<p align=\"center\"><font face=\"Arial, Verdana\" size=\"2\">A <a href=\"<A href="mailto:$myemail\">$yourtitle</a">mailto:$myemail\">$yourtitle</a> Customization Based On <a
href=\"<A href="http://www.internor.com/ezhomesite/\">EZHomesite</a></p>\n">http://www.internor.com/ezhomesite/\">EZHomesite</a></p>\n";
print "</td></tr></table>\n";
print "</font></center></body></html>\n";
}
sub create {
# Now, lets do some error checking. Making sure they filled out each field
# This is pretty low tech now. I'll improve it later
&missing(missing_name) unless $usrname;
&missing(missing_email) unless $email;
&missing(missing_login) unless $login;
Or does anyone know of any other scripts that will allow your users to create a website at your site?