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: if ( !defined(‘XCART_START’) ) { header(“Location: home.php”); die(“Access denied”); } ## —————————————————————————– ## Smarty plugin “sr_wpfeed” ## Purpose:… Read moreDisplay latest WordPress Posts at X-cart

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 {

PHP Generates Passwords

[code] <?php $special=’!@#$%^&*()~`;?+/={}[]-_’; $arr_sp=str_split($special,1); $arr=array_merge(range(0,9),range(‘a’,’z’),range(‘A’,’Z’),$arr_sp); shuffle($arr); $arr2=array_slice($arr, 0,14); $str=join(”,$arr2); echo $str; ?> [/code] Php generates 14 passwords. If you need to modify the number of passwords, just modify: [code] $arr2=array_slice($arr, 0,14); [/code] If you want to modify password string range… Read morePHP Generates Passwords