Joomla Hosting BLOG

Blog about Joomla, Technologies and Hosting Service

Joomla Hosting - ASPHostPortal.com :: How To Create Module in Joomla

clock November 30, 2016 07:08 by author Armend

A module is a lightweight and flexible extension that is used for page rendering. They are used for small bits of the page that are generally less complex and are able to be seen across different components.

You can see many examples of modules in the standard Joomla! install: - menus - Latest News - Login form - and many more.

This tutorial will explain how to go about creating a simple Hello World module. Through this tutorial you will learn the basic file structure of a module. This basic structure can then be expanded to produce more elaborate modules.


File Structure

There are four basic files that are used in the standard pattern of module development:

  • - mod_helloworld.php - This file is the main entry point for the module. It will perform any necessary initialization routines, call helper routines to collect any necessary data, and include the template which will display the module output.
  • - mod_helloworld.xml - This file contains information about the module. It defines the files that need to be installed by the Joomla! installer and specifies configuration parameters for the module.
  • - helper.php - This file contains the helper class which is used to do the actual work in retrieving the information to be displayed in the module (usually from the database or some other source).
  • - tmpl/default.php - This is the module template. This file will take the data collected by mod_helloworld.php and generate the HTML to be displayed on the page.


Creating mod_helloworld.php

The mod_helloworld.php file will perform three tasks:

  • Include the helper.php file which contains the class to be used to collect the necessary data
  • Invoke the appropriate helper class method to retrieve the data
  • Include the template to display the output.


The helper class is defined in our helper.php file. This file is included with a require_once statement:

require_once( dirname(__FILE__).DS.'helper.php' );

require_once is used because our helper functions are defined within a class, and we only want the class defined once.

Our helper class has not been defined yet, but when it is, it will contain one method: getHello(). For our basic example, it is not really necessary to do this - the “Hello, World” message that this method returns could simply be included in the template. We use a helper class here to demonstrate this basic technique.

Our module currently does not use any parameters, but we will pass them to the helper method anyway so that it can be used later if we decide to expand the functionality of our module.

The helper class method is invoked in the following way:

$hello = modHelloWorldHelper::getHello( $params );

Completed mod_helloworld.php file

The complete mod_helloworld.php file is as follows:

<?php
/**
 * Hello World! Module Entry Point
 *
 * @package    Joomla.Tutorials
 * @subpackage Modules
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:modules/
 * @license        GNU/GPL, see LICENSE.php
 * mod_helloworld is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */

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

// Include the syndicate functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

$hello = modHelloWorldHelper::getHello( $params );
require( JModuleHelper::getLayoutPath( 'mod_helloworld' ) );
?>

The one line that we haven’t explained so far is the first line. This line checks to make sure that this file is being included from the Joomla! application. This is necessary to prevent variable injection and other potential security concerns.

Creating helper.php

The helper.php file contains that helper class that is used to retrieve the data to be displayed in the module output. As stated earlier, our helper class will have one method: getHello(). This method will return the ‘Hello, World’ message.

Here is the code for the helper.php file:
<?php

/**
 * Helper class for Hello World! Module
 *
 * @package    Joomla.Tutorials
 * @subpackage Modules
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:modules/
 * @license        GNU/GPL, see LICENSE.php
 * mod_helloworld is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */
class modHelloWorldHelper
{
    /**
     * Retrieves the hello message
     *
     * @param array $params An object containing the module parameters
     * @access public
     */   
    function getHello( $params )
    {
        return 'Hello, World!';
    }
}
?>

There is no rule stating that we must name our helper class as we have, but it is helpful to do this so that it is easily identifiable and locateable.

More advanced modules might include database requests or other functionality in the helper class method.

Creating tmpl/default.php

The default.php file is the template which displays the module output.

The code for the default.php file is as follows:

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

An important point to note is that the template file has the same scope as the mod_helloworld.php file. What this means is that the variable $hello can be defined in the mod_helloworld.php file and then used in the $hello file without any extra declarations or function calls.

Creating mod_helloworld.xml

The mod_helloworld.xml is used to specify which files the installer needs to copy and is used by the Module Manager to determine which parameters are used to configure the module. Other information about the module is also specified in this file.

The code for mod_helloworld.xml is as follows:

<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
    <name>Hello, World!</name>
    <author>Jervis</author>
    <version>1.5.0</version>
    <description>A simple Hello, World! module.</description>
    <files>
        <filename>mod_helloworld.xml</filename>
        <filename module="mod_helloworld">mod_helloworld.php</filename>
        <filename>index.html</filename>
        <filename>helper.php</filename>
        <filename>tmpl/default.php</filename>
        <filename>tmpl/index.html</filename>
    </files>
    <params>
    </params>
</install>

You will notice that there are two additional files that we have not yet mentioned: index.html and tmpl/index.html. These files are included so that these directories cannot be browsed. If a user attempts to point their browser to these folders, the index.html file will be displayed. These files can be left empty or can contain the simple line:

<html><body bgcolor="#FFFFFF"></body></html>

which will display an empty page.

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 offers Joomla hosting starts from $5/month only. We also guarantees 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 :: How to Back Up Your Joomla Website

clock November 24, 2016 10:33 by author ben

According to Tutorialspoint website. In this chapter, we will study about Website backup in Joomla. It allows backup of files, folders and re-opens it in Joomla.

Following are the simple steps used to backup the website in Joomla −

Step (1) − Click on System → Global Configuration in Joomla administrator. You will get the following screen.

Step (2) − Next, click on EJB - Easy Joomla Backup at the left sidebar.

You get a basic editor page for Joomla Backup. Here by default, the Component tab is displayed.

Below we have mentioned the details of the fields present in the Component tab on the page −

  • Exclude files from backup archive − It indicates the name of the files with the path address to be excluded from a backup archive.
  • Exclude folders from backup archive − It indicates the name of the folders with the path address to be excluded from a backup archive.
  • Add 'DROP TABLE' instruction to dump file − It indicates to add drop table instruction to dump files without deleting the tables by selecting either (Yes/No).
  • Add additional tables − It indicates to add additional tables, but it should not have the same prefix.
  • Maximum number of backup files − It indicates the maximum number of backup files.
  • Prefix for archive names − It indicates to use prefixes for archive names of backup file.

Step (3) − After clicking on Permissions tab, you will get the following screen.

Following are the details that are present on the Permissions tab −

  • Configure − It allows the user to edit the user option.
  • Access Administration Interface − It allows the users to access the administration interface.
  • Delete − It allows the user in group to delete the content present in the extension.
  • Download − It allows the user to download the backup archive file.
  • Full Backup − It allows the user to create full backup file permission.
  • Database Backup − It allows the user to create database backup.
  • File Backup − It allows the user to permit creation of file backup.
  • Discover − It allows the user to discover backup files or new entries into the database.

Toolbar

Following are the toolbar options in the Website Backup screen −

  • Save − Saves your Backup of website.
  • Save & Close − Saves the Backup of website and closes the current screen.
  • Cancel − Cancels the created Backup of website in Joomla.

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 offers Joomla hosting starts from $5/month only. We also guarantees 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 :: 11 Tips on How to Protect Your Joomla Website Against Hackers

clock November 23, 2016 06:50 by author Armend

11 Tips on How to Protect Your Joomla Website Against Hackers

Joomla is an open source Content Management System, which will make it easy for you to create awesome websites. Joomla has been around since 2005 and ever since has been working hard to improve its security and usability. But of course this does not mean that it is an uncrackable platform.
Since its open source it can be subjected to all kinds of hacks that could affect the security of your precious data. It is very important to make it sure your sites are safe, thankfully there are ways you can easily avoid most of these attacks by just simply following this handful of good tips that will guarantee you benefit for your data’s security in the future.

1. Keep Joomla up-to-date

It’s one of the most basic things that you can do to make your website secure enough. Every new update contains a new bug fix or a security flaw fix or feature, so it is important to always have the newest version of Joomla’s websites and extensions. Be sure your website is always updated to the latest stable Joomla release!

2. Remove all unused extensions

By doing so, you can have double benefits. It not only makes Joomla so much more secure it makes it run faster too. If you have unused extensions and done experimenting with them it is advised to remove them since it can cause security risks to Joomla’s extension.

3. Use a strong password

It is strongly advised to use strong passwords, not just for Joomla but for all the sites that you are using. This is one of the key components to keep all your data secure online. It is recommended to use different passwords for different websites but you better make sure that the password you are using is hard to guess or hard to crack, it is a very useful thing to do. Do the following to make sure you have a secure password:
   

  • Don’t use words that are very common and short: admin, strong, love, black, etc.
  • Avoid using personal information as your password, like names, date of birth or favorite animal’s name.
  • Make sure that your passwords are longer than eight characters.
  • Your password should never contain your user name, real name or your company’s name.
  • It should not be a single word
  • Avoid using any password generators that are online. These passwords are generated by a certain rule that can make it easy to hack.
  • Try using special characters in your password such as: @!+(=. Maybe add some capital letters and numbers too. The more complex a password is the harder it is to crack.
  • Make sure that your new password is different from all the previous ones you made up.
  • An easy way to create a secure password is to memorize a sentence and combine it with numbers and uppercase characters such as: You1Can’t2Crack3This4
  • Here’s a website where you can check how easy it is to crack your password with a computer. Click here to check it.

4. Don’t allow users’ registration on your website

If your website is not a social network or a community you should not let anyone register to your site for security reasons. To disable user registration, follow these steps:

  •  Log in to backend.
  •  Click on ‘Users’, then on ‘User Manager’ and find the ‘Options’ tab at the top.
  •  Look for the setting of ‘Allow User Registration’.
  •  Set the section to No.
  •  Click save in the end, for the settings to take effect, you can find the button on the top left corner of the page.

5. Make sure that your Joomla and its extension version is hidden

It is very important to hide your Joomla’s and its extensions’ versions because there are malicious scripts online that target your site according the type of CMS your site is running on. If your version is showing in the HTML code, that’s not good. If hackers know what version you are using, they can easily look up what are the flaws of that version and start an attack on your site.

You can easily check out if your Joomla version is showing in the source code by clicking on ‘View Page Source’ in Firefox or in Chrome. All you have to do is click on the ‘Sources’ tab and then look for ‘Templates’ folder, in it you will have ‘System’ and in hat folder ‘CSS’ in which you will find the file ‘system.css’. If you open it you can check if the Joomla version is showing.

6. Change your admin username

On Joomla’s websites the default username is always admin. Most of the time no one really cares about changing this, which can make it really easy for hackers to crack your site, since they already know half of your details that is needed for a login. All they have to find out from that point, what is your password. By changing your username you are making it harder for hackers to access your site, and this is a very easy thing to do, yet a lot of users do not do anything about it, so we strongly advise you to do so.
   

  • You can easily change your admin username by the following steps:
  • Log in to the Administration area as current Super User
  • Click on the ‘Users’ tab then on ‘User Manager’ and on ‘Add New User’
  • Make the new user a ‘Super User’
  • Log out of the current Super User account and log in to the newly made Super User account
  • Look for the old Super User account and change its name

7. Force Joomla into SSL mode for all logins on your site

By enabling SSL on your site you can protect your Joomla site from exploits that might make affect your users. Note that you can only enable this built-in feature if your website’s domain has a properly configured SSL certificate. If you have the SSL certificate for your site you can enable this feature which will encrypt your user’s names and password before it is sent over to your server. To enable this feature do the following:

  •  Go on the ‘Extensions’ tab, then on ‘Module Manager’
  •  Then on ‘Filter Login Module’
  •  Look up and open the Logins module
  •  When you see the option ‘Encrypt Login Form’ set it on ‘yes’
  •  Save the whole process.

8. Protect your cookies

If a user logs into your website special session cookies are set in the browser that will identify that user later. Every time someone logs onto your page the page will make these cookies so it knows which user and how many of them are viewing the page.
These cookies will remember the users that have logged in and will give them the privilege to use the site even after they have left it. These cookies can be intercepted by a third party, which will give them the same privileges as a member of the site.
You can force the SSL to encrypt these cookies during the entire session while you are on the site as a Super Admin or you can even make registered people’s cookies encrypted too. This way hackers will have no access to your website’s cookies. You can do this by going to the Server options and where it says ‘Force SSL’ select ‘Administrator Only’.

9. Disable FTP Layer

For the most part Joomla’s FTP layer is not required, therefore we recommend you to disable this function by the following steps:

  •  Login into your Joomla backend
  •  Go to ‘System’, then on ‘Global Configuration’ and then on Server
  •  You will see the option ‘FTP Settings’ where you should Select ‘No’ at the ‘Enable FTP’
  •  Save what you have done

10. Use the Two-Factor Authentication

This will give you an additional layer of security to your Joomla website. This system will random generate passwords over a period of time which are unique to your username. If you do not know that secret key you will not be granted entrance to the website. This will keep away key loggers, password crackings and hackings.

11. Always use a professional web hosting provider

The above mentioned 10 tips are crucial when we are talking about Joomla website security and by setting them, you can protect your site better. But it is also vital to choose a professional web hosting provider, where administrators have up to date security and hosting knowledge, and the storage is secured well.

It is recommended to choose a bit more expensive provider, since too cheap companies do not have enough resources (a.k.a. money) to hire professionals, in most cases students or non pro persons manage there the webservers. You should think about what is more expensive to you, to pay few bucks more every month, or hire a backup pro to restore your website in case it disappears because of cheap hosting solutions.
You can find many web hosting review websites on the internet and there are many forums as well, take your time and read few reviews to find the best hosting solution to your website. It is totally worth to do!

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 offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.

 



ASPHostPortal.com Announces Umbraco 7.5.4 Hosting Solution

clock November 22, 2016 10:50 by author ben

ASPHostPortal.com provides affordable and high performance Umbraco 7.5.4 hosting to customers around the world. We strongly believe in high quality standards and Hence you’ll always find our services better than every other host in this industry. We only use the best hardware, super fast network, covered by 24/7 Support Team. Our Umbraco 7.5.4 Hosting plans come with up to 99.99% uptime and 30-Day Full Money Back Guarantee.

Umbraco is strongly supported by both an active and welcoming community of users around the world, and backed up by a rock-solid commercial organization providing professional support and tools. Umbraco can be used in its free, open-source format with the additional option of professional tools and support if required.

With simple and customisable editing and content creation tools, it's easy to manage and maintain your website exactly how you want it. Umbraco doesn't dictate how you should work - that should be up to you, not your content management system.

ASPHostPortal.com offers Umbraco 7.5.4 Hosting with expert team support. We offer Umbraco 7.5.4 hosting with affordable price, a lot of features, 99.99% uptime guarantee, 24/7 support, and 30 days money back guarantee. We strive to make sure that all customers have the finest web-hosting experience as possible. To learn more about our Umbraco 7.5.4 Hosting, please visit http://asphostportal.com/Umbraco-7-5-4-Hosting

About ASPHostPortal.com:
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



Joomla Hosting - ASPHostPortal.com :: How to Backup Your Joomla Website

clock November 17, 2016 10:32 by author ben

According to tutorialspoint website, In this chapter, we will study about Website backup in Joomla. It allows backup of files, folders and re-opens it in Joomla.

Website Backup

Following are the simple steps used to backup the website in Joomla −

Step (1) − Click on System → Global Configuration in Joomla administrator. You will get the following screen.

Step (2) − Next, click on EJB - Easy Joomla Backup at the left sidebar.

You get a basic editor page for Joomla Backup. Here by default, the Component tab is displayed.

Below we have mentioned the details of the fields present in the Component tab on the page −

  • Exclude files from backup archive − It indicates the name of the files with the path address to be excluded from a backup archive.
  • Exclude folders from backup archive − It indicates the name of the folders with the path address to be excluded from a backup archive.
  • Add 'DROP TABLE' instruction to dump file − It indicates to add drop table instruction to dump files without deleting the tables by selecting either (Yes/No).
  • Add additional tables − It indicates to add additional tables, but it should not have the same prefix.
  • Maximum number of backup files − It indicates the maximum number of backup files.
  • Prefix for archive names − It indicates to use prefixes for archive names of backup file.

Step (3) − After clicking on Permissions tab, you will get the following screen.

Following are the details that are present on the Permissions tab −

  • Configure − It allows the user to edit the user option.
  • Access Administration Interface − It allows the users to access the administration interface.
  • Delete − It allows the user in group to delete the content present in the extension.
  • Download − It allows the user to download the backup archive file.
  • Full Backup − It allows the user to create full backup file permission.
  • Database Backup − It allows the user to create database backup.
  • File Backup − It allows the user to permit creation of file backup.
  • Discover − It allows the user to discover backup files or new entries into the database.

Toolbar

Following are the toolbar options in the Website Backup screen −

  • Save − Saves your Backup of website.
  • Save & Close − Saves the Backup of website and closes the current screen.
  • Cancel − Cancels the created Backup of website in Joomla.

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 offers Joomla hosting starts from $5/month only. We also guarantees 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 :: Tips to fix access the private site on Joomla

clock November 16, 2016 07:56 by author Armend

This was a pretty interesting issue to find and resolve. It's an database 'error' of sorts that is pretty simple to fix. First of all this is all due to a parent<-child condition that has gone horribly wrong in an update or something else. Most likely you will find this issue in the table "assets". You will need to find your database prefix fist of all, easiest found in the configuration and the option "$dbprefix". I will call it "prefix_" here for ease of typing.

 

So to find if you have this issue you can run the following in an sql manager of your choosing (mysql or phpmyadmin shoulden't make any differents, i did it in the cli mysql)

SELECT id,parent_id,title FROM `prefix_assets` WHERE parent_id=0;

If you find that there are multiple rows then hit the above do the following

UPDATE `prefix_assets` SET parent_id=1 WHERE parent_id=0 AND NOT id=1;

You should also verify that the "Root Asset" has id 1 and parent_id 0

SELECT id,parent_id,title FROM `prefix_assets` WHERE id=0 OR parent_id=0;

this should give the result

id    parent_id    title

 1    0               Root Asset

if not run

UPDATE `prefix_assets` SET parent_id=0 WHERE title="Root Asset";

This should have fixed the issue.

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 offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



ASPHostPortal.com Announces ASP.NET Core 1.1 Hosting Solution

clock November 15, 2016 07:32 by author ben

Established in 2008, ASPHostPortal.com is one of the leading ASP.NET hosting provider offering quality services with premium support. We maintain and operates its own network. Our superior servers are housed in 12 different countries with up to 1000 Mbps connection and Cisco Hardware Firewalls. Our company is passionate about hosting and strive to deliver an excellent level of service to each customer. Today, we offer high quality ASP.NET Core 1.1 hosting at low price.

Microsoft is happy to announce the release of ASP.NET Core 1.1 Preview 1. This release includes a bunch of great new features along with many bug fixes and general enhancements. They invite all people to try out the new features and to provide feedback.

URL Rewriting middleware is one of new features are available in ASP.NET Core 1.1. This allows mapping a public URL space, designed for consumption of your clients, to whatever representation the downstream components of your middleware pipeline require as well as redirecting clients to different URLs based on a pattern.

ASPHostPortal.com offers ASP.NET Core 1.1 Hosting with expert team support. We offer ASP.NET Core 1.1 hosting with affordable price, a lot of features, 99.99% uptime guarantee, 24/7 support, and 30 days money back guarantee. We strive to make sure that all customers have the finest web-hosting experience as possible. To learn more about our ASP.NET Core 1.1 Hosting, please visit http://asphostportal.com/ASPNET-Core-1-1-Hosting

About ASPHostPortal.com:
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



Joomla Hosting - ASPHostPortal.com :: How to Hide Content after Login in Joomla

clock November 10, 2016 10:21 by author ben

According to Joomla-shark website article, This might seem like an unusual thing to do, but think about it… if you have a large banner module on your website asking people to create an account, why would you want this to be visible to users who are already registered?

Obviously it’s ideal to hide the module from registered users, and set it to only display for non-registered users, but how do we do this?

At one point this required a bit of customisation in the backend, but since the release of Joomla 3 it’s been made a bit easier. We will explain how to do this in both Joomla 2.5 and Joomla 3.

Until recently, Joomla offered only three different levels of access:

  • Public: for users without any login credentials
  • Registered: for those with a login account to the frontend
  • Special: for users with access to the backend

This made it simple to hide certain content from public users. All you had to do was set the access level of the content to Registered, thus blocking any non-logged in users from accessing it. But there wasn’t any straightforward option to do things the other way around, and make content exclusive to public users.

The way to get around this is to set up a new user group and access level for guests, and then assign it to the content. If you are using a recent version of Joomla 3, the user group and access level should already be set up for you, but it is best to check to make sure they have been set up.

Creating a User Group for Guest

Log in to your Joomla Administration panel and go to Users > Groups. If you are using Joomla 3, you should see that Guest has already been set up as a User Group. If not, we need to create it.

Click New and give your group a title (preferably Guest), and make sure Public is assigned as its parent.

Setting the Access Levels for the User Group

Next we need to set up the access level for our new user group. From the User Manager, click into Viewing Access Levels. Again, if you are using Joomla 3, you should see that Guest has already been set up. If not, we need to create it.

Click New and give the access level a title (use Guest again so that it doesn’t get confusing), and then tick Guest under the User Groups Having Viewing Access title.

Set the Guest User Group

With the access level and user group set up, we need to set it as the default group that will be applied to non-logged in users. Click Parameters while still in the User Manager and set the Guest User Group to Guest.

Assigning a Module to the Guest User Group

With the above done correctly, you can now assign your content to the new user group. Find the content you want to make viewable to the Guest group, and then set the Access to Guest.

Your content will now only be visible to users who are not logged in!

Before you test this though, make sure you clear your browser’s cookies, and remember when testing your front end, that any element of your website will always be visible to a super user, so make sure you test this with a registered user.


Show Content only for Guest Users in Joomla: Simplified

  • Go to User Groups and create a new group called Guest, and make this is a child of the Public group.
  • Then go to Viewing Access Levels and create a new access level called Guest. Click into the access level and make sure it is assigned to the Guest User Group.
  • Set the Guest User Group to Guest in the User Manager’s Parameters
  • Click into your content, and set the Access level to Guest.
  • Clear your cache, and done. Your content is now only visible to non registered users.

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 :: How to Install Joomla on a Local Server

clock November 9, 2016 07:19 by author Armend

How to Install Joomla on a Local Server

Joomla Content Management System (CMS) is easy to install. No matter what server operating system you’re running, Joomla’s installation process walks you through all the steps.
Before you install Joomla, set up the Joomla environment. The easiest way to do this is with XAMPP.
Once you have XAMPP installed, follow these steps to install Joomla:

 

  • Click the Download button on Joomla’s page.
  • Download the compressed .zip or .tar.gz file, as appropriate for your operating system.
  • Uncompress the Joomla files to the htdocs directory, or create a subdirectory of htdocs and then copy the uncompressed files to that subdirectory.

Your newly installed XAMPP directory contains a subdirectory named htdocs, which is where you put the files you want to access when you navigate to http://localhost in your browser.

  • Open your browser, and navigate to http://localhost or http://localhost/xxxx (where xxxx is the name of the subdirectory you created in Step 3).

The first Joomla installation page appears.

  • Select a language and Click Next.
  • All items in the top pane of Pre-Installation Check page should read Yes.

If you don’t see Yes for any item, contact your ISP’s technical support department).
This page also displays a list of recommended settings. If you’re installing Joomla on an ISP’s server, you don’t have a heck of a lot of choice about these settings, because the ISP’s tech staff determines them. and then Click Next

  • Review the license and click Next to accept the terms.

The Database Configuration page comes up.

  • Here are the settings you have to make in this page, along with brief explanations:
  • Database Type: Choose MySQL.
  • Host Name: Enter localhost.
  • User Name: In this text box, enter the default MySQL username root.
  • Password: Enter the password.
  • Database Name: Enter the name you used when you set up your database.
  • Joomla tests the connection to the database. If everything works properly, it takes you to the FTP Configuration page which you can skip.
  • Click next to skip the FTP configuration.
  • Enter the name of your new Joomla site in the Site Name text box.

This name will appear when you log in as an administrator.

  • Enter an administrator e-mail address in the Your E-Mail text box.

When you log into your new site, you’ll be the super user. The super user has maximum control of the site.
You can create several super users, but you can’t delete a super-user account. However, you can demote the account to a lower site permission level and then delete it.

  • Enter and then confirm the administrator password you want to use.

Joomla gives you the option of installing some sample data to see how the site works, and unless you’re an experienced Joomla user, you should definitely do that.

  • Select the Install Default Sample Data button; then click the Install Sample Data command button.

When you complete this step, the Install Sample Data button changes to the Sample Data Installed Successfully button.

  • Click Next.

Note the message on the right side of the page, which gently reminds you in gigantic red text to remove the installation directory.
Remove the installation directory.

To delete the Joomla installation directory, connect to your site by using your FTP program, and delete the directory there.
Click the Site button to visit your new Joomla site or click the Admin button to go to the administrator control panel.

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



ASPHostPortal.com Announces Windows Server 2016 Hosting Solution

clock November 8, 2016 08:07 by author ben

ASPHostPortal.com serve people since 2008 and we know how to deliver Powerful, Fast and Reliable Windows Server 2016 Hosting with the Superior Customer Support. Our superior servers are housed in 12 different countries with up to 1000MB/s connection and Cisco Hardware Firewalls. Fully managed and monitored around the clock, our servers run on Windows Operating system with lots of memory (RAM) and up multiple Quad-Core Xeon CPU's, utilizing power of the Cloud Services. Our Windows Server 2016 Hosting plans come with up to 99.99% uptime and 30-Day Full Money Back Guarantee.

Windows Server 2016 is a server operating system developed by Microsoft as part of the Windows NT family of operating systems, developed concurrently with Windows 10. The first early preview version (Technical Preview) became available on October 1, 2014 together with the first technical preview of System Center.

Securely deploy and run your existing applications on Windows Server 2016 to transform them into new cloud-native models. Help developers to innovate and create on-premises and cloud applications using the latest technology—containers, microservices, and Nano Server.

ASPHostPortal.com offers Windows Server 2016 Hosting with expert team support. We offer Windows Server 2016 hosting with affordable price, a lot of features, 99.99% uptime guarantee, 24/7 support, and 30 days money back guarantee. We strive to make sure that all customers have the finest web-hosting experience as possible. To learn more about our Windows Server 2016 Hosting, please visit http://asphostportal.com/Windows-Server-2016-Hosting.aspx

About ASPHostPortal.com:
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio, Latest ASP.NET Version, Latest ASP.NET MVC Version, Silverlight and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP, etc. Their service includes shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



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