![]() |
VB templates +username var + php
Hey,
I want to load stuff from database depending on username and still have the same forum layout. I thought templates were an option...there i can get layout and print username but i cant include php code to run my db queries etc. What is the best solution to my problem? |
Make your own vbulletin powered page.
https://vborg.vbsupport.ru/showthread.php?t=62164 Then enter this conditional on that page. I suggest using the user id rather then name. Here is the conditional. Code:
<if condition="$bbuserinfo['userid'] == 1"> your information shown here</if> Code:
<if condition="$bbuserinfo['username'] == usersname"> your information shown here</if> |
The username conditional is actually (note quoted name):
Code:
<if condition="$bbuserinfo['username'] == 'username'"> |
All times are GMT. The time now is 03:54 PM. |
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:
|