|
||||||
| HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Well, your first line of code is for older versions of Joomla! (Before 1.5):
HTML Code:
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); Joomla! 1.5 uses: HTML Code:
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' ); HTML Code:
<?php if ( $my->id ) initEditor(); ?>
HTML Code:
if( defined( '_JEXEC' )) {
$user =& JFactory::getUser();
$my->gid = $user->get('aid', 0);
}
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||||
|
Thanks for your reply, i made the changes, actually my instalation is joomla 10.x but i am planning to upgrade to 1.5 i think is the best way to learn, i wonder if is necessary to change the encoding in this code cause i want to have the option to publish menu items and documents with different language characters, like Mandarin, Russian and others.
Code:
<?php
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My website</title>
if( defined( '_JEXEC' )) {
$user =& JFactory::getUser();
$my->gid = $user->get('aid', 0);
}
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/yourtemplatesname/css/template_css.css" />
</head>
<body>
</body>
</html>
|
|
|||||
|
i have added some code here, but i am getting one line as an error
Code:
'; ?> if( defined( '_JEXEC' )) { $user =& JFactory::getUser(); $my->gid = $user->get('aid', 0); }
this is the code Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" /><title>Welcome to my Website</title>
</head>
<body><?php
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My website</title>
if( defined( '_JEXEC' )) {
$user =& JFactory::getUser();
$my->gid = $user->get('aid', 0);
}
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/yourtemplatesname/css/template_css.css" />
</head>
<body> <table width="700" border="0" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="50" colspan="3">SITE NAME </td>
</tr>
<tr align="center">
<td colspan="3">Pathway/breadcrumb</td>
</tr>
<tr>
<td width="150" valign="top">Left modules</td>
<td width="400" valign="top"><p>Main content</p>
<p>More main content</p></td>
<td width="150" valign="top">Right modules </td>
</tr>
<tr align="center">
<td colspan="3">Some footer text. </td>
</tr>
</table>
</body>
</html>
|
|
|||||
|
reading here and there it seems that tableless layout is the best choice but what are the other options to get a table looking layot without tables?
I have created already a template_css folder and file i gues i must do something there. Code:
<?php
defined( '_JEXEC' ) or die( 'Direct Access to this location is not allowed.' );
$iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My website</title>
if( defined( '_JEXEC' )) {
$user =& JFactory::getUser();
$my->gid = $user->get('aid', 0);
}
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/yourtemplatesname/css/template_css.css" />
</head>
<body>
</body>
</html>
|
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Calculator | AfTriX | VB Tutorials | 3 | 02-29-2008 08:53 AM |
| Generating executable machine code | steffanp | General Programming | 5 | 02-03-2008 10:01 AM |
| Please Help With A C Program!! | siren | C and C++ | 7 | 04-17-2007 08:45 AM |