![]() |
str_replace username
Hi there,
Hope someone can help. I'm trying to add tracking to certain links in Vb. Assuming that the below code was in a new php file, what would I have to 'include' / add to the code below to make $username = username (if that makes sense). PHP Code:
Regards, W.> |
I think you need something like this.
require_once('/forum/global.php'); require(DIR . '/includes/functions_user.php'); $username = $vbulletin->userinfo['username']; |
Just the below should be fine, as you do not require the user functions (which are used for retrieving avatars, etc.).
PHP Code:
|
All times are GMT. The time now is 07:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|