The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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> |
#3
|
||||
|
||||
The username conditional is actually (note quoted name):
Code:
<if condition="$bbuserinfo['username'] == 'username'"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|