View Full Version : Call Database and PHP code right from vb template
Nineaxis
02-06-2008, 03:14 AM
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!
Attilitus
02-06-2008, 03:24 AM
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.
Nineaxis
02-06-2008, 04:33 AM
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.
Excellent response, thanks. The problem would be that it has to be interactive. The user would be able to give their input, its not just for display.
Any suggestions?
ragtek
02-06-2008, 05:53 AM
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.