vRewrite 1.5.1

+bug fix:	last post adding forum name twice
+bug fix:	replacing "_" with "-" (fix for _ in username)
+bug fix:	fixed url linking(now using full url)
+bug fix:	Fixed WOL problems (some showthread.php's may not be rewritten)
+bug fix:	Fixed issue with Opera(fixed with relative or full path)
+bug fix:	search.php "-post" issue **.htaccess* needs updating

new feature:	added compatability with #5 (new hook called forumdisplay_complete)
new feature:	added compat for #6 (requires manual template edit)
new feature:	added fix for #1 (danny's comment system -- requires 1 edit and xml file)
new feature:	Full path / relative path
new feature:	Exclude scripts
new feature:	Smart Copyright system - add copyright manually using "$vRewrite_copyright;"
new feature:	Support for external.php
new feature:	stop words (feature request from Tyler)
new feature:	Template edits no longer needed: "head" is not replaced by <head> <base href="site">


Future: 	fix pagination for showthread & forumdisplay
		add support for memberlist.php




The following MAY fix (or break) some features of the forum, such as the useless misc.php popup.

Add the following code to the end of your htaccess file:
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L] 


**WARNING** the above is untested.  Theoretically, this code shouldn't affect any other php script (unless your calling a php script from a non existent directory).  However, theoretical isn't always the real world ;-)






-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------

1. Danny's commmet system:  http://www.vbulletin.org/forum/showthread.php?t=103881 [^] 
	XML FILE
2. http://www.vbulletin.org/forum/showthread.php?t=108910&highlight=suite [^]
	NO FIX YET


3. http://www.vbulletin.org/forum/showthread.php?t=106726&highlight=Last+X+threads+in+forumhome LATEST THREADS ON FORUMHOME
STEP 1
	==========================
	SEARCH FOR:
		global $db, $vbulletin;
	==========================
	BELOW ADD:
		global $vRewrite_thread, $vRewrite_forum;
	==========================
STEP 2
	==========================
	SEARCH FOR:
	==========================
	BELOW ADD:
		// vRewrite FIX
		$vRewrite_thread[$lastxdevel1[threadid]][ownerid] = $forumdevel1;
		$vRewrite_thread[$lastxdevel1[threadid]][title] = $lastxdevel1['title'];
		// vRewrite END FIX
	==========================
STEP 3
	==========================
	SEARCH FOR:
	==========================
	BELOW ADD:
		// vRewrite FIX
		$vRewrite_thread[$lastxdevel1[threadid]][ownerid] = $forumdevel1;
		// vRewrite END FIX
	==========================
STEP 4
	==========================
	SEARCH FOR:
				$whotoday .= "<a rel=\"nofollow\" href='member.php?u=$today[userid]' title='$wrdate' >";
	==========================
	BELOW ADD:
// VREWRITE FIX
                              	global $vRewrite_user;
                            	$vRewrite_user[$today['userid']][title] = strip_tags($today['username']);
// VREWRITE FIX
	==========================

----------------------------------------------------------------------------------------------------------------------------
4. top X stats

----------------------------------------------------------------------------------------------------------------------------
5. http://www.vbulletin.org/forum/showthread.php?t=96107 vB3.5 Forum Display Stats Cache Serialized 
	==========================
	SEARCH FOR:
		$lastthreadid = $vbulletin->forumcache[$forumid]['lastthreadid'];
		$lastposter = $vbulletin->forumcache[$forumid]['lastposter'];
	==========================
	BELOW ADD:
		global $vRewrite_forum;
		$chk = $vRewrite_forum[$forumid][lastthread];
		if (empty($chk)) {
			$vRewrite_forum[$forumid][lastthread] = $lastthreadid;
		}
	==========================
----------------------------------------------------------------------------------------------------------------------------
6. Members who have visited http://www.vbulletin.org/forum/showthread.php?t=82769
	==========================
	SEARCH FOR:

	==========================
	BELOW ADD:
	==========================
----------------------------------------------------------------------------------------------------------------------------