Joomla - Increase search box limit
By default Joomla allows to enter only 20 characters in the search box. This can be changed by a simple core hack. Be aware that any changes to Joomla core files can be overwritten by a Joomla update.
Open file: /public_html/_sites_/mysysadmintips_2/language/en-GB/en-GB.localise.php
en-GB part may be different for you (depending on Joomla language)
Edit or remove "Powered by Phoca Guestbook" back-link
As many other free Joomla extensions Phoca Guestbook adds a credit backlink to the footer of your website. You can make a small donation to get the link removed by the Phoca developers.
As extension is released under GPL license nobody prevents you from making the changes yourself. Quite often such backlinks are too obtrusive and you may want to make font smaller or change colours to blend-in better with website's design. Obviously nobody prevents you from removing back-links completely (a small donation to the author would be a nice gesture though).
Read more: Edit or remove "Powered by Phoca Guestbook" back-link
Disable and redirect Joomla "User Profile" page
Previously, in this article, I explained how to redirect users after registration to any page on your website thus avoiding User Profile page after they login for the first time.
If New User Account Activation is set to None (activation not required) this is all you need to avoid User Profile page. However, if Account Activation is set to Self (activation via an email link) this is not enough. When users click on a link in the activation email, they are taken to a login form and if they use it to login, they get to the User Profile page.
There may be other ways to prevent this, and if you know a better one, let me know, but this is how I solved it:
Open file components/com_users/views/profile/tmpl/default.php
This is how it looks:
<?php
/**
* @package Joomla.Site
* @subpackage com_users
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @since 1.6
*/
defined('_JEXEC') or die;
JHtml::_('behavior.tooltip');
?>
<div class="profile<?php echo $this->pageclass_sfx?>">
<?php if ($this->params->get('show_page_heading')) : ?>
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<?php echo $this->loadTemplate('core'); ?>
<?php echo $this->loadTemplate('params'); ?>
<?php echo $this->loadTemplate('custom'); ?>
<?php if (JFactory::getUser()->id == $this->data->id) : ?>
<a href="/<?php echo JRoute::_('index.php?option=com_users&task=profile.edit&user_id='.(int) $this->data->id);?>">
<?php echo JText::_('COM_USERS_Edit_Profile'); ?></a>
<?php endif; ?>
</div>
Remove plain text passwords from Joomla registration emails
Joomla CMS sends registration welcome emails with plain text passwords, which is not a great security practice.
To prevent this you can modify language file:
language/en-GB/en-GB.com_users.ini
Depending on your Joomla installation language en-GB bit may be different for you.
We are interested in two entries:
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY
COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY
This is full text:
COM_USERS_EMAIL_REGISTERED_WITH_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s \n\nAfter activation you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
COM_USERS_EMAIL_REGISTERED_WITH_ADMIN_ACTIVATION_BODY="Hello %s,\n\nThank you for registering at %s. Your account is created and must be verified before you can use it.\nTo verify the account click on the following link or copy-paste it in your browser:\n %s \n\nAfter verification an administrator will be notified to activate your account. You'll receive a confirmation when it's done.\nOnce that account has been activated you may login to %s using the following username and password:\n\nUsername: %s\nPassword: %s"
Read more: Remove plain text passwords from Joomla registration emails
- Modify or remove "Powered by Kunena Forum" credit links
- Joomla - JUser: :_load: Unable to load user with ID: 62
- Redirect "component/content/?view=featured" to your home page
- Joomla - add separator between articles on front page
- Change default article sort order in Joomla back end
- Joomla article navigation in middle of the page
- Remove date and time from Joomla Menu link URL
- Removing hidden online poker link from Joomla template
- Joomla - make pagination horizontal
- Reboot Linksys / Cisco SPA VOIP Phones remotely