How to install the default LAMP stack in Ubuntu 16.04?

First refresh your package index… $ sudo apt-get update … and then install the LAMP stack: $ sudo apt-get install lamp-server^ Mind the caret (^) at the end. If occers: E: Unable to locate package lamp-server Try to use: [code] sudo apt-get install tasksel sudo tasksel install lamp-server [/code] Done! About LAMP LAMP stack is […]

Read More

How to Find All Zen-Cart Deactivated Products?

Is there some easy way we can find all products that have been set to deactivated?  Without going through all of them one by one in admin? We can use the powerful mysql command to achieve this. Go to phpMyAdmin, if you only use the following sql command, you will only get all deactivated products […]

Read More

Add Banner System at Homepage for X-cart V4.74

1. Copy jquery.flexslider.js, jquery.flexslider-min.js, and slide_toggle.js to the folder skin/light_responsive/js/; 2. Copy flexslider.css to the folder skin/light_responsive/css/; 3. Edit altskin.css which is at skin/light_responsive/css/, add the following css code at the end of the file: .flexslider {

Read More

Display latest WordPress Posts at X-cart

Here’s my solution using RSS and a Smarty plugin to pull the latest posts from any wordpress blog. Create this file include/templater/plugins/function.sr_wpfeed.php: trigger_error(‘Error reading XML file’,E_USER_ERROR); } $posts = array(); foreach($xml as $item){ for($i=0; $iitem); $i++){ if($i (string)$item->item[$i]->link , ‘title’ => htmlentities($item->item[$i]->title,ENT_COMPAT, ‘UTF-8’) , ‘description’ => $item->item[$i]->description ); } } } $smarty->assign($var, $posts); } ?> […]

Read More

How to change permissions for creating articles and blogs for Vbulletin 5.1?

Change the permissions for creating articles: In the Admin CP of your vbulletin based system where you set permissions for all channels. Go to Channel Management -> Channel Permissions. Scroll to the Articles channel. Edit your usergroups and remove the “Can Post Topic” permission. All sub-channels will inherit those permissions. Change the permissions for creating […]

Read More

How to let your html page run php code?

Do you know that we can add php code at a html page, and run these php code? For different php version, we have to add different code at .htaccess. For php5, we add the following code: # Use PHP5 as default AddHandler application/x-httpd-php5 .html .htm .php

Read More

Drupal 7 Skills

Question 1: Can’t overwrite or delete settings.php It’s a smart security setting of drupal You need to add permissions to write not only the settings file but also the folder where it is. Don’t forget to put the permissions back as they were once you finished editing the file.

Read More

2 skills on vbbulletin and vbseo

1. How do you change vbulletin’s home page to the forums instead of the default (CMS or Activity Stream)? For vBulletin versions >= 4.2. There’s a new “Navigation Manager”. You’ll find the control settings here: Admin Control Panel -> Settings -> Navigation Manager. Find the row for the Forum tab. On the right side of […]

Read More