The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating a Custom Template with Member Variables
Hey everyone, I was wondering if I could get some guidance on how I would code a member box of sorts. It would be custom template, I think, and it would sit between the forums and the navbar on the forum home template and the show forum template. In this box, it would contain the user's profile picture, their most recent visitor comment, a "status"-like profile field that they can change, and a member search box. Any guidance is well appreciated, as I've spent a lot of times on these forums and have dabbled in custom templates, and haven't had much success. Thank you!
|
#2
|
||||
|
||||
First, you'll need a plugin that will get all that information for you for the user.
Then, you'll need to 'make' the box in your FORUMHOME template. I don't think there is a template_hook in the area you are talking about. You may make one of your own and then put this new code into a new template. Then at the end of your plugin, you can just eval the template - eval('$template_hook[your_template_hook] .= " ' . fetch_template('your_template') . '";'); |
#3
|
|||
|
|||
Fantastic! In this plugin, to generate a working member search box, an editable profile field, the most recent visitor message, and profile picture code, would I simply reference and take the code from the member page, the user cp, and the member info template, or would I need to create all new code with new database queries?
|
#4
|
||||
|
||||
You can try just referencing it to see if it's already available. But, you'll have to pick a hook location for your plugin that evals *after* that information is generated. So, look in your index.php file and find a plugin near the end and maybe that one will work for you.
|
#5
|
|||
|
|||
Thank you so much for your help Lynne. I'll give it a shot.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|