- Details
- Written by: DrDigital
- Category: How-To Guides
- Hits: 898
Apache’s .htaccess to restrict access
Yes I know this is beyond the scope of most of my lazy readers, but as usual it will be brief and straight to the point. You can setup and .htaccess inside of your /administrator directory to add a second layer of security. This file can be setup to allow access based on username/password or even IP address. The IP address part is good if you or other users are going to access the /administrator directory from a fixed IP at all times. Of course I’m not going to go into specifics on how to setup a .htaccess here, but I you can start by clicking on the following link: .htaccess password generators
- Details
- Written by: DrDigital
- Category: How-To Guides
- Hits: 1231
Make a Component / Module / Plugin / API
People keep asking how to make a plugin / module / component
http://api.joomla.org/ The Joomla API is a good start take a eBay api, or a usps api and the joomla api put them together you got yourself a component.
- Details
- Written by: DrDigital
- Category: How-To Guides
- Hits: 5511
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:
Then, simply change the error.css, as desired, for your styling requirements.
Customizing Error Messages
To create the custom error message, dependent upon the specific error code, you'll want to add the following code somewhere in the error.php document to create the custom message.
Here is an example of how display a 404 error:
<?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");
} ?>
- Details
- Written by: DrDigital
- Category: How-To Guides
- Hits: 11510
Hello and welcome to my site, My names Matthew Murphy some of you know me as DrDigital.
First off - This site is only for Joomla 1.5.3 and beyond, I do not care about your 1.0.12 site other then I hope it gets hacked since you cant even keep up with the older version of joomla. 1.5 is the new, Its all my sites from 1.5.3 being released will all use. If its an older site its at least 1.0.15 Upgrade your shit, The only information you will find here in the near future is how to upgrade from 1.0.15 to 1.5 If you don't like it then Google it dumbass and you will find 1.0.x friendly sites.
I have been a pretty active member of #joomla on the IRC Network irc.freenode.net I have been coming their for nearly 2 years, freenode before it was freenode. I've been IRCing since 1990 with a 2.4 dial up connection on a 33mhz Macintosh, These days I have 3 internet connections load balanced into one and use a Dual Quad Core Mac Pro
Anyways the objective of this site is to bring you 1.5 information that people keep joining the channel and constantly asking over and over... You take part of the question paste it into google and wow you got like 10 links with all the same answers. Well now you will have 11 answers. Only instead of me giving everyone else's website information out. I am giving mine.
I was unaware of how many club templates are out their for joomla until I got this idea to build this site 2 days ago... I started joining all of them and was really surprised to how many I had found.
Well its now 5:46am I been up all night working on this site I hope you enjoy the information here.
DrDigital
- Update July 5th 2008
So Ive had like 3 people get all upset about me and my First Off area above, they use 1.0.12 because 'We have 30 sites using 1.0.12 and it be a nightmare to upgrade to 1.5' How about upgrading to 1.0.15 so you dont get all your user's passwords hacked? sure its MD5, but anyone hacking your site will also know how to get most MD5 stored passwords into clear text, then they take their email address and username and chances are that password is the same. Its your fault, you got hacked and now you had all their other stuff hacked at least upgrade to the latest 1.0.15, Its not that much work, I can upgrade any of those in like 10 minutes of actual work. Upgrade to 1.0.13, then to 1.0.14, and then 1.0.15 its not that hard stop being lazy, its going to take you more work to fix the hacked site vs upgrading.
I'm also being told I am angry... I am angry? What makes you think I am angry? I've never been hacked *knock on wood* I've used 1.0.12, I've used 1.0.12 and 1.0.13 and 1.0.14 and 1.0.15 the only difference is, I upgraded my sites as soon as a new version came out. I used 1.5 when it was RC2, then I deleted it after just playing with it for a bit, RC3 came out. I didnt touch it the final came out, I didnt touch it 1.5.1 came out... 1.5.2 came out and the day 1.5.3 came out, I installed it. I am not angry. I just dont want people asking me how to do things with 1.0.x its all over the internet, Go search for it elsewhere, my site is for 1.5.3 and newer. This is what my site specializes in, We are coming out with components that never exsisted in 1.0.x and don't in 1.5 and guess what, We are only going to code them for 1.5, we will not support old versions of Joomla other then on how to upgrade from them to 1.5
