Jump to content
Brian Enos's Forums... Maku mozo!

New Area 5 Website!


ampleworks

Recommended Posts

http://www.uspsa-area5.org

I would like to welcome everyone to the new area 5 website! It has undergone some major changes, all of which is for the better!

The only hitch from transferring the old site to the new one is that the user database and forums were lost because of software incompatibility. You will need to re-register if you wish to post in the forums. Other things down the road may require that users to be registered in order to view or participate in them.

If anyone has any questions, comments, concerns, or find something on the site broken, I do ask that you email me at webmaster@uspsa-area5.org!

Thanks B)

Note: In case you are unable to visit the site (getting site not found/DNS errors), your ISP's records have not updated yet. Please try again later in the day or tomorrow.

Link to comment
Share on other sites

I've had a few PMs about not being able to get to the site.

If you get errors such as "Page can not be displayed" or "http://www.uspsa-area5.org can not be found, please check the name and try again" then the error isn't on your end.

The DNS records for the old site haven't been updated yet. Normally it takes 24-48 hours after a change before everyone can see the site. Please do not be alarmed, just try again tomorrow. The majority of ISPs have uppdated their records already.

Tech lesson for the day: Networks don't understand domain names (eh: www.yahoo.com), they only understand numerical addresses. The DNS translates a .com address into a numerical address that your ISP uses to find where the website is stored.

Link to comment
Share on other sites

Okay - but couldya fix all the links please? Not one of them works! It looks like there's a space (%) at the end of 'em!

Could you please be more specific?

I've not found any broken links nor had any reports since the initial launch a few days ago with URLs having two frontslashes in them.

Thanks

Link to comment
Share on other sites

Too weird!  My IE at work adds the %20 as well to the Ashland, Bluegrass and Owensboro links.  This problem does not exist for me at home using Firefox.  Don't you just hate a mystery? :wacko:

It's not IE, It's in the HTML!

Website: <a href="http://home.alltel.net/barrywest/%20"'>http://home.alltel.net/barrywest/%20" target="_blank">http://home.alltel.net/barrywest/ </a>

Website: <a href="http://home.earthlink.net/%7Eagcpd/%20" target="_blank">http://home.earthlink.net/~agcpd/ </a>

Website: <a href="http://www.orpci.com%20"'>http://www.orpci.com%20" target="_parent">http://www.orpci.com </a>

Some of which may be explained by the following:

<META NAME="GENERATOR" CONTENT="PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL (http://phpnuke.org/files/gpl.txt). PHP-Nuke comes with absolutely no warranty, for details, see the license (http://phpnuke.org/files/gpl.txt).">

Perhaps a different tool is in order...

Link to comment
Share on other sites

PHP Nuke is a script driven website portal generator and is designed to automatically stamp out websites using PHP scripting and a MySQL database. The HTML for the pages is generated on the fly by the PHP scripts controlling the site as a user's browser calls the scripts. The text encodings and URL handling parameters are set in the PHP configuration of the server the site runs on and my guess is that the script is delivering the correct info to the browser.

Even though there is a possibility that the MySQL tables are truncating the data streamed to the browser, most errors like this are usually a function of the browser in use truncating a url that is longer than the url handling capabilities it is set for (UTF-8, MacRoman, etc..). I am having no issues in Apple Safari and FireFox in OSX, both of which are capable of handling urls up to 150 characters. Some systems limit url's to 64, 32 and 16 characters (early IE versions on Windows for instance).

I think the site is working right and it's the viewing software doing the link mangling here ;-)

BTW, there is no "static" HTML to be edited here folks, it's all generated on demand by the PHP script running the site (index.php). The viewers never see this page as the browser never get's it either. The server parses anything with a .php extension and then delivers to the browser whatever HTML stream the script "calculates" on the fly.

This whole forum is a series of PHP scripts fronting a MySQL database and is just a different flavor of open source scripts like PHP Nuke.

--

Regards,

Edited by George
Link to comment
Share on other sites

%20 is html for space, so it's probably just a simple entry error that should be relatively easy to correct.

In this case, the stuff in the quotes is the URL that the anchor points to. There really shouldn't be any HTML in it. I am not familiar with the tool but somehow the stray 'space' got included when the link was built. If it was me, I would go in with a text editior and delete th "%20"s but then, I am an old guy who used to do every thing by hand! Still though, sometimes it is most efficient to fire up vi and grep and deal with things without any "help"!

(If you delete the %20, the links work fine! Leave it in and IE and Netscape don't like it.)

Update:

Just read georges post on the MySQL thing and the fact that there is no static HTML to edit. No fix, I guess.

Link to comment
Share on other sites

I concur this is poor-quality HTML being generated by the script. Looking for anything-slash-space in web-server land is silly and also likely to cause unexpected results. I have no idea if the problem is innate to the script or to it's input data, but it's not the browser to blame this time.

Link to comment
Share on other sites

I concur this is poor-quality HTML being generated by the script.  Looking for anything-slash-space in web-server land is silly and also likely to cause unexpected results.  I have no idea if the problem is innate to the script or to it's input data, but it's not the browser to blame this time.

I hate to rag on this but I also agree. So far I have found that the link for Owensboro does not work with IE 6.x, Netscape 7.1, Firefox 1.0.3 and if you load the url http://www.uspsa-area5.org/home/modules.php?name=Kentucky into XMLSpy, you can see the %20 in the anchor.

Sorry :(

Link to comment
Share on other sites

%20 is html for space, so it's probably just a simple entry error that should be relatively easy to correct.

In this case, the stuff in the quotes is the URL that the anchor points to. There really shouldn't be any HTML in it. I am not familiar with the tool but somehow the stray 'space' got included when the link was built. If it was me, I would go in with a text editior and delete th "%20"s but then, I am an old guy who used to do every thing by hand! Still though, sometimes it is most efficient to fire up vi and grep and deal with things without any "help"!

(If you delete the %20, the links work fine! Leave it in and IE and Netscape don't like it.)

Update:

Just read georges post on the MySQL thing and the fact that there is no static HTML to edit. No fix, I guess.

Actually, there can be static html.

My guess is that your seeing a mysql_escape_string linefeed issue. Most likely caused when the html was input into a text box to be written to mysql....thats just my guess though.

Link to comment
Share on other sites

It looks like the "biological input module" left "spaces" in the input string and it got filled with the standard placeholder character(s) by the script/server defaults (%20). This can happen when just cutting pasting links. Spaces at the end of a line are there whether you see them, or not ;-)

And yes, there can be static HTML in a PHP driven page, through several methods, but that is usually reserved for fixed text headers, column names and graphical elements etc.. The actual dynamic content is almost always served from a MySQL table even if it is pre-formatted (marked up) text and HTML tagged URL's. If it comes from a table in a MySQL stream, it is not static HTML, even if it is pre-formatted.

--

Regards,

Link to comment
Share on other sites

gee, I did'nt know we opened a computer class, I know squat about computers, all I know is the site for area 5 looks Great!!! and all the links from it, worked for me

mike <_<

Link to comment
Share on other sites

Here's the deal, the state club pages are hard-coded so to speak. Just a regular module to include the header, sideblocks, banner, content, and then footer.

I did the links in dreamweaver to make formatting and link making simple...looks like it came to bite me in the butt. It put spaces (%20) in URLs that I didn't put in (I retested this a second ago) and some of the clubs used tidas, it made them %7. While it works in some browsers, it doesn't in others.

I'm in the process of fixing these and they'll be uploaded before the night is over.

I'll completely admit 100% up front that I'm not the most familiar with PHP nor PHPNuke right now. There's only one way to learn stuff, start using it. Trust me, the site had a lot more quirks than this. Thanks for the input guys :ph34r:

By the way, anyone curious as to the nuke module for the index, if you open it in notepad, this is what you get.

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2005 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

@require_once("mainfile.php");
global $prefix, $db, $admin_file;
$modpath = '';
define('MODULE_FILE', true);
$_SERVER['SCRIPT_NAME'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;

if (isset($url) AND is_admin($admin)) {
echo "<meta http-equiv=\"refresh\" content=\"0; url=$url\">";
die();
}

if ($httpref==1) {
$referer = $_SERVER["HTTP_REFERER"];
$referer = check_html($referer, nohtml);
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
} else {
 $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')");
}
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
if($numrows>=$httprefmax) {
 $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
}
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
$file = trim($file);
$mod_file = trim($mod_file);
$mop = trim($mop);
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file) || ereg("\.\.",$mop)) {
echo "You are so cool...";
} else {
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/module.php")) {
 @include("themes/$ThemeSel/module.php");
 if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) {
	 $name = $default_module;
 }
}
if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) {
 $modpath = "themes/$ThemeSel/";
}
$modpath .= "modules/$name/".$mod_file.".php";
if (file_exists($modpath)) {
 @include($modpath);
} else {
 $index = 1;
 @include("header.php");
 OpenTable();
 if (is_admin($admin)) {
	 echo "<center><font class=\"\"><b>"._HOMEPROBLEM."</b></font><br><br>[ <a href=\"".$admin_file.".php?op=modules\">"._ADDAHOME."</a> ]</center>";
 } else {
	 echo "<center>"._HOMEPROBLEMUSER."</center>";
 }
 CloseTable();
 @include("footer.php");
}
}

?>

Spiffy eh?

Link to comment
Share on other sites

Pretty standard fare for a PHP driven portal page, actually.

Try something like BBEdit, or TacoHTMLEdit for Mac, or TopStyle, or TextPad, or similar for Windoze instead of ScreamWeaver and you won't have this trouble in the future. Just use something that doesn't (re)encode the text for you ;-)

BTW, reducing the permissions to 444 and possibly even 440 on the config.php file is a good way to prevent it from being modified, or accessed by unauthorized users. Moving it is usually a PITA unless you like modifying paths in lots of scripts ;-)

--

Regards,

Link to comment
Share on other sites

All the links I could find were fixed. Let me know if anyone else comes across anymore. No more Dreamweaver, such an overpriced piece of crap. Its all Notepad now!!

Free bottle of water at the Ohio match if someone can break my Javascript calculators (under Shooter's Tools). When I mean break, so that pressing the Reset button doesn't fix the problem :lol::P

I used UltraEdit-32 way back in the day but my upgrade subscription ran out in about 2001 and I cannot find the older version EXE so I'm using TextPad, though I liked UltraEdit better. Hey, there's no substitute for pico or vi! :)

Link to comment
Share on other sites

Area 5 looks great to me; good job. Have to look at php-nuke myself for some things. Which release is this? (I see they just put out 7.8 a few weeks after 7.7.)

One webmaster to another: there's nothing better on the market today than Macromedia Dreamweaver. Templates and css layouts: THAT'S the ticket. Notepad? You can do it, but why? That's the same thing as writing a windows application in assembler. You can DO it, but why?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...