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

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

Vbulletin Version 4.1.2 Installation Errors

When I install Version 4.1.2, the following errors come out: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php on line 414 Warning: Cannot modify header information – headers already sent by (output started at /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php:414) in… Read moreVbulletin Version 4.1.2 Installation Errors