|
|
|
|
![]() ![]() |
Jul 13 2007, 10:15 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 209 Joined: 12-July 07 From: Canada Member No.: 46,349 |
I have this code already existing... (index.php)
CODE <?php if ( $my->id ) { initEditor(); } ?> <meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" /> <?php mosShowHead(); ?> <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?> <div align="center"> <?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?> <br /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <table width="958" height="109" border="0" cellpadding="0" cellspacing="0"> .... .... and it goes on. i am told to add this code in the head section... CODE <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_css.php" type="text/css" /> <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_js.php"></script> I don't know much about PHP, but I don't see a <head> incorporated in the index.php and I am not sure how to add the code. Anyone help out? |
|
|
|
Jul 13 2007, 12:33 PM
Post
#2
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,308 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
In your html document you would insert that document like this
CODE <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_css.php" type="text/css" /> <script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_js.php"></script> </head> So all you have to do is look for the <head> tags and insert it right there, in future reference you can post the whole code so we can view it better. By the way what kind of script is this because the the top coding looks kind of funky structure wise. |
|
|
|
Jul 13 2007, 01:04 PM
Post
#3
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 3,882 Joined: 24-July 05 From: In Trouble Again... still? Member No.: 9,787 ![]() |
QUOTE <?php if ( $my->id ) { initEditor(); } ?> It might be that this line of code calls a function which adds the Head tag. Run the script in your browser and do a view source to see if the head tag is inserted before the Doctype and that is likely what is happening. |
|
|
|
Jul 13 2007, 06:46 PM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 209 Joined: 12-July 07 From: Canada Member No.: 46,349 |
Oddly enough, there isno header called... the code is as it goes in... (oops gotta fix meta tags)
CODE <meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" /> <title>Black Label - Home</title> <meta name="description" content="Joomla - the dynamic portal engine and content management system" /> <meta name="keywords" content="Joomla, joomla" /> <meta name="Generator" content="Joomla! - Copyright © 2005 - 2006 Open Source Matters. All rights reserved." /> <meta name="robots" content="index, follow" /> <script src="http://blackl.trap17.com/includes/js/joomla.javascript.js" type="text/javascript"></script> <link rel="shortcut icon" href="http://blackl.trap17.com/images/favicon.ico" /> <link rel="stylesheet" href="http://blackl.trap17.com/templates/g_rey_reen/css/template_css.css" type="text/css"/><link rel="shortcut icon" href="http://blackl.trap17.com/images/favicon.ico" /><div align="center"> <br /> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <table width="958" height="109" border="0" cellpadding="0" cellspacing="0"> And as for the index.php... I am gong to go above the code and just put html in. I'll play around and use your suggestions and try things out. Probably could have done this with out asking, but i asked around 6:30 in the morning... got some sleep now This post has been edited by 9block: Jul 13 2007, 06:48 PM |
|
|
|
Jul 10 2008, 09:18 AM
Post
#5
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 89 Joined: 22-April 08 From: Harare, Zimbabwe Member No.: 61,160 |
Guys I'm also using Joomla but it's still on a local server. I hate it when people visit my site and they see Joomla this, Joomla that. The thing I hate most is the favicon. Does anyone know where this guy lives? I want to replace him with mine.
I've tried adding the following html code to the index.php but I still get the icon on my site CODE <link rel="shortcut icon" href="images/favicon.ico" Does anyone know how I can make a downloaded template the default template so that my files will not be in the directory: (doc_root)\templates\(template_Name)\ It anoys me because the path will show info about the template plus it complicates things. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 26th July 2008 - 07:16 AM |