Wordpress
WP Super Cache - Wordpress caching plugin free download
WP Super Cache plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.
The static html files will be served to the vast majority of your users, but because a user's details are displayed in the comment form after they leave a comment those requests are handled by the legacy caching engine. Static files are served to:
99% of your visitors will be served static html files. Those users who don't see the static files will still benefit because they will see different cached files that aren't quite as efficient but still better than uncached. This plugin will help your server cope with a front page appearance on digg.com or other social networking site.
If for some reason "supercaching" doesn't work on your server then don't worry. Caching will still be performed, but every request will require loading the PHP engine. In normal circumstances this isn't bad at all. Visitors to your site will notice no slowdown or difference. Supercache really comes into it's own if your server is underpowered, or you're experiencing heavy traffic. Super Cached html files will be served more quickly than PHP generated cached files but in every day use, the difference isn't noticeable.
The plugin serves cached files in 3 ways (ranked by speed):
If you're new to caching use PHP caching. It's easy to set up and very fast. Avoid legacy caching if you can.
For Installation steps Click Here
To download this plugin Click Here
The static html files will be served to the vast majority of your users, but because a user's details are displayed in the comment form after they leave a comment those requests are handled by the legacy caching engine. Static files are served to:
- Users who are not logged in.
- Users who have not left a comment on your blog.
- Or users who have not viewed a password protected post.
99% of your visitors will be served static html files. Those users who don't see the static files will still benefit because they will see different cached files that aren't quite as efficient but still better than uncached. This plugin will help your server cope with a front page appearance on digg.com or other social networking site.
If for some reason "supercaching" doesn't work on your server then don't worry. Caching will still be performed, but every request will require loading the PHP engine. In normal circumstances this isn't bad at all. Visitors to your site will notice no slowdown or difference. Supercache really comes into it's own if your server is underpowered, or you're experiencing heavy traffic. Super Cached html files will be served more quickly than PHP generated cached files but in every day use, the difference isn't noticeable.
The plugin serves cached files in 3 ways (ranked by speed):
- Mod_Rewrite: The fastest method is by using Apache mod_rewrite (or whatever similar module your web server supports) to serve "supercached" static html files. This completely bypasses PHP and is extremely quick. If your server is hit by a deluge of traffic it is more likely to cope as the requests are "lighter". This does require the Apache mod_rewrite module (which is probably installed if you have custom permalinks) and a modification of your .htaccess file. Visits by anonymous or unknown users will be served this way.
- PHP: Supercached static files can now be served by PHP. The plugin will serve a "supercached" file if it exists and it's almost as fast as the mod_rewrite method. It's easier to configure as the .htaccess file doesn't need to be changed. You still need a custom permalink. You can keep portions of your page dynamic in this caching mode. Your server may not cope as well with a really large amount of traffic. (You're gaming Digg aren't you? You'll need mod_rewrite, the rest of us are ok with PHP!)
- Legacy caching: This is mainly used to cache pages for known users. These are logged in users, visitors who leave comments or those who should be shown custom per-user data. It's the most flexible caching method but also the slowest. As each page is different it's often better not to cache pages for these users at all and avoid legacy caching. Legacy caching will also cache visits by unknown users if this caching mode is selected. You can have dynamic parts to your page in this mode too.
If you're new to caching use PHP caching. It's easy to set up and very fast. Avoid legacy caching if you can.
For Installation steps Click Here
To download this plugin Click Here
PHP CMS Frameworks
March 29, 2015
Read more →
Drupal
Rewriting Drupal Views Output for Custom Theming and CSS
In this article, we are going to discuss about How to rewrite the Drupal views output for custom theming and CSS. We were recently tasked with creating an events calendar that has a custom CCK field called "City". There's a drop down menu with a list of cities to assign the event to. So along with an event listing, you also see a city such as New York or Boston. The client wanted these cities to be color coded.
The issue was, how to assign the color to the city with CSS using Views. We tried a custom View theme template but this got us nowhere as there seemed to be no way to out put the names of fields.
Finally we hit upon it, there is an option in Views under Fields called "Rewrite the output of this field". When you click on a field to edit and select the checkbox for this option, you are presented with possible "Replacement patterns". In our case, we used the city location field as our CSS selector for the city location.
Here is our custom output rewrite code we used:
<div class="[field_event_location_value]">[field_event_location_value]</div>
The HTML output for the above is:
<div class="Boston">Boston</div>
We can now create a custom CSS class for Boston like this:
.page-events .Boston {
color:#2B0082;
}
Note that to utilize this properly you can only use fields that have come before the one you are currently working on so you may need to just rearrange the order or add a field but select "Exclude from display" just to get the data in to be available for use.
The possibilities for uses for Drupal Views Output Rewriting are endless and we are already using it for many different purposes for custom Views theming.
The issue was, how to assign the color to the city with CSS using Views. We tried a custom View theme template but this got us nowhere as there seemed to be no way to out put the names of fields.
Finally we hit upon it, there is an option in Views under Fields called "Rewrite the output of this field". When you click on a field to edit and select the checkbox for this option, you are presented with possible "Replacement patterns". In our case, we used the city location field as our CSS selector for the city location.
Here is our custom output rewrite code we used:
<div class="[field_event_location_value]">[field_event_location_value]</div>
The HTML output for the above is:
<div class="Boston">Boston</div>
We can now create a custom CSS class for Boston like this:
.page-events .Boston {
color:#2B0082;
}
Note that to utilize this properly you can only use fields that have come before the one you are currently working on so you may need to just rearrange the order or add a field but select "Exclude from display" just to get the data in to be available for use.
The possibilities for uses for Drupal Views Output Rewriting are endless and we are already using it for many different purposes for custom Views theming.
PHP CMS Frameworks
March 25, 2015
Read more →
Joomla
Improved AJAX Login and Register - Joomla extension free download
Register and Login with Facebook, Google, Twitter, LinkedIn, Microsoft account. Create your own registration form easily in the Live Form Editor using Drag & Drop. No more registration required, just one click and you can log in with your Facebook, Google, Twitter or Microsoft account. If you already have lots of users in joomla, they don't need to create new account, Improved AJAX Login will auto link people with same email address. The component includes tutorials to help at configurations.
Need a new Login and Registration interface?
Improved AJAX Login is a very elegant extension, it speeds up the Login, Logout and Registration procedures with AJAX technology. These process never were so simple and easy, and the clean & smooth design, of course.
How does it work so fast?
The Improved AJAX Login does the dirty work in the background, the login process will only take a moment, it's lightning fast! This module does not need to reload your webpage, the user is logged in as soon as he hits the login button. The Login also warns the user on unsuccesful login attempts with nicely decorated popup fields. The validation of the registration form is also make in the background, and mark the incorrect fields with an error massage. Go ahead to the demo page and try it yourself!
AJAX-powered User menu
After login with Improved AJAX Login a stylish User menu will appear instead of the login form. User menu is fully customisable and have some default menu items like Edit Your Details, Show Cart (only if VirtueMart installed) and of course Logout. User menu is also AJAX-powered so all menu items are loading in the background.
Some more words of the registration
The Improved Ajax Login & Register has an own popup-box for the fields. You can use captcha, to avoid bots registration to your site. As it previously mentioned, this extension make the validation and the register process with the AJAX technology, so there won't be any page-refresh during the registration.
Live Form Editor
Live editor using the WYSIWYG method (What You See is What You Get) to make well-planned forms in seconds, because you see the result live. There are many predefined fields like Address, Date of birth, Terms of Services, etc. But you can also add custom fields: textfield, select list, checkbox, etc.
Check this short tutorial video here: http://www.youtube.com/watch?v=mmYhhh3V6Wc
Extension Name: Improved AJAX Login and Register
Price: Free
More info and reviews: Improved AJAX Login and Register on JED
For Demo - Click Here
Download Free Version - Click Here
For Documentation - Click Here
Need a new Login and Registration interface?
Improved AJAX Login is a very elegant extension, it speeds up the Login, Logout and Registration procedures with AJAX technology. These process never were so simple and easy, and the clean & smooth design, of course.
How does it work so fast?
The Improved AJAX Login does the dirty work in the background, the login process will only take a moment, it's lightning fast! This module does not need to reload your webpage, the user is logged in as soon as he hits the login button. The Login also warns the user on unsuccesful login attempts with nicely decorated popup fields. The validation of the registration form is also make in the background, and mark the incorrect fields with an error massage. Go ahead to the demo page and try it yourself!
AJAX-powered User menu
After login with Improved AJAX Login a stylish User menu will appear instead of the login form. User menu is fully customisable and have some default menu items like Edit Your Details, Show Cart (only if VirtueMart installed) and of course Logout. User menu is also AJAX-powered so all menu items are loading in the background.
Some more words of the registration
The Improved Ajax Login & Register has an own popup-box for the fields. You can use captcha, to avoid bots registration to your site. As it previously mentioned, this extension make the validation and the register process with the AJAX technology, so there won't be any page-refresh during the registration.
Live Form Editor
Live editor using the WYSIWYG method (What You See is What You Get) to make well-planned forms in seconds, because you see the result live. There are many predefined fields like Address, Date of birth, Terms of Services, etc. But you can also add custom fields: textfield, select list, checkbox, etc.
Check this short tutorial video here: http://www.youtube.com/watch?v=mmYhhh3V6Wc
Extension Name: Improved AJAX Login and Register
Price: Free
More info and reviews: Improved AJAX Login and Register on JED
For Demo - Click Here
Download Free Version - Click Here
For Documentation - Click Here
PHP CMS Frameworks
March 18, 2015
Read more →
YII
Cookies Handling In Yii PHP Framework 2.0
In this article, we are going to discuss about How to handle cookies in YII Php framework. A cookie is a small file that the server embeds on the user's computer and it is often used to identify a user. In plain PHP we can access using $_COOKIE global variable.
In Yii, cookie is an object of 'yii\web\Cookie'. 'yii\web\Request' and 'yii\web\Response' maintain a collection of cookies via the property named cookies.
Set Cookies
Using below code we can send the new cookie to the user.
$cookies = Yii::$app->response->cookies;
// add a new cookie to the response to be sent
$cookies->add(new \yii\web\Cookie([
'name' => 'username',
'value' => 'yiiuser',
]));
Get Cookies
We can get get the cookies from the yii app request.
$cookies = Yii::$app->request->cookies;
// get the cookie value
$username = $cookies->getValue('username');
//return default value if the cookie is not available
$username = $cookies->getValue('username', 'default');
// Check the availability of the cookie
if ($cookies->has('username'))
echo $cookies->getValue('username');
Remove Cookies
To delete the cookie value, we can use the remove() function of yii.
$cookies = Yii::$app->response->cookies;
$cookies->remove('username');
unset($cookies['username']);
In Yii, cookie is an object of 'yii\web\Cookie'. 'yii\web\Request' and 'yii\web\Response' maintain a collection of cookies via the property named cookies.
Set Cookies
Using below code we can send the new cookie to the user.
$cookies = Yii::$app->response->cookies;
// add a new cookie to the response to be sent
$cookies->add(new \yii\web\Cookie([
'name' => 'username',
'value' => 'yiiuser',
]));
Get Cookies
We can get get the cookies from the yii app request.
$cookies = Yii::$app->request->cookies;
// get the cookie value
$username = $cookies->getValue('username');
//return default value if the cookie is not available
$username = $cookies->getValue('username', 'default');
// Check the availability of the cookie
if ($cookies->has('username'))
echo $cookies->getValue('username');
Remove Cookies
To delete the cookie value, we can use the remove() function of yii.
$cookies = Yii::$app->response->cookies;
$cookies->remove('username');
unset($cookies['username']);
PHP CMS Frameworks
March 11, 2015
Read more →
YII
Remove index.php from URL in Yii PHP Framework
In this article, we are going to discuss about how to remove the index.php from the URL (enable search engine friendly SEF URL) in YII php framework. We can get the SEF url by removing the index.php from the URL. If you are using YII framework you are noticed that by default index.php will be included with your URL. In this article I am going to explain about How to remove the index.php from the YII framework site URL.
By removing the index.php from the URL we can get the site URL like below
http://domain.com/about
To acheive this, follow the below steps.
.htaccess
Please add the following lines in '.htaccess' file inside the 'web' directory of YII 2.0 application.
RewriteEngine on
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule . index.php
Configuration of Web.php File
By default 'config/web.php' file does not have a option 'urlManager'. If we want to enable a pretty url, We have to add and configure the 'urlManager' in 'web.php' file.
To remove the 'index.php' from url, we have to the 'showScriptName' value as false.
To remove the 'r' route variable from url, set the 'enablePrettyUrl' value as true.
.................
'urlManager' => [
'class' => 'yii\web\UrlManager',
// Disable index.php
'showScriptName' => false,
// Disable r= routes
'enablePrettyUrl' => true,
'rules' => array(
),
],
.................
By removing the index.php from the URL we can get the site URL like below
http://domain.com/about
To acheive this, follow the below steps.
.htaccess
Please add the following lines in '.htaccess' file inside the 'web' directory of YII 2.0 application.
RewriteEngine on
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule . index.php
Configuration of Web.php File
By default 'config/web.php' file does not have a option 'urlManager'. If we want to enable a pretty url, We have to add and configure the 'urlManager' in 'web.php' file.
To remove the 'index.php' from url, we have to the 'showScriptName' value as false.
To remove the 'r' route variable from url, set the 'enablePrettyUrl' value as true.
.................
'urlManager' => [
'class' => 'yii\web\UrlManager',
// Disable index.php
'showScriptName' => false,
// Disable r= routes
'enablePrettyUrl' => true,
'rules' => array(
),
],
.................
PHP CMS Frameworks
March 04, 2015
Read more →
No more posts to load.
About this blog
PHPCMSFramework.com
Tutorials for WordPress, Laravel, Drupal, Joomla, Symfony & more — including AI-powered PHP guides. Publishing since 2012.
Trending posts
- Building a RAG System in Laravel from Scratch
- Steps to create a Contact Form in Symfony With SwiftMailer
- Build an AI Code Review Bot with Laravel — Real-World Use Case
- Build a WhatsApp AI Assistant Using Laravel, Twilio and OpenAI
- CIBB - Basic Forum With Codeigniter and Twitter Bootstrap
- Drupal 7 - Create your custom Hello World module
- Laravel and Prism PHP: The Modern Way to Work with AI Models
- Create Front End Component in Joomla - Step by step procedure
- A step by step procedure to develop wordpress plugin
- Symfony Framework - Introduction

