Jump to content

Linera

Members
  • Posts

    62
  • Joined

  • Last visited

Posts posted by Linera

  1. I'm trying to figure out how to build a cms for my site.So far I've had no luck figuring it out.I've looked at other cms and can't figure out how they built the layout without html, among other things like the admin section.So does anyone have any guides, tutorials, or any info on this subject?

  2. I used that above xml parse class script.See the end results at http://souimappers.post2hostit.com/status.phpIt suppose to place a uparrow.gif or downarrow.gif in front or the name.Here is the entire script:

    <?phprequire_once( 'xmlparse.php' );$url = "http://worldofwarcraft.com/realmstatus/status.xml";$server = "Akama";//==========[ XML PARSER ]=============================================================		$xml_parse =& new xmlParser();		$err = 1;		if( $xml_parse->parse($url) )		{			if ( count( $xml_parse->output ) )			{				if( is_array($xml_parse->output[0]['child']) )				{					foreach ( $xml_parse->output[0]['child'] as $xml_array )					{						foreach ( $xml_array as $xml_server )						{							if ( $xml_server['N'] == $server )							{								$err = 0;								switch ( $xml_server['S'] )								{									case 0:										$serverstatus = 'Down';										break;									case 1:										$serverstatus = 'Up';										break;									case 2:										$serverstatus = 'Maitenence';										break;									default:										$serverstatus = 'Unknown';								}								switch ( $xml_server['T'] )								{									case 0:										$servertype = '(RP-PvP)';										break;									case 1:										$servertype = 'Normal';										break;									case 2:										$servertype = '(PvP)';										break;									case 3:										$servertype = '(RP)';										break;									default:										$servertype = 'Unknown';								}								switch ( $xml_server['L'] )								{									case 1:										$serverpop = 'Low';										break;									case 2:										$serverpop = 'Medium';										break;									case 3:										$serverpop = 'High';										break;									case 4:										$serverpop = 'Max';										break;									default:										$serverpop = 'Error';								}							}						}					}				}			}		}	else	{		$err = 1;	}if ($serverstatus == 'Down') echo ("<img src='/shared/wow-com/images/icons/serverstatus/downarrow.gif' width='18' height='18'>");elseif ($serverstatus == 'Up') echo ("<img src='/shared/wow-com/images/icons/serverstatus/uparrow.gif' width='18' height='18'>");elseif ($serverstatus == 'Maitenence') echo ("<img src='/shared/wow-com/images/icons/serverstatus/downarrow.gif' width='18' height='18'>");echo ($server)?>

  3. And instead of single quotes, if you want to have double ones in the htnml source code too, you may choose to use escaped double quotes inside double quoted strings like this:[*Edit:]That last error means (may mean) there is something wrong with the external file, or the internal code, that defines your classes. It may be the URL you use if it is an external file, that is incorrect. Could you show the part that defines your classes, or describe it if it is too long?
    $url = "http://worldofwarcraft.com/realmstatus/status.xml";$server = "Akama";

  4. now it gives:

    Fatal error: Cannot instantiate non-existent class: xmlparser in /home/souimapp/public_html/status.php on line 6
    for
    $xml_parse =& new xmlParser();

  5. Why am I getting this error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/souimapp/public_html/status.php on line 79
    for
    if ($serverstatus == 'Down') echo ("<img src="/shared/wow-com/images/icons/serverstatus/downarrow.gif" width="18" height="18">");elseif ($serverstatus == 'Up') echo ("<img src="/shared/wow-com/images/icons/serverstatus/uparrow.gif" width="18" height="18">");elseif ($serverstatus == 'Maitenence') echo ("<img src="/shared/wow-com/images/icons/serverstatus/downarrow.gif" width="18" height="18">");echo ($server)

    I thought you can use html inside echo.

  6. wow nice page !!!!but what is the problem exactly ?can you post the code of the menu ?
    Read my first post.The menu section don't open and close correctly and menu items get placed in the wrong location and stuff.I can't post the code as there are several javascript files that control the menu.
×
×
  • Create New...