Category: Web and Network
-
Add www to all URL’s on Apach website (.htaccess mod_rewrite)
Following rewrite rule will add www to all URL’s on your website in case a visitor didn’t type www or followed a link without www. Add this to your .htaccess file: Options +FollowSymLinksRewriteEngine Onrewritecond %{HTTP_HOST} ^yourdomain.com$ [nc]rewriterule ^(.*)$ http://www.yourdomain.com/$1 [l,r=301,nc]
-
HTML paragraph double spacing in Internet Explorer
Spacing between lines separated by Paragraph tag <p></p> is much wider in Internet Explorer (comparing to Firefox, Chrome or Safari). Resolved by adding following code to .css file: p { margin: 0 0 1em 0; padding: 0;}
-
Google Maps API v3 – Polygons not appear in Internet Explorer
Programmatically drawing an area on a Google Map using Polygon overlay from Google Maps API v3. Area appears as expected in Firefox and Chrome bowsers, but is not visible in Internet Explorer. Issue was caused by an extra coma defining polygon coordinates:
-
Website goes dark on mouse click in IE
Issue A website goes dark is user clicks anywhere on the web page. Only affects Internet Explorer 9 users (IE 10 maybe affected as well, but it is still in beta haven’t been tested). Cause Website used Lightbox 2 to display images (v2.04). It seems that this version is not compatible with IE9. The dimming…
-
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…
-
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…
-
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_BODYCOM_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.…
-
Modify or remove “Powered by Kunena Forum” credit links
Kunena forum by default adds “Powered by Kunena Forum” credit link in the footer of every forum’s page. While this is a fair way to say “thank you” to developers for their hard work (and Kunena team specifically asks not to remove their credit link) you may have valid reasons why you choose to edit…
-
Joomla – JUser: :_load: Unable to load user with ID: 62
Issue occurred after migrating website from Joomla 1.5 to 2.5 (using SP Upgrade). When admin user was logged-on in the front end, on some pages following error was displayed: Problem was caused by checked-out articles. As users were not migrated using SP Upgrade (website had only one user) checked out articles were marked as being checked…
-
Redirect “component/content/?view=featured” to your home page
I’ve had this issue with some brand new Joomla websites. One of the first URLs Google indexes is www.yoursite.com/component/content/?view=featured. In addition to a weird URL, following this link often opens your website without navigation or some other components. While this normally gets resolved after a while without any action (Google updates its index), as a…
-
Joomla – add separator between articles on front page
If you want to add a separator between your Joomla home page featured articles, add following text to your template’s Cascading Style Sheets (CSS) file: .item-separator {border-bottom: 1px dotted #898989; display: block; height:5px; margin: 10px 0; width: 100%;} Adjust parameters to match your website design.