-
use name attribute for input instead of id for use with label
you need Jquery:
<label for="myinput"></label><input name="myinput" type="text" value="text here" />
$('label').live('click', function(e){
if( $(e.target).is(':input') ) return;
var i = $(':input[name="' + $(this).attr('for') + '"]')
i.is(':checkbox') ? i.attr('checked', !i.attr('checked') ) : i.focus().select();
})
-
Convert html to vbcode and post to vbulletin
using vbulletin files :
chdir('/path/to/forum');
define('THIS_SCRIPT', 'login');
require_once( './global.php');
require_once( DIR . '/includes/functions_wysiwyg.php' );
echo convert_wysiwyg_html_to_bbcode('<i>hello world</i>');
using external function :
-
Compressing your HTML, CSS and Javascript using simple PHP Code
Although Compression is a very important method of making your pages lighter and easier for users to download, it’s definitely going to cost you more CPU and on high load servers it’s not recommended unless you already know how to cache your HTML pages.

