![]() |
Adding new data to profile page
I don't have much experience with templates or the new plugin system, so go easy on me. :)
I've added a new section to user's profiles (MEMBERINFO) for some non-forum data. The data that will go in this section is in another database. I am unsure exactly how this is to be done. Do I add just add variables to the template where I want this data to be inserted and hook profile_start to fill those? I tried creating a temporary variable, hooking profile_start and trying to display something through that variable and it didn't work. So I know I'm missing something. Oh, and one last thing, is there a vB changedatabase function? Thanks! Edit: I figured it out. For those confused like I was... I needed to hook the member_complete template. I stuck a test variable in the hook and set it to a random integer as a test: $userreviewcount = 10; In the MEMBERINFO all I needed to do was put $userreviewcount wherever I wanted that variable to be echoed. |
All times are GMT. The time now is 09:06 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:
|