Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Editing Or Modifying Joomla For A Beginner, Php Help... Joomla related.
9block
post 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" />
&lt;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!
Go to the top of the page
 
+Quote Post
Saint_Michael
post 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
T17 GFX Crew



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.
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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.
Go to the top of the page
 
+Quote Post
9block
post 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 biggrin.gif

This post has been edited by 9block: Jul 13 2007, 06:48 PM
Go to the top of the page
 
+Quote Post
kudmus
post 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.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Joomla Install Trouble(4)
  2. Joomla Cms Portal(6)
  3. Joomla/mambo Theme Tutorials(1)
  4. Joomla? What Is It?(3)
  5. Looking For A New Web Editing Program(13)
  6. Joomla & Mambo(9)
  7. How To Incorporate A Php Script To My Website(7)
  8. Joomla Noob Questions(4)
  9. How Do I Duplicate A Joomla Site?(4)
  10. Editing Cutenews(5)
  11. Drupal Related(1)
  12. Ahhh! Problems With Joomla On Paying Client's Site - Help!(17)
  13. Joomla Templates(2)
  14. Editing Digital Photos(12)
  15. Joomla Help(2)
  1. Drupal Enthusiasts(1)
  2. Joomla On Trap17(2)


 



- Lo-Fi Version Time is now: 26th July 2008 - 07:16 AM