Adding a selectable background to a Yootheme template
- Category: Joomla
- Hits: 28011
- Joomla 2.5.8
- Yootheme Template 2012
What?
For any web-developer who can program in PHP/HTML, this would be easy to hard-code and override. However, the article below demonstrates how to make this an option that your client can switch off/on using the Joomla Admin Panel.
How?
Joomla article modal with clear button
- Category: Joomla
- Hits: 41660
What?
This is an article to describe how to add an article modal button in the Joomla Admin Panel (at time of print version 2.5.6) of your component including the all important clear button. What I found was that no one posted this solution which I found is compatible with almost any site and with all my components without having to modify the below script.
Why?
The article modal is a much easier way for the end-users to select a Joomla! article in the component parameters/options. The "clear" button is essential as some article_modal fields may not be required and are difficult to clear once set.
How?
Basic Joomla 2.5 Mootools Form
- Category: Joomla
- Hits: 49488
This is an article to demo the crudest form which uses Joomla's version 2.5 core mootools (uncompressed?). This is intended for absolute novices (like me) who just want to see an example of an AJAX form within Joomla 1.6.x - 2.5.x in it's most basic state. At time of print, I am using this with Joomla 2.5.6.
Why?
The examples of the official site (mootools.net) did not work in my Joomla environment nor did most people's examples across the web. All I wanted was a basic example to show me how to send a form asynchronously (ie. running in the background without loading a new page).
Connect to Joomla database in standalone script
- Category: Joomla
- Hits: 46738
Why?
I'm building a Joomla component which is to be compatible with Joomla versions 1.6.x to 2.5.x. Because I use dynamic scripts running in the background (mootools), some of these need to connect to the database but as they sit outside of the MVC structure, we need them to use the existing configuration file in order to retrieve the credentials (ie. username, password, database, etc.). For obvious reasons, these cannot be hardcoded.
Joomla field types clear my html
- Category: Joomla
- Hits: 16447
Trying to make a component and can't remember how to store HTML code when the save command is clicked (ie. submitted from a PHP form). This is for the Opensource Content Management System (CMS - phew what a mouthful) Joomla! version 1.6.x to 2.5.x; no wonder customers have difficulty following.
How?
So it's the field on the XML file /models/forms/whatever.xml which needs the filter=raw attribute, for example:
<field name="item_desc" type="editor" filter="raw" rows="15" cols="40" default="" />
Other searches:
- Stripping HTML from my joomla 2.5 component
- Leave my HTML alone for admins
- field types for Joomla 1.6
Migrate JComments from Joomla 1.5.x to Joomla 2.5.x
- Category: Joomla
- Hits: 274949
Thought I'd add the migration script I've been using to test my JComments migration from my Joomla CMS site version 1.5.20 to Joomla CMS site version 2.5.6.
DISCLAIMER
- I do not work for either Joomla or JoomlaTune (Jcomments)
- This script is provided as is without warranty
- If you do not understand what this script is doing, let someone who does run it instead
INSTALL INSTRUCTIONS
- Install JComments on your upgraded website (at time of print: Jcomments v2.3.0 on Joomla v2.5.4)
- Copy the below script to a text file
- Change the database names to match your setup
- Change the table name prefixes to match your setup
- Run the modified SQL script against your database.
Could not instantiate mail function
- Category: Joomla
- Hits: 36774
Check that this error isn't resolved by just changing the Mailer (Joomla > Global Configuration > Mailer settings). Alternate between PHPmail and sendmail just to check this isn't the problem. If the problem is still there then check the below:
Tried both PHPmail and sendmail
So if this happens irrespective of whether I have PHP mail or sendmail set as the Mailer.
Notice Could not execute: /usr/sbin/sendmail Warning Registration failed: An error was encountered while sending the registration email. A message has been sent to the administrator of this site.Check you can send email from that server
ERROR: Message not sent. Server replied: Connection refused 111 Can't open SMTP stream.
One common problem people have is an incorrectly setup mail system. Here is a list of rules that must be followed:
Creating a Profile Plugin for Joomla 1.6
- Category: Joomla
- Hits: 51094
Aim / Objective
- Add a field with a dropdown list.
Add a button to upload an avatar (and sync with 3rd party avatar).
Folder
I'm going to shove all these files into a folder which I will then compress and install using the Joomla! CMS Extension Manager.
I'm going to call the folder "profile5" (without the double-quotes) and create a subfolder called "profiles".
So I should end up with the following file/directory structure:
./profile5
./profile5/profiles
Also copy one of those handy blank "index.html" files into each of these folders in case "directory listing" gets enabled on your server.I'm going to refer to the files to create as being in this folder.
