Showing posts with label Remove. Show all posts
Showing posts with label Remove. Show all posts

Thursday, May 2, 2013

Remove JPAGE_CURRENT_OF_TOTAL


If after upgrading to the latest version of Joomla 1.5.15 you started to get JPAGE_CURRENT_OF_TOTAL displayed at the bottom of the page just below the page navigation, this means that you're using localized version of the Frontend and that if you want to get rid of this mess you should keep reading.

This is how typically it would look like:

«Inicio Prev 1 2 3 4 5 6  7 8 9 10 Próximo Fin»

JPAGE_CURRENT_OF_TOTAL

The problem is the lack of appropriate language pack for the installed version of Joomla. JPAGE_CURRENT_OF_TOTAL is in fact a "code representation" of the sentense "Page x of z." and the reason you seeing it this ways is because your current language pack doesn't have this sentence in it. This string actualy belong to the Joomla pagination plugin.

Solve it in 2 ways:
  1. Download a matching language pack for the version of Joomla you're working with.
  2. If the language pack is just not available yet, fix it manually:
  • Locate the main localization file - so if you have Finish installation it would be : <Joomla folder>\language\yourlanguage\yourlanguage.ini
  • Manually add the following line in to it: JPAGE_CURRENT_OF_TOTAL=Page %s of %s
That's it! Hope this tip was helpfull.

Thursday, April 25, 2013

Remove LAST_UPDATED2

After changing language, maybe you found an error message/bug displaying 'LAST_UPDATED2 '. To remove this you can follow this instructions :

1. Sign in to your website file manager
2. Entry to the / language / your_language / your_language.ini
3. Add the following line in the file yourlanguage.ini

Page = Page% s of% s
LAST_UPDATED2 = Last updated on% s4. 

Done, that's it. View the changes. May be useful

Remove GNU/GPL Licence?


If you want removing "Joomla! is Free Software released under the GNU/GPL License." at the footer of each page, the steps are :

Reguler Mode
1. Go to Extensions -> Module Manager -> Footer -> Unpublish
* for administrator page, go to administration tab


Syntax Mode
1. Go to the language folder
2. open en-GB.mod_footer.ini file
3. Replace the text as below for footer_line1 and footer_line2
FOOTER_LINE1=Copyright &#169; %date% %sitename%. All Rights Reserved.
FOOTER_LINE2=


note : keep "FOOTER_LINE2=" as blank


Friday, April 19, 2013

Remove the Joomla Meta Name Generator Tag

Plugin (Joomla 1.5, 1.6, 1.7 & 2.5)

By far the easiest way is to use the Joomla plugin ByeByeGenerator. Install the plugin, enable it, verify the meta tag is removed in the source code and you are done. Not only is the method the easiest, it will work for any version of Joomla. 1.5, 1.6, 1.7 & 2.5. This method is also persistent, so if you change your templates a lot or do any updates, this plugin will always work and never get overridden. But what if you are a purist?



Manually


Steps#A (Joomla 1.7)
In Joomla 1.7, the system automatically creates a META Generator tag that you might want to change or hide.

The default tag looks like this: <meta name="generator" content="Joomla! 1.7 - Open Source Content Management" />

There is no way within Joomla to change or remove this tag, so you have to put a little line of PHP in your template.
Edit your template and look for this line: <jdoc:include type="head" />

Just above that line, paste in the following: <?php $this->setMetaData('generator','my site'); ?>

The two lines together should look like this: <?php $this->setMetaData('generator','my site'); ?> <jdoc:include type="head" />

In the above code, substitute your custom generator tag value in place of the words my site.

Because this hack is in your template, you don’t have to worry about the next upgrade to Joomla overwriting hacked core files.

Ilustration with Joomla 1.7 default template Beez2 – Default

 
Editing the HTML of Beez2 – Default, you will see on line 36 is the opening HTML <head> tag, then on line 37 is <jdoc:include type=”head” />

We’re going to insert a new PHP command between line 36 and 37 — between the <head> tag and the <jdoc:include type=”head” />

Copy the following code:<?php $this->setMetaData('generator','my site'); ?>

Then paste this code into the Beez2 – Default template code between line 36 and 37. Your code should now look like this:

To customize this, you will replace your own value for the ‘my site’ value. In my case, I use my domain name.

Now, save the template and upload. Switch to your web browser, reload the page, and view the source.

Steps#B (Joomla 2.5)
The method to removing the meta name generator tag for Joomla varies between versions. On Joomla 2.5 you can simply add this code to your index.php file in your template.
JFactory::getDocument()->setGenerator('');

Put it just after the line //no direct access. This method will vary greatly on what template you are using and from what company, so I cannot get too detailed. For example YooThemes has a different template structure then RocketThemes. You will have to noodle around a bit yourself in order to do this. The main advantage of editing the template code instead of installing a plugin is less overhead. The fewer plugins you have, the faster your site will be, and queries add up fast.

Steps#C (Joomla 2.5)Add following line in the source code of the index.php of your template: $this->setMetaData('generator','');

Add it direct after the line: defined('_JEXEC') or die;

Steps#D (Joomla 2.5)
To remove the <meta http-equip> tag in Joomla 2.5.6 comment out (put 2 forward slashes at the beginning of) lines 72-102 in the file libraries/joomla/document/html/renderer/head.php (see below)
Also, remember to declare a character set elsewhere - such as in your .htaccess file .

// Generate META tags (needs to happen as early as possible in the head)
//foreach ($document->_metaTags as $type => $tag)
//{
//foreach ($tag as $name => $content)
//{
//if ($type == 'http-equiv')
//{
//$content .= '; charset=' . $document->getCharset();
//$buffer .= $tab . '<meta http-equiv="' . $name . '" content="' . htmlspecialchars($content) . '" />' . $lnEnd;
//}
//elseif ($type == 'standard' && !empty($content))
//{
//$buffer .= $tab . '<meta name="' . $name . '" content="' . htmlspecialchars($content) . '" />' . $lnEnd;
//}
//}
//}
// Don't add empty descriptions
//$documentDescription = $document->getDescription();
//if ($documentDescription)
//{
//$buffer .= $tab . '<meta name="description" content="' . htmlspecialchars($documentDescription) . '" />' . $lnEnd;
//}
// Don't add empty generators
//$generator = $document->getGenerator();
//if ($generator)
//{
//$buffer .= $tab . '<meta name="generator" content="' . htmlspecialchars($generator) . '" />' . $lnEnd;
//}
//$buffer .= $tab . '<title>' . htmlspecialchars($document->getTitle(), ENT_COMPAT, 'UTF-8') . '</title>' . $lnEnd;

Steps#E (Joomla 2.5)
Your Joomla site always comes with a default meta generator to show that your website is a Joomla site, and sometimes it will show its version as well. It is important to hide this for security measures if you do not want others to see your source code and know it is a Joomla site and what version it may be. It is good to be aware that the changes you make will be overwritten when upgrading your Joomla version.

1. Open your head.php file


Open your FTP program.
Navigate to this file: (root directory)/libraries/joomla/document/html/renderer/head.php
Open your head.php file with a Text Editor.

2. Navigate to the meta generator section of the PHP code



Look for the line of code that creates a function called getGenerator().

3. You can remove the line of code by commenting it out and your site will now show a meta name generator



Adding 2 slash lines in front of the code will prevent the website from rendering it as code. So it's basically removed, without removing it. It's always safe to do the commenting method so you can always revert back to previous changes.

4. Instead of commenting it, you can change the code


You can change this to any type of meta name you'd like. I changed my site to "author" with my name in the double quotes, removing everything else within the quotes first.

Congratulations! You now have full control of your header file, but remember you are able to edit most sections using your admin panel but it is good to know how to remove sections and where to find the actual file your header code is generated at

Thursday, April 18, 2013

Remove version number / name of extensions


Most vulnerabilities only occur in a specific release of a specific extension. Showing MyExtension version 2.14 is a really bad thing. You can modify this message to only the name of the extension by doing the following:

1. Retrieve all files of the extension from your server. 

2. Open up Dreamweaver.

3. Load any file from the extension that you just downloaded to your local machine.

4. Use the Search function and set the search to Search through specified folder. Navigate to the folder where you downloaded the exploit to.

5. Set the search term to "MyExtension version 2.14" and press OK.

6. When found the correct file, remove the version number.

7. Upload the changed file to your server and check if the changes are made.

Remove "You are here" on Joomla


Simply turn off the "Breadcrumbs" module in the Administrative area for the frontpage. Or just click on the disable button to turn it off sitewide.

To edit the words "You Are Here" to read something like, "Here's Where Yous At":, you need to edit the file LAYOUTS > BLOCKS >FOOTER.PHP

You'll see the words in source code of that file.

Remove the "Powered by Joomla!"


Joomla 1.5

Starting with Joomla 1.5 and its move to Internationalization and full support of UTF-8, messages for footer.php and other Joomla pages has been moved to a language specific file.
If you want to change the text, go to the language directory, go to the folder of the language you want to change, find the mod_footer.ini file and change the relevant text. For British English, the specific file is language/en-GB/en-GB.mod_footer.ini. Remember that you may not remove copyright and license information from the source code.
If you want to remove the footer entirely, go to Extensions > Module Manager and unpublish the footer module.
Other places where can look for options to make changes are these. If you find code related to footers in these files, you can either "comment it out" or remove it:
  • /includes/footer.php file.
  • index.php file for your active template

Joomla 1.0
You may remove that message, which is in footer.php. You may however not remove copyright and license information from the source code.

Sunday, March 17, 2013

Change/Remove Administrator Page Footer


On standard package installation, Joomla displays some description on their footer in administrator page.  In some versions, it says "Joomla is free software ...." and also display the version being used.
You can change/remove in some steps :

1. Go to
   - /administrator/templates/(name of template being used)/login.php 
   - /administrator/templates/(name of template being used)/cpanel.php
   - /administrator/templates/(name of template being used)/index.php
2. Open file and edit/remove the bottom code (on <div> footer </div>) then save it

* do it on each administrator templates