Joomla Hosting BLOG

Blog about Joomla, Technologies and Hosting Service

Joomla Hosting - ASPHostPortal.com :: 3 Useful Apps to Mobilize Your Joomla Website

clock May 11, 2016 23:11 by author ben

Websites that do not load correctly on regular desktops can be annoying. Websites that do not load properly on a smart phone are just a nightmare and hard to remedy. If a mobile customer cannot reach the website that is in mind, then there goes a visitor and potential customer.

With the popularity of Smartphones, the most successful websites add a mobile site for their mobile customers. The best way to keep visitors and customers happy is to upgrade to the mobile Internet train and offer this option.

Traditional websites cause problems for Smartphones to load because the traditional website has a lot of additional features. Websites that have a large array of flash images, large pictures, or even large java-scripts can cause the mobile phone to not load properly. Many Smartphones have a slower Internet connection; regular websites will take a longer time to load.

The products listed below are to help customers run better Joomla sites while browsing the mobile Internet.

Mobile Joomla

One of the tricky things with having a traditional website and having a mobile website is trying to balance the two. The best thing about Mobile Joomla is once a website has gone mobile, Mobile Joomla has a built in detection monitor that displays the website to which setting it is in (either traditional or mobile).

Apart from the ability to detect which setting the site needs to be in, no matter which style the site is in, the display for both traditional and mobile is beautiful and clear.

Mobile Content Switch

This is a great app for Joomla users; due to it allowing the webmaster to manage their website; no matter what setting the site is based upon (again, mobile or traditional). This is a popular application for iPhones and iPads, so there is a lot of attention to troubleshooting out there. This app is really easy to use and should always be considered first if the user has an iPhone and a Joomla account.

Joooid

Based around the Android, Joooid allows Joomla users to manage their sites so the end result is a beautiful and easily functioning website. Joooid also lets the user publish articles, post photos, upload maps, and keep everything running in a fine-tuned manner.

A great app for webmasters that like to keep a well structured website that works great for traditional websites and mobile Internet Smartphones.

One important thing to keep in mind when managing a mobile website is that once a traditional website is built and a mobile website is created, is that the mobile website needs to continually be managed along with the traditional website. There is now a way to create a mobile website that will update when the traditional website is updated.

Joomla users can keep their websites up-to-date with little to no effort, and still produce a wonderful website for mobile users that does not lack in detail.

The best function for these helpful apps is the ability to be updated from Smartphones as well as regular PCs. There will never be a poorly designed mobile website again with the use of these three helpful apps.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offer Joomla hosting starts from $5/month only. We also guarantee 30 days’ money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



Joomla Hosting - ASPHostPortal.com :: Easy Ways to Recover Your Joomla Password

clock May 4, 2016 21:59 by author ben

Super Admin is a user with the highest powers in the management of the site. In some situations, you can not login with Super Admin acount. For example, your site may have been "hacked" and had the passwords or users changed. Or perhaps the person who knew the passwords is no longer available. Or maybe you have forgotten the password that was used.

In these cases, it is still possible to fix up the Joomla! database so you can log back in as a Super Administrator.
Recover lost Super Admin password in Database

  • Navigate to phpMyAdmin and select the database for the Joomla! site in the left-hand drop-down list box. This will show the database tables on the left side of the screen.
  • Click on the table jos_users in the list of tables (note: you may have a prefix that is not jos_, simply go to the _users table for your prefix).
  • Click Edit (the small pen on the user whose password you wish to reset)

  • You will now see all user data in a form. Under the password field, you will see a long list of encrypted letters.

  • Select "MD5" in the function dropdown list. Delete all letters in password field and type in a new password.

  • Click Go to save your new password.
  • Now you can log into the backend of your Joomla! site.

Remember to change you password again from the back-end, as the MD5 encryption is much more secure this way.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offer Joomla hosting starts from $5/month only. We also guarantee 30 days’ money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



Joomla Hosting - ASPHostPortal.com :: 2 Ways to Hide Your Joomla Home Menu

clock April 28, 2016 00:45 by author ben

A reader asked me about this recently. What he wanted was to hide the "Home" menu item when on the frontpage of his site.

I must admit I haven't really been in the situation where I'd needed that. Still, there might be others that need the same functionality on their site. So here are a couple of solutions for hiding a menu item on a particular page.

1. Hide the menu module

This is the approach my reader had chosen. The method is quite simple: You add a menu, and move your "Home" menu item to that menu. Then, you add a menu module to your site and choose to display it on all pages except on the frontpage. This is really simple to do in versions of Joomla after 1.6. Of course, this can be done for any menu item on your site.

The reader published this module in the same module position as his main menu, so the "Home" link would appear to be part of the same menu. He chose to hide the module title for the same reason.

The good thing about this method is that it's really simple. You don't need to fiddle around with CSS etc. The challenge is that the two menus might look disconnected. It really depends on your template and how the modules stack up.

2. Use CSS to hide the menu item

Another approach is to use CSS properties to hide the menu item. In Joomla, every menu item has it's own unique ID (CSS class selector). This means that you can style menu items individually. Perfect in our case!

What you want to do is to use a combination of page class suffixes and CSS to hide the menu item on your page.

Confused? Don't worry, I'll explain in detail!

Add a page class suffix

First, go to your home page menu item. Enter a page class suffix like "frontpage" into the page class suffix field and save. This will create a class in the body tag of your template. What this means is that you can style any element on the page just for the frontpage by using the body tag class.


You can check if this works as expected by looking at your frontpage source code and see if the body tag contains the "frontpage" class. By the way, I always recommend using Firefox and the Firebug add-on to debug and check source code.

In one of my sites (based on a YooTheme template), it looks like this:

<body id="page" class="page sidebar-a-right sidebar-b-right noblog frontpage">

You can see the frontpage class is added to the list of class names for the body tag.

Note: If you're using a low quality template, it might not support page class suffixes. All good Joomla templates should support that, though.
Find the menu item class name

Now, you need to find the menu item class name. To find the class, take another look at the source code. The menu item will look something like this:

<li class="level2 item172">

The item172 class is what you want to use. That's what allows you to style that menu item specifically.

So, in this case, the menu item class is "item172".

Add the CSS

Now, in your template CSS file, add the following:

body.frontpage .item172 {display:none;}

This code will hide that particular menu item when the page class suffix is frontpage. That means you will be able to keep one menu module. One less element to maintain. Obviously, this technique can be used to style other elements on your page, too. Be creative!

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offer Joomla hosting starts from $5/month only. We also guarantee 30 days’ money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



Joomla 2.5 Hosting - Smart Search in Joomla 2.5

clock February 27, 2013 07:16 by author andy_yo

Joomla 2.5 shipped with many new features including multi-database support and much improved one-click upgrades.

One the most important of those features was a brand new search extension: Smart Search. Smart Search is destined to be the replacement for com_search which has been around since 2005 at least.

Smart Search is disabled by default but it's easy to enable and is a big improvement.

About ASPHostPortal.com

ASPHostPortal.com is Microsoft No #1 Recommended Windows and ASP.NET Spotlight Hosting Partner in United States. Microsoft presents this award to ASPHostPortal.com for ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2012, ASP.NET 4.5, ASP.NET MVC 4.0, Silverlight 5 and Visual Studio Lightswitch. Click here for more information

 

How to Enable Smart Search

Go to Extensions > Plug-in Manager and enable the Smart Search plugin.

Go to Components > Smart Search and click Index in the toolbar.

You'll see a progress bar as Joomla indexes your site. This is the first and last time you'll need to run this indexer.

When you're finished, you'll see all of the indexed content as in the image below:

Now that your content is in Smart Search, go to Extensions > Module Manager and place your Smart Search module live on your site.

The Smart Search module will look exactly the same as the normal Search module.

However, when you use the module, the Smart Search results will look very different:

There is also an Advanced Search feature to allow people to drill down more accurately:

Click on the Advanced Search and you'll be presented with the ability to filter your search by Author, Category, Country, Language, Region and Type.

 

 



Joomla Hosting - SEO Tips for Joomla Sites

clock February 8, 2013 07:33 by author andy_yo

SEO may sound complicated and expensive, but there are a number of things you can do to improve your search engine ranking that won’t have you spending a dime or tearing your hair out. The following are some SEO tips for Joomla sites:

About ASPHostPortal.com

ASPHostPortal.com is Microsoft No #1 Recommended Windows and ASP.NET Spotlight Hosting Partner in United States. Microsoft presents this award to ASPHostPortal.com for ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2012, ASP.NET 4.5, ASP.NET MVC 4.0, Silverlight 5 and Visual Studio Lightswitch. Click here for more information

1) Don’t install any sample data when you set up a Joomla! site.

When you launch your Joomla! Site, it’s very easy to forget to delete all the demo articles that come with it. That will give you pages, links and newsfeeds that are irrelevant to your topic. Delete your sample data and don’t forget to empty your trash as well!

2) Your Site Name should be your site’s name.

There can be a temptation to cram as many keywords as possible into the “Site Name” field. It doesn’t help and when users register at your site, they get an email saying “Welcome to Widgets, Buy Widgets, Cheap Widgets, Bargain Widgets!” You don’t want that.

3) Turn off your PDF links.

When we analyze Joomla! Sites, we often find PDFs ranking higher than the original pages. Because PDF pages have no menu links, they’re a dead-end. Users can’t move from the PDF to the rest of your site. So turn off those links.

4) Don’t waste your site’s link juice with lots of social bookmarking links.

Lets face it, very few pages have a chance to hit the Digg home page or do well on Reddit, so only place those buttons on your best articles. Your visitors appreciate clean, uncluttered pages — and so do search engines.

5) Redirect the www and non-www versions of your site to the same place.

All you need to do is add this little piece of code to your .htaccess file. Note: Replace MyDomain with your domain name and .com with your domain extension.

## Can be commented out if causes errors.
Options FollowSymLinks
# mod_rewrite in use
RewriteEngine On
RewriteCond %{HTTP_HOST} ^MyDomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.MyDomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^.*MyDomain\.com [NC]
RewriteRule (.*) http://www.MyDomain.com/$1 [R=301,L]

6) Turn on your cache.

Search in Google and you’ll see a size for each site. Smaller, faster sites are more popular with visitors and with Google. One easy way to make your site act small and load faster is to turn on your cache in Global Configuration.

7) Enter a full description for all your sections and categories.

These pages are great for organizing your site… and for improving Page Rank. If you organize your sections and categories carefully, your site becomes very easy for both people and search-engine spiders to navigate.

8) Less is often more

Having thousands of Joomla! pages indexed in Google isn’t always a good thing, especially if those pages don’t bring value. Some components, for example, can produce lots of extra pages that are completely worthless. One easy way to check if your site is putting garbage on Google is to search for site:mydomain.com. If you find pages that don’t have good content, you might want to remove them.

9) Empty your global configuration metadata.

I’m sure you’re all big fans of Joomla!, but I’m equally sure that “Joomla! – the dynamic portal engine and content management system” doesn’t describe your site. Take it out.

10) Be confident.

Joomla! is fantastic software that allows you to easily create lots of high quality pages that are great for your SEO. If you keep a close eye on your site and take the time to learn how Joomla! works, there’s no reason why you shouldn’t have top-flight search engine rankings!

 



Joomla 1.6 Hosting - ASPHostPortal :: Creating Custom Parameters in Joomla 1.6

clock January 10, 2011 08:06 by author Jervis

In the course of updating our extensions to Joomla 1.6 we have managed to figure out some useful information about the differences between Joomla 1.5 and 1.6. There have been some big changes in the format of the installation package, which this article explores.

Format of the Installation Manifest

There have been some changes to the format of the installation manifest xml file. The root <install> tag has been replaced with an <extension> tag, while the <params> and <param> tags have been replaced with the <fields> and <field> tag respectively. The <fields> tags are now placed in a <config> tag container. The rest of the layout remains much the same. So a typical layout for a module in Joomla 1.6 would be:

<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="1.6.0" method="upgrade" client="site">
<name>My Module</name>
<author>Jo Bloggs</author>
<creationDate>July 2010</creationDate>
<copyright>Inspiration Web Design</copyright>
<license>GPL</license>
<authorEmail>

me@myaddress.comThis e-mail address is being protected from spambots. You need JavaScript enabled to view it

</authorEmail>
<authorUrl>www.mysite.com</authorUrl>
<version>1.0.0</version>
<description>Mails a link to the current page</description>
<files>
  <filename module="my_module">my_module.php</filename>
  <filename>helper.php</filename>
  <filename>index.html</filename>
  <filename>tmpl/default.php</filename>
  <filename>tmpl/index.html</filename>
  <folder>assets</folder>
</files>
<config>
  <fields name="params">
    <fieldset name="basic" label="Module Parameters" description="Configure Module">
    <field name="fromEmail" type="text" default="" label="from email address"  />
    <field name="bcc" type="text" default="" label="bcc" description="DESCBCC" />
    <field name="filterEmails" type="textarea" cols="20" rows="3" label="invalid emails"  />
    <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix"  />
    <field name="use_slider" type="list" default="0" label="Use mootools slider" >
      <option value="1">Yes</option>
      <option value="0">No</option>
    </field>
    <field name="use_cookie" type="list" default="1" label="Remember slide state" >
      <option value="1">Yes</option>
      <option value="0">No</option>
    </field>
    <field name="use_detection" type="list" default="0" label="Use Extended URL detection">
      <option value="1">Yes</option>
      <option value="0">No</option>
    </field>
    </fieldset>
  </fields>
</config>
<languages>
  <language tag="en-GB">en-GB.my_module.ini</language>
  <language tag="en-US">en-US.my_module.ini</language>
</languages>
</extension>


Adding Custom Parameters

So how do you go about adding custom parameters? If you are familiar with doing this with Joomla 1.5 you will remember that this involved extending the JElement Class, and overriding the fetchElement() method. This method was used to generate the html for the required field.

In Joomla 1.6 the process is quite similar, in this case we need to extend the JFormField Class. This Joomla class includes a getInput() method, which we can override to generate the html for the form field. The main difference from Joomla 1.5 is in how we access the name, value and other attributes of the form field. In Joomla 1.5 these were passed as parameters to the fetchElement() method. In Joomla 1.6 these are pre-populated as properties of the JFormField object that we are working with. So, for example to access the name of the form field we simply refer to it by $this->name. The class include a variable $type which must be set to the name of the field type.

In case this is not all crystal clear, the best way to illustrate this is with a example. The example below generates a list of currently published Joomla articles arranged by category.

<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


jimport('joomla.html.html');
jimport('joomla.form.formfield');//import the necessary class definition for formfield


/**
 * Supports an HTML select list of articles
 * @since  1.6
 */
class JFormFieldArticles extends JformField

{
      /**
  * The form field type.
  *
  * @var  string
  * @since  1.6
  */
      protected $type = 'Articles'; //the form field type

      /**
  * Method to get content articles
  *
  * @return array The field option objects.
  * @since  1.6
  */
      protected function getInput()
      {
  // Initialize variables.
  $session = JFactory::getSession();
  $options = array();
 
  $attr = '';

  // Initialize some field attributes.
  $attr .= $this->element['class'] ? ' class="'.(string) $this->element['class'].'"' : '';

  // To avoid user's confusion, readonly="true" should imply disabled="true".
  if ( (string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true') {
   $attr .= ' disabled="disabled"';
  }

  $attr .= $this->element['size'] ? ' size="'.(int) $this->element['size'].'"' : '';
  $attr .= $this->multiple ? ' multiple="multiple"' : '';

  // Initialize JavaScript field attributes.
  $attr .= $this->element['onchange'] ? ' onchange="'.(string) $this->element['onchange'].'"' : '';


    //now get to the business of finding the articles
     

  $db = &JFactory::getDBO();
  $query = 'SELECT * FROM #__categories WHERE published=1 ORDER BY parent_id';
  $db->setQuery( $query );
  $categories = $db->loadObjectList();
 
  $articles=array();
 

  // set up first element of the array as all articles
  $articles[0]->id = '';
  $articles[0]->title = JText::_("ALLARTICLES");
 

    //loop through categories
    foreach ($categories as $category) {
     $optgroup = JHTML::_('select.optgroup',$category->title,'id','title');
     $query = 'SELECT id,title FROM #__content WHERE catid='.$category->id;
     $db->setQuery( $query );
     $results = $db->loadObjectList();
     if(count($results)>0)
     {
    array_push($articles,$optgroup);
    foreach ($results as $result) {
     array_push($articles,$result);
    }
     }
    }  
  
  // Output
 
  return JHTML::_('select.genericlist',  $articles, $this->name, trim($attr), 'id', 'title', $this->value );
 
      }
}


Simples!

Note that there are other ways of tackling this. Among the predefined field types that Joomla 1.6 supplies is the 'list' type, which defines the JFormFieldList class, which in turn is an extension of JFormField. We could have chosen to extend The JFormFieldList instead. This class returns a generic select list field. It includes a method, getOptions(), which returns the options available. We could have chosen to over-ride this method to return the articles as a list of options.

Adding the Custom Form Field to The Installation Package


The custom form field is added to your installation package using an addfieldpath attribute added to the < fields> tag. In the example below we assume that the articles field definition is placed in a file called articles.php which is placed in a folder /modules/mod_mymodule/fields (note that this is relative to the root folder of your site).

<fields name="params" addfieldpath="/modules/mod_mymodule/fields">

Backwards Compatibility With Joomla 1.5

In fact we have found that the Joomla 1.6 installer will understand the old <install> tag, so it is possible to create an installation package that will install in Joomla 1.6 and Joomla 1.6. To do this, use the <install> tag:-

<install type="module" version="1.5.0" method="upgrade" client="site">

The parameters for Joomla 1.6 can be added in a <config> tag, while the old <params> tag can be used for the Joomla 1.5 parameters. The installers will simply ignore the tags that they do not use.

If you want to add custom parameters for versions 1.5 and 1.6 we have found that the easiest way to do this is to have separate folders for the separate definitions of the custom fields, for example called 'elements' and 'fields' respectively.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla 1.6 Hosting - ASPHostPortal :: Media Manager Joomla 1.6

clock January 4, 2011 06:43 by author Jervis

The Media Manager is a longstanding feature in Joomla. It came over from the Mambo days. Between Joomla 1.0 and 1.5, not many changes were made to the Media Manager. Along the way, the Media Manager even lost functionality, when it lost the ability to upload multiple images at once.

Fortunately, the Media Manager has been granted a bit of love in Joomla 1.6. Let's take a look at some of the new features you can expect to find.

First, the location for the menu item for the Media Manager has changed, from the Site menu to the Content menu. Go to Content - Media Manager in the back end of Joomla, and you should see a screen like this:



The Media Manager is a longstanding feature in Joomla. It came over from the Mambo days. Between Joomla 1.0 and 1.5, not many changes were made to the Media Manager. Along the way, the Media Manager even lost functionality, when it lost the ability to upload multiple images at once.

Fortunately, the Media Manager has been granted a bit of love in Joomla 1.6. Let's take a look at some of the new features you can expect to find.

First, the location for the menu item for the Media Manager has changed, from the Site menu to the Content menu. Go to Content - Media Manager in the back end of Joomla, and you should see a screen like this:



- Legal extensions are the types of files that may be uploaded to the Media Manager, including images and files like PDFs, Office documents, etc.


- Maximum size is the maximum size of the file that may be uploaded. In this case, it's 10 MB. Remember that this is a Joomla restriction on file size. PHP may also restrict file upload size, so be sure to check PHP's settings if you are having trouble uploading large files.

- Path to file folder and path to image folder are the default paths for uploading files (like PDFs, Office documents, etc) and images within the Media Manager. Note the stories folder is gone! You can upload to the images folder directly.

- Legal image extensions (file types) means what kinds of files uploaded should be considered images (GIF, JPG, PNG, etc).

- Enable Flash uploader means to turn on the capability to upload multiple images and files at a time.


Set "Enable Flash Uploader" to YES and click the Save button in the upper right. The bottom of the Media Manager screen will update to a new looking interface:

Browse files will let you browse to the right folder containing your images and files on your hard drive. Start upload will start uploading the files you've chosen to put into the Media Manager. Clear List clears the list of files to be uploaded and those that have already been uploaded.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla 1.5 Hosting - ASPHostPortal :: Different layout for every page in Joomla 1.5.x

clock December 15, 2010 06:07 by author Jervis

The good thing is control layout of pages by administrator panel.
The solution is create different templates. But keeping the same things like header, footer and menu in every template is bad and if we are going to change something in future (who knows?) it will be a big problem.

So we need to have one main template with basic layout and another (inherited) templates with layout for each page.

Solution


First of all we need to create main template which will be wrapper for all the next templates.


Creating global template, named it “_global”. Files that we need:

- /templates/_global/index.php
- /templates/_global/layout.php
- /templates/_global/templateDetails.xml
- /templates/_global/helper.php


1. Index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
  <head>
    <jdoc:include type="head" />
    <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/framework/stylesheets/application.css" type="text/css" charset="utf-8">
  </head>
<body>
  <div class="header">
    Header of page
  </div>
  <div class="layout">
    <jdoc:file name="layout.php" />
  </div>
  <div class="footer">
    &copy; Egor Hmelyoff
  </div>
</body>
</html>

Here we’ve written the new construction <jdoc:file name=”layout.php” />. Which means that you include layout.php from the current template. After that, we will create this file in each new template and insert there our layout.

2. layout.php (for _global template):

<div class="content">basic layout</div>

Here we can write whatever we need.

3. templateDetails.xml


<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" 
 "http://dev.joomla.org/xml/1.5/template-install.dtd"> 
<install version="1.5.9" type="template"> 
  <name>_global template</name> 
  <creationDate>23 April 2009</creationDate> 
  <author>hmelyoff</author> 
  <authorEmail>hmelyoff@gmail.com</authorEmail> 
  <authorUrl>http://blog.evershow.me</authorUrl> 
  <copyright>Life Fm, 2009</copyright> 
  <license>GNU/GPL</license> 
  <version>1.5.0</version> 
  <description>Global template with basic html layout</description> 
  <files> 
    <filename>index.php</filename>
    <filename>templateDetails.xml</filename> 
    <filename>helper.php</filename>
    <filename>layout.php</filename> 
  </files>          

  <positions>
  </positions>   

</install>

4. helper.php: (updated)

<?php
  defined('_JEXEC') or die('Restricted access'); 

  function global_render($_params = null)
  {
    global $mainframe; 

    // Base instances
    $document =& JFactory::getDocument();
    $user     =& JFactory::getUser(); 

    // Define global template
    $_template    = "_global";
    $_template_dir      = JPATH_THEMES.DS.$_template; 

    // Define _global params
    if (is_readable( $_template_dir.DS.'params.ini' ))
    {
      $_content = file_get_contents($_template_dir.DS.'params.ini');
      $_global_params = new JParameter($_content);
    } 

    // Define empty params if not exist
    if(!$_params){
      $_params = new JParameter('');
    } 

    // example includes/application.php "render" function
    $file   = JRequest::getCmd( 'tmpl', 'index' );
    if ( JSite::getCfg('offline') && $user->get('gid') < '23' ) {
      $file = 'offline';
    }
    if ( !is_dir( $_template_dir ) && !JSite::getCfg( 'offline' ) ) {
      $file = 'component';
    } 

    $params = array(
      'template' => $_template,
      'file'            => $file.'.php',
      'directory' => JPATH_THEMES
    ); 

    // Catch current template
    $template = $mainframe->getTemplate();
    $template_dir = JPATH_THEMES.DS.$template; 

    // Set global template as current and render document
    $mainframe->setTemplate( $_template );
    $data = $document->render( JSite::getCfg('caching'), $params ); 

    // Set back current template
    $mainframe->setTemplate( $template ); 

    $replace = array();
    $matches = array(); 

    // Catch own construction for include files
    // (example /libraties/joomla/document/html/html.php "_parseTemplate" function)
    if( preg_match_all( '#<jdoc:file\ name="([^"]+)".*\/>#iU', $data, $matches ) ){
      $matches[0] = array_reverse( $matches[0] );
      $matches[1] = array_reverse( $matches[1] ); 

      $count = count( $matches[1] ); 

      for( $i = 0; $i < $count; $i++ ){
        $inc = $matches[1][$i];
        $tpl_dir = $template_dir; 

        // if file does not exist in current template,
        // looking for it in "_global" teamplate dir
        if( !file_exists( $template_dir.DS.$inc ) ){
          $tpl_dir = $_template_dir;
        } 

        $document->params = $_params;
        $document->global_params = $_global_params; 

        $tpl = $document->_loadTemplate( $tpl_dir, $inc );
        $tpl = $document->_parseTemplate( $tpl ); 

        $replace[$i] = $tpl; 

      } 

      $data = str_replace( $matches[0], $replace, $data ); 

    } 

    return $data;

  } 

?>

This is the main function to render new inherited templates.
So, we’ve created “_global” template, but remeber: this template not for assign it.


Inherited templates

Next step: we will create new inherited template for home page (for example).


Files that we need:

- /templates/home/index.php
- /templates/home/layout.php
- /templates/home/templateDetails.php


home” here for example, we can give any name to inherited templates.

1. Index.php: (updated)

<?php
  defined('_JEXEC') or die('Restricted access');
  include JPATH_THEMES.DS.'_global/helper.php';
  echo global_render($this->params);
?>

2. layout.php:

<div class="content">

  <div class="left">new left column in home template</div>
  <div class="center">content part</div>
</div>

3. templateDetails.php:

That’s all. Now we can assign this template by Joomla administrator panel.
Also, in inherited template we have access to params of _global template by $this->global_params->get(…)


Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: Fix 755 permission issues with running PHP as FastCGI

clock December 12, 2010 05:14 by author Jervis

I know there is a lot of talk about security involving any CMS these days. Especially between Joomla, Drupal and Wordpress. Everyone keeps saying 777 is bad, you should never use it because it is a security risk and your site will get hacked. Well that may be true, but most of these people never provide a solution. All they say is your directories should be 755. On many php installs this means only apache can wright to these folders. So if you try to upload a theme, component, module or plugin from your CMS it will fail. That is why so many people have to set directories to 777 in order for things to work properly. Before doing any of the below create a backup first!

If you are using Plesk there is an easy but not well documented solution. Apache suEXEC must be installed for this to work properly, but if you are using plesk it most likely is already running. http://httpd.apache.org/docs/1.3/suexec.html
Go to Domains > yourdomain.com > Web Hosting Settings. Scroll down to PHP support. Make sure ‘safe_mode’ is unchecked then select FastCGI application. This FastCGI is much different and faster than CGI. Also this should be much quicker than using suPHP which would be the other option to fixing permissions issues.




You may have to restart Apache before everything works correctly. After turning this on my site had errors and would not run. Turns out I had some ownership issues. I ran a chown from the command line which returned ownership to the ftp user. Everything worked great after this. You can now change your 777 directories to 755.

If you have SSH shell access the following commands can be run from the command line to reset all files and directories back to the server defaults of 755 and 644. Change directories to the top directory (" / ") of your Joomla! installation, then run:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

For more infomation on Joomla and permissions: http://docs.joomla.org/How_do_UNIX_file_permissions_work%3F

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: Add New Module Position to Joomla 1.5 Template

clock November 24, 2010 17:00 by author Jervis

Here are the steps:

1. open the index.php with the HTML editor and go to the line where you want to add the new module
2. insert the following code: <?php if ($this->countModules('newmodule)) : ?><div id="newmodule" ><jdoc:include type="modules" name="newmodule" style="xhtml" /></div><?php endif; ?>
3. save the file, go to the module manager and place the module on the "newmodule" position.
4. this new position will not be available in the position selector, but you just need to type in and save the module

Style the new module with CSS (style="xhtml")

1. #newmodule .moduletable {}
2. #newmodule .moduletable h3 {}
3. #newmodule .moduletable_menu {}

Add these codes to the template css file, and customize them as you want.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Sign in