If you would like to allow two names (words) with a space (for NickName) we need to do this:
-
goto admin panel, fields builder, join form, click nickname, advanced tab - find:
-Code:preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );
Replace with:
-Code:return ( preg_match( '/^[ a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );
Be sure everything else including the ( before the preg_match stays the same. This will allow one or two word nicknames, with 0-9 and -.
-
Next, open .htaccess in dolphin root - find:
-Code:RewriteRule ^([A-Za-z0-9_-]+)$ profile.php?ID=$1 [QSA,L]
Add this line directly AFTER the above line:
-Code:RewriteRule ^([A-Za-z0-9_-]+)\ ([A-Za-z0-9_-]+)$ profile.php?ID=$1\ $2 [QSA,L]
That will send the double worded nicks to the profile.php for friendlyurl support (mod_rewrite).
-
That's it.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks