Release Notes

MyFooter is a basic plugin that allows you to change the default footer with your own brand, copy right statement and navigation links. 

Using the plugin means that your changes wont be affected by upgrading.

Simple css.php and footer.php are used and can be edited to suit your needs. A readme.txt is also included.

-Carlos 

  • ;-O

    Another simple but good one !

    For those who are asking about "...Adding about page and contact page.." -- you all might want to read into the code for this.. you will find hints regarding how you can add you own custom pages links into the footer --- " You can add as many links as you want and add images and so on in footer.php "

    @Carlos

    Why not something similar for e.g. Page Top Header for header_contents.php ? ;-)

  • @Dhrup

    Cool idea.. I'll get started on it soon !

    Cheers

    -Carlos

  • @carlos it would be very nice if you could do the header also 

  • This works a treat, so simple. Well done.

  • I wish you "ElGG-heads" spoke English for us "newbies". I suppose I'll have to get a degree in programming just to understand your lingo. Could you please give some directions (such as in ReadMe) in plain english for us who don't know your language? If I knew how to modify the code like ReadMe is requiring, I probably would just write my own and wouldn't need other people's Plug-Ins. This is so frustrating to someone who's as ignorant of this as I am. Does anyone here speak common English, please ?  I'm sure it's a great plug-in, but with my extremely limited knowledge, it's worthless. Thanks. - Lee  (Lee-vit-Over@hotmail.com)

  • @Lee..

    I tried to simplify this as much as possible, but I probably didn't do a good job. For this plugin, you don't need any degrees.. it is very simple:

    Step by Step:

    In the plugin downloaded folder, only 2 files that you need to open and modify..

    1. Views/default/page_elements/footer.php (this is where you footer content is);

    2. views/default/footer/css.php (this is the style of your footer like fonts and colors);

    Here's the process:

    1. Open the downloaded MyFooter/views/default/footer/footer.php

    2. Look for and locate the phrase: 'My Site 2009. All rights reserved.'.. change the words: 'My site' to your website name.

    3. Look for this block: 

     

                                  <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">About</a></td>

                                  <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Terms</a></td>

                                  <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Privacy</a></td>

                                  <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Search</a></td>

                                  <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Contact</a></td>

    These are the links you want displayed on your footer.. The words: About, Terms, Privacy, Search, Contact are the actual words the visitor will see in the footer in that order.. This will show your footer like this:
    About  Terms  Privacy  Search  Contact
    If you want to take out any of them, you must take out the entire line.. for example, if you do not wish to display the link 'Search' in your footer, you must take out: 
    <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Search</a></td>. If you want to add a new
    link, ex: Site Map, you must a dd a new entire line:  
    <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Search</a></td>
    If you want to replace the words with images, or place images near the words, you can use a normal image placement string.. if I want for example to add an image of next to the link 'Contact', then my link would look like this:
    <td class="link"><a href="<?php echo $vars['url']; ?>" target="_self">Contact <imge src="<?php echo $vars['url']images/image.gif; ?>"</a></td>.
    4. Stay in there, next we will complete linking those links to the relevant pages:
    Look at this in everyone of those links: "<?php echo $vars['url']; ?>".. This is to remain untouched because it is your website name as you put it in your settings... for example, if your website is 'fishnchips.com', the "<?php echo $vars['url']; ?>" will tell the page display 'http: / /fishnchips.com/'.. But remember, those links point to certain pages in the site, so we now need to add the rest of the link.. All you have to do is insert the remainder of your link after (php echo $vars['url']).. example "<?php echo $vars['url']contact_folder/contact_us.php; ?>".
    5. Save the file.
    6. Open the downloaded views/default/footer/css.php (this is the style of your footer like fonts and colors);
    7. You will see the 'css' controlling the style of your new footer. Look back at the first file we opened, you will notice that everything has 'calss="something (or the name of the class as you see it above)"'. This means that that elements is taking its style from this css file.. If you want to change the style of any of those footer elements, locate the style block in the css file and modify it to suit your style.
    Example: I want to modify the font color of the links, I will see that their class is 'link'.. so, I would go back to the css file and look for that class. In this case, you will not find it, but you will notice that there is 'table.footerlinks.td'.. This applies to any cell within that table.. so, modify that style as you want.. and, the following 4 blocks deal with how the link looks and behaves with mouse over, click, and how it looks if it has been visited and so on.
    table.footerLinks td {
    padding: 0px 8px 0px 8px;
    }
    table.footerLinks td a:link {
    color: #333333;
    text-decoration: none;
    }
    table.footerLinks td a:visited {
    color: #333333;
    text-decoration: none;
    }
    table.footerLinks td a:hover {
    color: #333333;
    text-decoration: underline;
    }
    table.footerLinks td a:visited:hover {
    color: #333333;
    text-decoration: underline;
    }
    8. Now save your work.
    9. Upload the entire MyFooter folder to your mod directory.
    10. Make sure it's at the bottom.
    11. Go to your site admin and enable the plugin.
    12. Clear your cache by unticking the 'use simple cache' box and saving, then tick again and save again.
    13. The changes should be visible.
    There... is this better.... and believe me, this tutorial took me longer to prepare than writing the actual plugin.
    Let me know if any problems.
    -Carlos

     

  • great! just got it, installed, worked, etc.

    Thanks!

  • Thanks imcobarn,

    These are good points, although I did leave calling the site and year out deliberately. Some websites are owned by other sites or companies who then legally own the copy right. For example, your company 'Company Ltd' owns your website 'www.site.com' in which case your copy right statement would read Copyright 2009 Company Ltd. As for the year, there some countries that requires registration of copyright and they issue a periodical license so it would not be any good to display the year unless they have a registration for that year like here in Australia.

    But, you are correct in using that code to call both the site name and year.

    Thanks.

    -Carlos

  • Hi Carlos--

    I appreciate all you've done with this plugin, and your very detailed "extra" instructions above!  Thank you :).

    I am having one problem that I hope you can help me with...I cannot change the color of the five links!  I've changed EVERY hexadecimal value in the footer/css.php file to #FFFFFF, and they just won't change.  The copyright text in the left cell of the table is white now, but the links in the right cell just won't change.

    Please let me know if there's something obvious that I'm missing.

    Thank you so much!

    Molly

  • @Molly,

    I do not think that Carlos will be answering this question for some time.. I know from some reliable sources that he has been offline (no internet access) for quite some time - maybe a few weeks;-(

Carlos

Custom web design and development.

Stats

  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 3038
  • Recommendations: 0