Protecting Pages On Your MODX Site — The Easy Way
Last Updated on Saturday, 18 May 2013 10:44 Written by Bob Ray Monday, 20 May 2013 12:00
Suppose you want to make a section of your site private so that only logged-in users can see the Resources. As with most things in MODX, there are several ways to protect Resources.
Contexts
One method is to put all the private Resources in a separate context and protect it by creating a Context Access ACL entry that links the private Context to one or more User Groups. Once you do that, the Resources in the Context will be hidden from everyone who is not a member of the specified group or groups. I try to keep from using Contexts if I can, because they are difficult to set up correctly and they introduce complexities that I’d rather avoid. Links to Resources in other Contexts, for example, can be tricky to implement and users often get sent to the error (page-not-found) page rather than the unauthorized page when trying to access a forbidden resource.
Learn MoreSimple Kaltura: A Light Way to Upload/Embed Videos in Elgg 1.8
Last Updated on Saturday, 27 April 2013 09:39 Written by Rodolfo Hernandez Sunday, 28 April 2013 12:00
Uploading videos using the default Files plugin can add some server load, especially if many are uploading videos. In this article I will give you a step by step guide about Simple Kaltura, a light way to upload/embed videos in elgg 1.8
Simple Kaltura is a plugin that has the following features:
Learn MoreEasy Way to Check Space Usage in Your Microsoft SQL Database
Last Updated on Monday, 18 February 2013 04:28 Written by Naveed Ashraf Tuesday, 19 February 2013 12:00
This step show you the space usage by your SQL database and by its log file. This will show space size in MB.
Steps:-
1. Open Microsoft SQL Server Manager Studio to connect with SQL Database
2. Click on your database to select your database
3. Create new query
How to Efficiently Count Records of an SQL Table with PHP
Last Updated on Friday, 4 January 2013 12:00 Written by Richi González Friday, 4 January 2013 12:00
Hello,
For the last website I made, I created a really flexible and friendly administration panel where there were a lot of statistics to analyze how the website was performing. I came across different ways of counting records in a table, yet stuck with this one, the most efficient:
The query is really simple, we will use SELECT COUNT(1), then mysql_fetch_row() that count. The code would look like this:
Learn MoreHow to Directly Browse Your Website’s Files via SSH
Last Updated on Wednesday, 12 October 2011 03:02 Written by Richi González Tuesday, 22 March 2011 08:43
Hello,
I will show you how you can directly browse your website’s files via SSH. I grabbed this article idea from a thread I saw in the Arvixe Forum. I use Ubuntu’s terminal to stablish the SSH connection. If you are on Windows, you can use PuTTY or any other SSH client (read more in step number one).
Difficulty level: Mega Easy
Learn More
Recent Comments