Category: Web and Network
-
PHP code to search Windows Active Directory (via LDAP)
Following sample PHP code will connect to your local (or remote) Active Directory Domain Controller (LDAP server) and return all object with specified OU: Number of objects found Common Name Distinguished Name Description (if exists) Primary Email Address (if exists) Be aware that LDAP support by default is not installed in PHP. For instructions on…
-
Gmail signatures stack up at the bottom
If you use signatures feature in Gmail web client you will quickly notice that signatures always go to the very bottom of the email. If you reply to somebody’s message your signature appear below the original message you are replying to. If you have along email conversation you may end up with dozen of signatures…
-
Joomla – TinyMCE Editor removes non braking spaces on saving
TinyMCE Editor has a code clean-up function which tries to clean html code while saving articles. This removes all non-braking spaces regardless of the way they were entered – Spacebar, TinyMCE Insert non-breaking space character button , or even directly in html mode. To stop this behaviour head to Extensions > Plugin Manager >…
-
Enabling default .htaccess (for SEF) breaks Joomla website
After enabling .htaccess (by renaming htaccess.txt to .htaccess) on one of my test websites I found that website is broken and Apache throws following error: The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@domain.com and inform them of the time the error occurred, and…
-
Joomla 1.7 – admin email notification after user registration
There are 3 user activation options in Joomla 1.6 and 1.7 (they can be found in Users > User Manager > Options > New User Account Activation): None – no activation required. After registration account is activated automatically and user can login. Notification email is sent to the registered user Self – user receives an…
-
Joomla – Redirection after user registration
In Joomla, after successful registration, users by default are redirected to a login page (if account doesn’t need to be activated). From there (after logging in) users are redirected to a user profile page. This happens even if you have Login Redirection set to something else in Login Form Module. To change this behaviour you…
-
Joomla 1.7 language override (User-Profile Plugin)
This article explains how to change text in User – Profile plugin fields. You can use the same instructions to override pretty much any text filed in Joomla. Let’s say we want to change Address 1: to Your Address: First off all find the original text you want to change in Joomla language file.Language files…
-
Add additional fields to a Joomla 1.7 registration form
Joomla 1.6 / 1.7 has a great new feature which allows to expand registration form without any third party plugins or core hacks such as this. Go to Extensions > Plug-in manager and enable User – Profile pluginOpen the plugin, expand Basic Options, disable not required fields and set required fields to either Optional or…
-
Password fields in IE smaller than other fields
You create a new registration / login form. In all browsers except Internet Explorer all fields appear exactly the same size. In IE however password fields are smaller (shorter) than all other fields. Most likely reason why password fields are smaller in IE is different font used in different types of fields. To resolve, simply…
-
Joomla – remove login form border
Depending on your template, Joomla registration and login forms may be displayed within a border. If required this can be be removed by adding following code to your template .css file: fieldset{border:none;} Joomla 1.5Joomla 1.6Joomla 1.7
-
List all Joomla rated / voted articles
Joomla built in rating / voting plugin allows visitors to vote on your articles. You can view ratings in the front end at the top of each article, but there is no easy way to see all rated articles in one place. This can be done using a simple SQL query. This assumes that you…
-
Joomla – insert module into article
Normally you can’t place module within articles. However there is easy workaround which allows you to do exactly this. Customize your ModuleExtensions > Module Manager > [your module]Customize your module as required.Then go to Position field, delete existing entry and type your own custom position e.g. content_my_module. You can type pretty much any name, but…