Readmore button alignment in joomla

December 18, 2008 · Filed Under Joomla · Comment 

Aligning Readmore button to right in Joomla

Steps followed

1. Login to Joomla Admin Panel
2. Extension -> Template Manager
3. Select your active Template
4. edit CSS
5. template.css -> edit
6. Locate for a.readon:link, a.readon:visited  and a.readon:hover

add the following code inside it

float: right;

eg
a.readon:link,

a.readon:visited {

padding: 3px 6px 3px 22px;

text-decoration: none;

color: #404040;

background: #f2f2f2 url(../images/icon-module-arrow.png) no-repeat 5px center;

border: 1px solid #e5e5e5;

// add the following code inside

float: right;

}

Cannot download files with docman component

November 19, 2008 · Filed Under Joomla, docman · 1 Comment 

There seems to be a bug in the Docman Component 1.4.0 rc3. The component works fine except that it does not allow users to download the document . (Download button is missing)

The simple fix to it is as follows

1. login to FTP and browse the ‘docman’ folder under ‘plugins’ folder in the Joomla root directory

2. Now extract (unzip) the com_docman_1.4.0_rc3.zip file on your harddisk

3. copy 2 files from the ‘plugins’ folder (standardbuttons.php and standardbuttons.xml.php) from the files extracted in step 2 above

4. paste the files referred in step 3 to your FTP path mentioned in Step 1 above ie ‘plugins/docman’

Thats it… You will see the download link working now.

NOTE : If you are not able to copy the files to your FTP, this might be due to the fact that the apache user is the owner of the’docman’ folder under ‘plugins’ folder

To change the ownership

Login to SSH using ‘root’ user and  change the ownership of the docman folder (under plugin folder) to your user

command

chown username:usergroup filename

OR

chown username:usergroup foldername

Joomla- cutomizing Custom error (404) pages

September 22, 2008 · Filed Under Joomla · 4 Comments 

Custom error pages

Joomla! uses the templates/system/error.php file to handle several HTTP Status errors, including “403 Forbidden”, “404 Not Found”, and “500 Internal Server” Errors. You can style the error results, if desired.

It is important to understand that the error.php is an independent file from Joomla!. Plugins do not run on the file. You cannot include modules or use <jdoc:include> statements.

Overriding the System Error Results

To override the system error results, copy the templates/system/error.php file into your templates/<template-name> directory.

If it finds one, Joomla! will use the error.php file from the current template, in place of the system file.

You can format the page, as desired, to match your template.

Overriding the System Styling

If you want to change the styling, copy the templates/system/css/error.css file into your templates/<template-name>/css directory.

Next, update the your templates/<template-name>/error.php file to reference the new location of the stylesheet by changing this line, accordingly:

<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/error.css" type="text/css" />

For eg.

<link rel=”stylesheet” href=”<?php echo $this->baseurl; ?>/templates/<?php echo $this->template;?>/css/error.css” type=”text/css” />

Then, simply change the error.css, as desired, for your styling requirements.

Customizing Error Messages

You can add conditional logic to vary the message returned, dependent upon the specific error code.

Here is an example of how to trap a 404 error and provide a custom message.

<?php if ($this->error->code = '404') { ?>
	<div id="errorboxheader">Page not found</div>
		<div id="errorboxbody"><p>Sorry! That page cannot be found.</p>
		</div>
	</div>
<?php } ?>

HTTP status code

When a request is made for a page on your site, the server returns an HTTP status code in response to the request. Joomla! returns a ‘200 - the server successfully returned the page’ for error pages. This is problematic for those working with Google Webmaster Services and trying to get a sitemap resolved.

If you want Joomla! to return a status code for the error, you can do so by adding logic before the DOCTYPE line, as follows:

<?php
if ($this->error->code = '404') {
	header("HTTP/1.0 404 Not Found");
} ?>

Changing the Favicon Of Your Joomla Site

September 16, 2008 · Filed Under Joomla · Comment 

The favorite icon (commonly referred to as the favicon) is an image file that is 16×16 pixels, and is normally named favicon.ico.

You need to upload it to the template directory of the template that you are using. If you are using multiple templates you’ll need to upload it to different directories. If I were replacing the favicon in the Joomla! 1.5 default template Rhuk_Milkyway, You need to upload the favicon to: joomlaroot/templates/rhuk_milkyway/favicon.ico

Since your browser has already downloaded (cached) your old favicon, you probably won’t see the changed icon till you clear your cache and refresh (you may have to refresh multiple times before you see the changed icon).

Joomla Template Install: Another template is already using directory

September 16, 2008 · Filed Under Joomla · Comment 

“Template Install: Another template is already using directory: ‘joomlaroot/templates/template_name’”

The error message suggest, another template with the same name is already installed. There is also the possibility that the same template had been installed, but not properly uninstalled earlier. Either way, to get the template you have to work you will have to make sure to totally eradicate the previous template.

Solution to this is Uninstall the previous template.

Extensions–>Install/Uninstall.

Displayed is the
Extension Manager.

On the list of the different extension types, select

Templates.

Click the radio button next to the template you wish to uninstall, and then click uninstall. The template should be successfully deleted.

In case the template does not uninstall properly, you can log into your site via FTP, and delete it manually.

Log into your site via FTP, and go to this directory:

joomlaroot/templates/ click on the template to be removed and then delete it.
joomlaroot/templates/template_name

Article title appears two times on pages in Joomla

August 26, 2008 · Filed Under Joomla · 1 Comment 

If you have the problem of Title appearing twice in joomla 1.5 pages then you need to follow the following steps

1. Go to the menu manager

2. Find the Menu Item for the page

3. Select in Parameters (System) > Show Page Title > No.

OR

Look inside your /templates/<templatename>/html/com_content/article/default.php file, near the top, for some lines like this:

<?php if ($this->params->get(’show_page_title’,1) && $this->params->get(’page_title’) != $this->article->title) : ?>
<h1 class=”componentheading<?php echo $this->params->get(’pageclass_sfx’); ?>”>
<?php echo $this->escape($this->params->get(’page_title’)); ?>
</h1>
<?php  endif; ?>

Just comment out the part that writes the page title in this section like below.

<?php //if ($this->params->get(’show_page_title’,1) && $this->params->get(’page_title’) != $this->article->title) : ?>
<!–<h1 class=”componentheading<?php echo $this->params->get(’pageclass_sfx’); ?>”>
<?php echo $this->escape($this->params->get(’page_title’)); ?>
</h1>–>
<?php // endif; ?>

Note : If you dont find the folder or file under this path “/templates/<templatename>/html/com_content/article/default.php” then copy the “com_content/article/” folder and files there in from the  BEEZ tempalte “/templates/beez/html/com_content/article/” (Joomla default template)  to your template folder and make the changes.

Can I block or delete a superadministrator in Joomla 1.5?

August 22, 2008 · Filed Under Joomla · Comment 

Whenever try to delete a SuperAdministrator I get the following error

You cannot delete a Super Administrator.

The soultion to this is

First, demote to superadministrator to a lower category, such as registered. Then delete or block.

How do I recover my admin password in Joomla?

August 22, 2008 · Filed Under Joomla · Comment 

Joomla 1.0 or 1.5

If you know the email address that was used, the simplest thing is to do is to use the “lost password” Front-end function if you have made it available.

If not, you will need access to the MySQL database.

You have two choices, either add a new super administrator or change the password stored in the data base. To do this you need to go to phpMyAdmin (or use a similar tool) and manually edit the database. Before doing this back up our complete database.

Run this to create a new user known as admin2.

INSERT INTO `jos_users` VALUES
    (62, 'Administrator2', 'admin2', 'your-email@email.com', '21232f297a57a5a743894a0e4a801fc3',
    'Super Administrator', 0, 1, 25, '2005-09-28 00:00:00', '2005-09-28 00:00:00', '', '');
INSERT INTO `jos_core_acl_aro` VALUES (10,'users','62',0,'Administrator2',0);
INSERT INTO `jos_core_acl_groups_aro_map` VALUES (25,'',10);

The password will be admin. Immediately log in and change this password.

Or

You can change the password in the table for your admin user (assuming you never changed the user name; if you have just change the instructions below to .

The password is stored in the MySQL database jos_users table password field. (change this for your table prefix if different)

Open the table, find your admin username, and then select that row for editing.

The password must be hashed, you cannot simply enter text into this field.

Set the password to a known value

- password = "this is the MD5 hashed password"
------------------------------------------------------
- admin  = 21232f297a57a5a743894a0e4a801fc3
- secret = 5ebe2294ecd0e0f08eab7690d2a6ee69
- OU812  = 7441de5382cf4fecbaa9a8c538e76783

Paste the hashed password into the field, save the change, and log-in using the new password. Immediately change your password to something more secure!

Changing Welcome to Frontpage component heading in Joomla 1.5

August 21, 2008 · Filed Under Joomla · 1 Comment 

1. Login to Admin of Joomla

2. Menu > Menu Manager

3. Selct the Menu

4. Look for the system parameters on the right, either disable or change the text.

load a module in the content area in weblogic template for joomla

August 19, 2008 · Filed Under Joomla · 1 Comment 

To load a module in the content area in weblogic template, you need to follow the following steps

1. Add a module to the template say ‘user9′ to the template. (to see how to add a module click here)

2. Extensions -> Template Manager -> Select weblogic template -> edit -> Edit HTML

3. if you have selected Layout style as PORTAL then

search for $split_layout==”PORTAL” in the code and the following lines

<!– user9 module start –>

<?php if ($this->countModules(’user9′)) : ?>
<div><jdoc:include type=”modules” name=”user9″ style=”none” /></div>

<!– user9 module end–>

after

<jdoc:include type=”message” />
<jdoc:include type=”component” />

4. save the file

5. Now create a module of type Custome HTML and place it in position ‘User9′

You can see the content in the content area now

Next Page »