Jul 27, 2008

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

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

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

9block
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!

 

 

 


Reply

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

 

 

 


Reply

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

Reply

9block
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

Reply

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


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. modifying joomla - 8.85 hr back. (1)
  2. joomla incorporate php code - 61.49 hr back. (1)
  3. changing the title on joomla from untitled document - 68.25 hr back. (1)
  4. change name="robots" joomla - 92.42 hr back. (1)
Similar Topics

Keywords : editing, modifying, joomla, beginner, php, joomla, related,

  1. Joomla On Trap17
    (2)
  2. Drupal Enthusiasts
    Discussions related to using the Drupal Platform (1)
    I have researched a variety of CMS's and have decided to devote my time and energy into learning
    how to use Drupal. I am wondering if there are others out there using this Platform and if so,
    could we use this topic to help and learn together.....
  3. Joomla Help
    :) (2)
    Hey. I'm really new to using Joomla. I have installed a template. but it only works on the
    homepage. Any other pages on the site just have white backgrounds and weird text. The site is:
    http://theavamovement.com User: guest Pass: joomlahelp There is also a few little questions like
    what does this do, and what does that button do. I know some of my questions a probably answered in
    big guides or whatever, but I'd really appreciate if someone could add me on MSN/AIM (who has
    joomla knowledge) and just explain some things like on my level. Because sometimes gu....
  4. Editing Digital Photos
    (12)
    I have been searching and searching the internet for a program that will allow me to crop
    irregularly or by free hand. I have found many programs that are well built that allow me to edit
    all my photos after I scan them into the computer but I simply cannot find any program that is free
    that allows me to freehand crop instead of just a square or a circle. If anyone knows a program
    that I can use that will allow me to do so please respond with help please. Thanks.....
  5. Joomla Templates
    How to make them. (2)
    I am going to be working on a CMS site using Joomla. However I don;t want to go out and download a
    free template and I don;t want to pay a web design to do it. I was wondering how easy it is and if
    any one has experience or knowledge on this subject. i am currently researching tutorials and what
    not, but before I dive into this project - how much will I have to learn? I already know CSS/HTML.
    Is this a project that will require alot of time and dedication to begin? For now I am just going
    to work on setting up the system and then content. Then I will work on a template ....
  6. Ahhh! Problems With Joomla On Paying Client's Site - Help!
    And my deadline was yesterday (17)
    Can someone, knowledgeable on Joomla! pleeeease help me asap! I uploaded Joomla and went
    through the install. Three red flags showed up, two of which I ignored because they come up on just
    about every site I do and don't affect the end product in any way but one of which was Safe
    Mode: ON. Even so I don't think that this is causing the problem. I continued with the
    installation and all seemed successful until I tried to view the site which was missing all images
    (not even a red x where they should be) and there seemed to be no css styling. I log into th....
  7. Drupal Related
    Auction site (1)
    Hi, I've been trying to look for ways to run an auction site thats easy to set up and I saw
    drupal... Is there a way to run an auction site using drupal?? If anyone of you know how to do it
    plzz help me! I've tried to look through google but not getting any help! I want to make
    an auction site which will be able to take few types of product posted by the users and let other
    users log in to bid for the price! Is there a way to do so?? And if anyone of you know an
    easier way to go about doing it please help me! even if its not drupal but something ....
  8. Editing Cutenews
    How do I change colors within template? (5)
    This one will probably be a no-brainer for most of you talented folks out there, but I'm still
    not there yet. I just installed Cutenews and want to do a simple color change to the text within
    the "default" template. All I want to do is change the color on the title and comment text. I
    wouldn't mind changing the font size either. I tried inserting html code but that didn't
    work, so either I'm inserting it the wrong place or I'm using the wrong code. What's the
    easiest way to do this? Thanks in advance for your help.....
  9. How Do I Duplicate A Joomla Site?
    (4)
    Hi Guys, I'm helping a guy re-design his site who currently has a version of mambo installed.
    What i want to do is make a copy so that i can fiddle around with the layout without stuffing up the
    site. I also want to upgrade it to joomla but thats not as much of a priority. Any ideas on how i
    do this? My idea was to just copy the files installed in the mambo dir into a new folder. Will this
    work? I can't imagine it will be this simple.....
  10. Joomla Noob Questions
    (4)
    Hey guys, I haven't used Joomla before and was wondering how easy it is to customize. Is there
    a way to re-code customizable php features into a Joomla page? I was just wondering how flexible
    it is and if it is a good tool for someone who already knows how to make a webpage(php) from scratch
    by text editors. Is it just software for people who want to make web pages but can't code?
    Please hit me back with your thoughts, Cheers.....
  11. How To Incorporate A Php Script To My Website
    php beginner needs help (7)
    Well i dont know exactly how to say this but i ll try. So last few months i ve been discovering web
    design, dreamweaver, photoshop. I learned how to create layout and how to preapare it in dreamweaver
    but now i am stuck with php. I dont know how to put script in desired cell an lots of other stuff.
    yeah i am stupid, but i am who i am. all those tutorials are not helping me because they dont tell
    you how to install script where i want. i am going to explode. i tried to find finished script on
    hotscripts.com but i cant/dont_know which one will suite my needs. my layout is....
  12. Joomla & Mambo
    Great tools (9)
    Well since i have had Trap 17 hosting servie i hvae been trying to learn how to use and work with
    Mambo and Joomla. I have to say I finally have gotten the hang of it. Im learning how to manipulate
    it more and more, especially the skining of it. I definately have to recommend it to everyone out
    there if they are not using it. It is great, Its easy to use and once you read up on it its easy to
    change to your settings and personal likings. There are just a few things id like to still learn,
    so I have been on their forums reading and trying to learn new things.. but i....
  13. Looking For A New Web Editing Program
    I need a new web designing program (13)
    Ok, I am a web designer and I am having difficulty finding a good program that I can use that as
    what i'm looking for. Now I have been using TSW Webcoder but it is causing alot of errors for me
    and am getting sick of it wiping clean some of my site files. Well I am looking for a program that
    has a wysiwyg editor, sort of like the quick edit used in TSW Webcoder but a more powerful one with
    more options, also with that is a normal html editor. Also i am looking for one that has an inbuilt
    codes already in it, like quick codes to make a link, image, even javascript t....
  14. Joomla? What Is It?
    (3)
    im seeing alot about Joomla around the forums, so i figured i would check it out in the cpanel and
    see what all the hype was about. After looking through all the information in the cpanel as well as
    checking out all the links given in there for more information, im still left wondering, what the
    heck is it? im adding alot of different features to my site, so if it is something worth adding, id
    like to check it out, only...i want to know what it is first :-\....
  15. Joomla/mambo Theme Tutorials
    How can I make my own themes? (1)
    Can anyone point me in the right direction for a way to make Mambo/Joomla themes? It seems a bit
    confusing to me... Thanks.....
  16. Joomla Cms Portal
    I need some help with a template design (6)
    If there is anyone out there who is familiar with this CMS and knows about their template design,
    can you please speak up. It seems like no one at Joomla.org ever answers any of the questions I
    pose. So if at all possible help me, or point me in the right directions that would be most
    appreciated. I am currently using a header image that is 850 x 150 and I am using a variable width
    template. The page looks nice in 800x600 mode, but go to a higher resolution and you get a nice
    white gap on the left hand side of my header image. I was wondering if I should use a spacer im....
  17. Joomla Install Trouble
    on step 3 (4)
    Joomla asks on step 3 to enter a URL and path for the site. For the local site, not for the install
    directory, as aguy on Joomla Forums said to me. But im not sure what the root folder is in the path
    directory, couse Joomla creates a custom path for what it thinks it should be, and it says this:
    /home/username/public_html/ this is what joomla says, and theres also a message that states that
    this might be correct couse Joomla detects automatically the right folder... But in an ftp client
    it shows the root directory of my account as follows: /public_html/ This direct....
  18. Joomla-the New Mambo
    Info about the re-branded mambo (5)
    Joomla! to those who don't currently know, Mambo has ceised development, and in its
    place is the re-branded Joomla!. Its just had its first V1.0 release (yes v1.0) Anyways, jsut go
    round the site and have a looka round and see what it has to offer /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> if you've used Mambo before, then it looks
    pretty much the same, but has lots of new fixes etc, but is easily upgraded, just consult the online
    help section. i'm personally going to downlaod it and have a tinker with it and try....
  19. Other Web-related
    Other web-related things (0)
    OTHER www.zoneedit.com/ freedns.afraid.org/ www.no-ip.com/ www.dnspark.com www.everydns.net/
    hn.org/ dns2go.deerfield.com/ www.co.sr www.freedomain.co.nr www.dot.tk
    www.buttongenerator.com/ free.alphabutton.com/index.php www.flashbuttons.com/ www.sxc.hu
    www.google.com/services/free.html www.free-web-polls.com/ amandote.net/ www.runboard.com/
    www.styledweb.com/partner.shtml www.provizija.net www.ionbee.net/modules/arms/
    www.sitepoint.com/article/php-mysql-tutorial sqlcourse.com/ www.bidvertiser.com/ www.addesigner.com/
    www.grsites.com/logo/ www.animation.com/gt/h....

    1. Looking for editing, modifying, joomla, beginner, php, joomla, related,

Searching Video's for editing, modifying, joomla, beginner, php, joomla, related,
advertisement



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



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE