What does your template look like? It needs to look something like the one shown in the first post in this article - [How-To] vBulletin API Basics: Creating Custom Pages & Misc. Notice how it calls the $header and $navbar, etc. You need to have that template working in your page first. Then you add this code into that template.
|
Oh, ok, I understand. Then, what could be the best solution to do this:
My example.com/index.php page: http://img398.imageshack.us/img398/5156/38181099fi1.jpg What I would like to do: http://img253.imageshack.us/img253/830/11540346fo9.jpg |
Quote:
HTML Code:
<!-- logged-in users --> |
Thanks for your replies, Lynne. That works correctly.
|
I've tried this tutorial and only want $activeusers to show up in the mini profile block, however it is not working. Help?
|
You want to show the whole list of active users on each person's profile page? I think you would have to either a) add this code to the member.php page and templates or b) write plugins to add it to the page. I'd opt for plugins, but it's not something I can help with since I don't run 3.7 on my board yet.
|
Quote:
However I like the A option better. However I tried adding all of your code to the member.php and it did not work. |
I just don't feel up to learning about the specifics of adding a mini-profile block which is the hard part with what you want to do (adding my own tabs and code was 'fun' enough!). Your best bet is to probably post in the appropriate forums for help doing this sort of modification. Make sure you post exactly what code you wrote to write to the template - that is going to be the challenge.
|
Quote:
|
Quote:
This is down and dirty so you will have to caress it to look how you want. Add all the stuff to the member.php page that it said in the article (make sure you add it *before* the "member_build_blocks_start" hook gets called or the information won't be available to be displayed!), then when you get to the part about adding to the template, do this: Create a new template called "memberinfo_block_curactive" with this: HTML Code:
<!-- Currently Active Users --> PHP Code:
I have NOT tested it on a live site. Use at your own risk!!!!! |
All times are GMT. The time now is 07:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|