The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Call Database and PHP code right from vb template
Hi guys,
I need to be able to run a custom PHP script from a seperate database table that I have. This is going into the user profile pages. What is the best way to do this? From my understanding you can't do straight PHP code in templates. Thanks everyone! |
#2
|
||||
|
||||
The file that powers user's profile pages is members.php
Find a plugin that will run in that file such as member_start Enter in the php code that you want to run in that plugin. Store all data you want displayed in variables. Add those variables to the user profile templates. |
#3
|
|||
|
|||
Quote:
Any suggestions? |
#4
|
|||
|
|||
the same way
make a plugin at member_start which checks if the data are sent(form), if yes it should store them or make what ever you want.. and this also should show the data then build a form into the template |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|