Official Blog

Nov
09
Posted on 09-11-2011
Filed Under (CMS) by Admin1

Here is a small howto that will show you how to unpublish a node after a given time can be in days, in seconds  … Drupal  using the module Rules

First, what does the module Rules?

Rules can be viewed as an evolution of the core module and trigger is the enhanced version of drupal 6 work flowing to Drupal 5.

Rules allow to discover events, perform actions (post a comment, send an email …) automatically with the possibility of moving conditions.

Here is a small howto to un-publish content after a certain time, it could be 15 days, 30 seconds, Wednesday, Nov 09 …

First, you must install the Rules.

1. Creating Rule Sets: Go to / admin / rules / rule_sets

  • Click on “Add a new rule set”.
  • Add a title, eg “Unpublish content {} rule set” with the name and machine-readable “unpublish_content.”
  • In the Arguments, select “Content” as data type, enter “Content {argument}” as a title and “unpublish_content_content” as the machine readable name.
  • Then save your form.
  • You will be redirected to the overview of the rules sets and you can see the rule set that you just created.
  • Then click on it and add a new rule by clicking the “Add new rule”
  • Add a title such as “Unpublish {action} rule” and click Save.
  • You will then be on a page for editing the rule click on “Add an action.”
  • You will have a selection list, you should choose “Node | Remove the contents of the publication” (NOT “Rule Set | Publish content”!) And confirm by clicking Next.
  • You have nothing to do normally in the form on which you have been directed, except change the title to “Unpublish content {action}” to more easily track and then save.
  • Go to the page admin / rules / rule_sets and click on your rule (rule Unpublish content {set})
  • Then click on the action (action {rule} Unpublish) to edit
  • Add Action and select “Schedule Unpublish content»
  • Choose the identifier [unpublish_content_content: nest] if you follow the terms I used, otherwise fit machine readable name given in the above arguments.
  • Set the date of execution, for example 2011-12-12 10:33:55 or “one day”, you can refer to the PHP formats strtotime ()

2. Creation of or triggers (trigger): Go to / admin / rules / trigger

  • Click on “Add a New Rule”
  • Choose to label “Unpublish content triggered rule {}”
  • Select “Node | After saving new content” and save
  • Add Action
  • Select “Rule Scheduler | Schedule rule Unpublish content {set}”
  • Add Condition “Node | Content is published ‘
  • You can also add a requirement for a given content type, why add a new condition
  • And select “Node | Content Type as” and choose your or your content types.

Well, your rule is created and will be executed each time when the cron run. I hope this tutorial has helped you a little.

(1) Comment    Read More   
Nov
09

If you are a new comer in hosting market then you must be confused while choosing your suitable hosting provider, hosting plan and also operating system.

Maximum hosting providers offer some similar types of hosting plans like: Shared hosting, VPS hosting, Reseller hosting, Dedicated hosting, Cloud hosting, Colocation hosting Etc. Shared hosting is the cheapest option but if users can afford little more budget then VPS hosting would be suitable for them. You can follow the following parameters to choose a suitable hosting plan.

A. If you have 0 to 300 visitors per day then shared hosting would be suitable for you.
B. If you have 300 to 5000 visitors per day then VPS hosting would be suitable for you.
C. If you have more than 5000 visitors per day then dedicated hosting would be suitable for you.

VPS stands for Virtual Private Server. In case of VPS hosting, the website owners can share the costs of server maintenance and server uses but it gives the website owners a total control over their server. They can reboot their server individually as they wish.

In case of the operating system, there are mainly two types of operating systems. First is Linux operating system and second is Windows operating system. Linux is cheaper than windows, because Linux is an open source operating system. But before choosing any operating system you have to know which scripts are used to create your website.

Before selecting a VPS hosting plan you have to know some characteristics about that plan. Like:
A. Number of CPU
B. RAM
C. Total disk space
D. Disk Space Allotted
E. Amount of Bandwidth
F. IP Address
G. Administrative Panel Management
H. Backup servers

10 GB Hard Disk Space, 400 GB Bandwidth ( Per Month ), 256MB RAM Guaranteed RAM, presence of Equal Share Of CPU, Control Panel(s) availability, 2 Dedicated Ips, presence Unique IP Addresses – are suitable for any beginner.

You have to choose a reasonable hosting provider but keep in mind that cost is not the only matter. In case of web hosting security, reliability, uptime and support are very important.

Users can customize their Virtual private server as much as a dedicated server is since it runs on its own distribution. Utilizing root access you can do just about anything you want with your Linux VPS hosting which is a biggest advantage.

Last but very important step before selecting hosting plan is “go through customers’ reviews”. Before signing-up with any hosting provider, you have to go through your chosen hosting provider’s customers reviews.

(0) Comments    Read More