• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share Rewrite username tag sử dụng với tên thành viên

Smobi

New Member
Trước tên.
Thêm đoạn này vào cuối .htaccess của root
HTML:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^user_(.*?)$ /users/profile.php?wl=$1 [NC,L]





User link = domain/usernames
Mở Bbcode.php tìm
PHP:
public static function tags($var)     {
Thêm dưới nó.
PHP:
$var = preg_replace('#@([\w\d]{2,})#si', '@<a href="../$1">$1</a>', $var); //Tag Usename


Tìm tiếp
PHP:
static function notags($var = '')     {
Thêm dưới
PHP:
$var = preg_replace('#@([\w\d]{2,})#si', '@<a href="../user_$1">$1</a>', $var); //Tag username
Như vậy là xong rồi nhé.

Tập tin đính kèm: Never Die
hover_arrow-right.png
tagussername.zip (0.57 Kb.)
 

Facebook Comments

New posts New threads New resources

Back
Top