Advertisement

Mambo Copyright Notes - question about editing

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
oMama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 116
Joined: Thu Aug 18, 2005 10:18 pm
Location: USA

Mambo Copyright Notes - question about editing

Post by oMama » Thu Aug 18, 2005 10:38 pm

Hello OSM folks!

I am a newbie to Mambo and new to CSS and actually, new to just about everything that there is to be done here, lol.  Finding my way around at a snail's pace, and just so grateful that you are all here to help.  So thank you thank you thank you!!

My question is:  I would like to edit the "Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License." text that appears at the bottom of all of the pages in my site so that it has MY copyright info on the first line, and then the Mambo (c) stuff on the line below.  I was able to locate the footer.php, and version.php files, and made the edit but nothing has changed on my site pages.

I am very cloudy in my understanding of the relationship between the index.php file and the .css file, and then all of the underlying .php files that are associated therein. 

I have the same type of trouble trying to change the favicon.ico to my own image... I changed it just about everywhere I could find it referenced... but still have the mambo flower in the fave/url areas.

Thanks in advance.
~Corinne
----------------------------
Corinne
"Experience is not what happens to a man;  it is what a man does with what happens to him."  -Aldous Huxley

Advertisement
User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Thu Aug 18, 2005 10:58 pm

hi and welcome ;)

located in the index.php of the template, you can do a search for 'footer'. there you will see the line of code that includes the footer in the template. You can feel free to remove it from any templates.
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Thu Aug 18, 2005 11:07 pm

the footer include code will look approximatley like this and is located at bottom of the template's index.php file:

Code: Select all

<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>

the favorit icon code look like this and is found near the top ( in head):

Code: Select all

<?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />";
if you like to remove the favorite icon, you can remove that line of code. if you like to use a different icon, look in the mambo images folder for favicon.ico

note you must use a speical .ico file, a jpg or gif will not work!

hope that helps!
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

vavroom

Re: Mambo Copyright Notes - question about editing

Post by vavroom » Thu Aug 18, 2005 11:29 pm

Alternatively, you can edit the content of the footer by looking in your /includes folder for the footer.php file.  There, you can edit the current copyright info, put your own, or do whatever you want :)

oMama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 116
Joined: Thu Aug 18, 2005 10:18 pm
Location: USA

Re: Mambo Copyright Notes - question about editing

Post by oMama » Thu Aug 18, 2005 11:35 pm

Thank you so much, gentlemen!

I have successfully changed the copyright info!  ;D

On to the .ico now.

~Corinne
----------------------------
Corinne
"Experience is not what happens to a man;  it is what a man does with what happens to him."  -Aldous Huxley

camos
Joomla! Ace
Joomla! Ace
Posts: 1056
Joined: Thu Aug 18, 2005 2:39 am

Re: Mambo Copyright Notes - question about editing

Post by camos » Fri Aug 19, 2005 12:19 am

Corinne, the footer is best kept in the template folder so that future core upgrades do not overwrite it.  Just to be tidy, I create /templates/MyTemplate/includes for all "extra" files that are important to the current template being used.  Extending the idea a bit further, if you are using one of the default templates or another one that has been customized the dir should be renamed to also prevent it from being overwritten by future downloads/updates. eg: SolarFlare => MySolarFlare

Cheers
Freedom is not free!
It is however Open Source.

oMama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 116
Joined: Thu Aug 18, 2005 10:18 pm
Location: USA

renaming folders

Post by oMama » Fri Aug 19, 2005 12:26 am

Thank you very much for this information, I have it on my list of things to research. I am still trying to learn a "best practices" approach to site and file maintenance so any tips would be helpful.  Would be terrific to see a 'best practices' stick thread on this in the future...? 

I am using the solarflare_ii template, and right now all of the folder names are the defaults.  If I change the name of the template folder, what files would need to be updated to be sure everything maintains its relative links?

:D
----------------------------
Corinne
"Experience is not what happens to a man;  it is what a man does with what happens to him."  -Aldous Huxley

User avatar
maverick25
Joomla! Intern
Joomla! Intern
Posts: 79
Joined: Thu Aug 18, 2005 12:38 pm
Location: Marikina City, Philippines
Contact:

Re: renaming folders

Post by maverick25 » Fri Aug 19, 2005 1:15 am

oMama wrote: I am using the solarflare_ii template, and right now all of the folder names are the defaults.  If I change the name of the template folder, what files would need to be updated to be sure everything maintains its relative links?
when you renamed a template folder, just edit the instances of the template folder's name in the index.php file inside the said folder.

ex. /templates/rhuk_solarflare_ii was renamed /templates/my_new_template

open index.php inside /templates/my_new_template using your favorite php/html editor. usually there is a "find and replace" (or "search and replace") function, use it to find rhuk_solarflare_ii (the name of the old folder) and replace that text with my_new_template (the new folder name).

ex. line 43 in index.php of the rhuk_solarflare_ii template
/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css"/>

when the folder is renamed, it should be edited to be like this:
/templates/my_new_template/css/template_css.css" rel="stylesheet" type="text/css"/>
Last edited by maverick25 on Fri Aug 19, 2005 1:22 am, edited 1 time in total.
http://www.maverick25.com
Signature rules - Literal URL's Only.

d3vlabs
Joomla! Explorer
Joomla! Explorer
Posts: 426
Joined: Thu Aug 18, 2005 10:41 am
Contact:

Re: Mambo Copyright Notes - question about editing

Post by d3vlabs » Fri Aug 19, 2005 6:24 am

/images/stories for the favicon [.ico]
if I recollect 4.5.2.3 got an option to do it via admin under Site > Global Configuration

User avatar
jabberwock
Joomla! Intern
Joomla! Intern
Posts: 62
Joined: Fri Aug 19, 2005 6:32 am
Location: In front of my computer in Calgary
Contact:

Re: renaming folders

Post by jabberwock » Fri Aug 19, 2005 6:39 am

maverick25 wrote: when you renamed a template folder, just edit the instances of the template folder's name in the index.php file inside the said folder.

ex. line 43 in index.php of the rhuk_solarflare_ii template
/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css"/>

when the folder is renamed, it should be edited to be like this:
/templates/my_new_template/css/template_css.css" rel="stylesheet" type="text/css"/>
actually one better is to just get rid of the dependance on the directory name completely and replace the line with:

/templates/getTemplate() ?>/css/template_css.css" rel="stylesheet" type="text/css"/>

then you can change the directory name at will, and all you have to do is change the name once in the .xml file.
Technology happens. (Andrew Grove)

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 8:42 am

I borow this thread and ask the same question as the original poster. I want to change the copyright info and in foote.php it only says

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $_VERSION;
?>
COPYRIGHT; ?>
URL; ?>

What should I change here?

User avatar
kenmcd
Joomla! Champion
Joomla! Champion
Posts: 5672
Joined: Thu Aug 18, 2005 2:09 am
Location: California
Contact:

Re: Mambo Copyright Notes - question about editing

Post by kenmcd » Fri Aug 19, 2005 8:46 am

camos wrote: Corinne, the footer is best kept in the template folder so that future core upgrades do not overwrite it.  Just to be tidy, I create /templates/MyTemplate/includes for all "extra" files that are important to the current template being used.  Extending the idea a bit further, if you are using one of the default templates or another one that has been customized the dir should be renamed to also prevent it from being overwritten by future downloads/updates. eg: SolarFlare => MySolarFlare

Cheers
In upcoming version 4.5.3 the footer is a module.
No need to hack any code any longer.
██ LibreTraining

User avatar
Fil
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Aug 18, 2005 2:08 pm
Location: Moscow
Contact:

Re: Mambo Copyright Notes - question about editing

Post by Fil » Fri Aug 19, 2005 8:52 am

... It will be very pleasantly and very conveniently...
Free software, for free people (mamboserver.ru)

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 9:15 am

Guess I have to wait for vers 4.5.3 then  :P

User avatar
Fil
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Aug 18, 2005 2:08 pm
Location: Moscow
Contact:

Re: Mambo Copyright Notes - question about editing

Post by Fil » Fri Aug 19, 2005 9:18 am

What for to wait? You can put later version and be played so :) and then to be updated. I think it for you will be a lesson :) and I think that it will be not superfluous!!! ;)
Free software, for free people (mamboserver.ru)

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Fri Aug 19, 2005 9:37 am

Otacon wrote: I borow this thread and ask the same question as the original poster. I want to change the copyright info and in foote.php it only says

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $_VERSION;
?>
COPYRIGHT; ?>
URL; ?>

What should I change here?

you can locate the footer include code as i described in my first post above. just delete it from your templats's index.php, and type your own footer copyright etc in its same place using normal html
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 9:40 am

eh? now I didn't understand. I just want to change to copyright note in the bottom of the site. Do I have to wait for vers 5.2.3 untill I can do that?

User avatar
Fil
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Aug 18, 2005 2:08 pm
Location: Moscow
Contact:

Re: Mambo Copyright Notes - question about editing

Post by Fil » Fri Aug 19, 2005 9:43 am

You can make to you and speak where it to correct, only to correct  not in the panel of the manager and handles...
Free software, for free people (mamboserver.ru)

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Fri Aug 19, 2005 10:48 am

Fil,

no offense to you, but your English is very hard to understand!  But I like your spirit of trying to help!!

@Otacaon:

you only need to edit the index.php file of the template to change or remove the footer in 4.5.2

if you are still confused, say so
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

User avatar
Fil
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Thu Aug 18, 2005 2:08 pm
Location: Moscow
Contact:

Re: Mambo Copyright Notes - question about editing

Post by Fil » Fri Aug 19, 2005 10:58 am

mambosolutions_JB : Thanks big but I very much try that me have understood :((
Free software, for free people (mamboserver.ru)

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 10:59 am

I can't seem to find where the copyright text is in index.php

Do you mind telling me so I don't remove anything important?

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Fri Aug 19, 2005 11:05 am

mambosolutions_JB wrote: the footer include code will look approximatley like this and is located at bottom of the template's index.php file:

Code: Select all

<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>


normally, the footer code is located a t bottom of your templates/(templatename)/index.php file.

if you still have a problem,  just copy/paste your whole index.php code in a post and i will have a look
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 11:18 am

I was looking in the index.php located in the root folder  :-[


So to change the text I need to opne includes/footer.php?

Edit: but then I'm back from the beggining with the code

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $_VERSION;
?>
COPYRIGHT; ?>
URL; ?>

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Fri Aug 19, 2005 11:31 am

the way i am saying to do it means edit the code in a different file, not the one you keep pasting!

normally, the footer code is located at bottom of your templates/(templatename)/index.php file
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

Otacon
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Fri Aug 19, 2005 4:54 am

Re: Mambo Copyright Notes - question about editing

Post by Otacon » Fri Aug 19, 2005 1:00 pm

thanks for helping me in the other thread

camos
Joomla! Ace
Joomla! Ace
Posts: 1056
Joined: Thu Aug 18, 2005 2:39 am

Re: Mambo Copyright Notes - question about editing

Post by camos » Fri Aug 19, 2005 1:08 pm

Otacon wrote: I was looking in the index.php located in the root folder  :-[


So to change the text I need to opne includes/footer.php?

Edit: but then I'm back from the beggining with the code

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global $_VERSION;
?>

COPYRIGHT; ?>
URL; ?>

The /includes/footer.php is a core file.  If your template uses it, the next time you upgrade that file will likely get overwritten.  If you use a template that comes by default with Mambo and do not change the name any changes will be lost as well.  
Create a footer.php in your template dir structure.  
Get rid of this:
COPYRIGHT; ?>
URL; ?>

Replace it with your site's info.

If the footer becomes a core module the same overwrite problem will exist.  Seems rather pointless to me.

Cheers
Freedom is not free!
It is however Open Source.

User avatar
joomlasolutions_JB
Joomla! Explorer
Joomla! Explorer
Posts: 355
Joined: Wed Aug 17, 2005 11:07 pm
Contact:

Re: Mambo Copyright Notes - question about editing

Post by joomlasolutions_JB » Fri Aug 19, 2005 5:04 pm

Otacon wrote: thanks for helping me in the other thread
you are welcome :)

;D ;D ;D
Joomla! Template Shop www.joomlathemes.org

Joomla Template Club
templateclub.mambosolutions.com

User avatar
DeanMarshall
Joomla! Hero
Joomla! Hero
Posts: 2352
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom
Contact:

Re: Mambo Copyright Notes - question about editing

Post by DeanMarshall » Sat Aug 20, 2005 3:23 pm

Hi everyone,

I hope there are no objections - I have aggregated and summarised this thread and placed it in the FAQs section:

http://forum.opensourcematters.org/inde ... 552.0.html

Dean Marshall
Dean Marshall Consultancy - six Joomla experts - http://www.deanmarshall.co.uk/

Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html

User avatar
moxy
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Thu Aug 18, 2005 5:19 pm

Re: Mambo Copyright Notes - question about editing

Post by moxy » Sat Aug 20, 2005 3:32 pm

DeanMarshall wrote:
I hope there are no objections - I have aggregated and summarised this thread and placed it in the FAQs section:

http://forum.opensourcematters.org/inde ... 552.0.html
Well done, Dean! Had a quick read and you seemed to have crystallized the concepts really succinctly.

Cheers

oMama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 116
Joined: Thu Aug 18, 2005 10:18 pm
Location: USA

Re: Mambo Copyright Notes - question about editing

Post by oMama » Sat Aug 20, 2005 3:53 pm

Thank you Dean... but I think you're infringing upon my copyright there... ;)

I also appreciate that you added the pros and cons and explanations in each of the options.
Excellent!
----------------------------
Corinne
"Experience is not what happens to a man;  it is what a man does with what happens to him."  -Aldous Huxley

Advertisement

Locked

Return to “General Questions - 1.0.x”