Jump to content
xisto Community
Sign in to follow this  
9block

Editing Or Modifying Joomla For A Beginner Php Help... Joomla related.

Recommended Posts

I have this code already existing... (index.php)

<?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://forums.xisto.com/no_longer_exists/;  <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...

<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?

Notice from BuffaloHELP:
Last warning notice** Topic title is IMPORTANT!

Share this post


Link to post
Share on other sites

In your html document you would insert that document like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/ 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.

Share this post


Link to post
Share on other sites

<?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.

Share this post


Link to post
Share on other sites

Oddly enough, there isno header called... the code is as it goes in... (oops gotta fix meta tags)

<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://forums.xisto.com/no_longer_exists/; type="text/javascript"></script>			<link rel="shortcut icon" href="http://forums.xisto.com/no_longer_exists/; />	<link rel="stylesheet" href="http://forums.xisto.com/no_longer_exists/; type="text/css"/><link rel="shortcut icon" href="http://forums.xisto.com/no_longer_exists/; /><div align="center">    <br />    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://forums.xisto.com/no_longer_exists/;  <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 :D

Edited by 9block (see edit history)

Share this post


Link to post
Share on other sites

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

 

<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.

Share this post


Link to post
Share on other sites

Don't worry anymore. I found ways around the problems. I figured out that I cannot change the template directory. As for the favicon it is a bit simple: Unzip Joomla! to a folder and search for all the favicons. Replace them with the custom one and that's it. All that is left is to zip the folder again.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.