The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I find the vbulletin.org staff introduction really interesting, and I'd like to do something similar on my site. I've figured out how to make my own staff template and link it up to the forum site, but I'm still puzzled how I can make each admins/mods profile information show up on the staff site.
Maybe there is a MOD available to do this kind of thing? Thanks for your help ![]() |
#2
|
||||
|
||||
![]()
There hasn't been one released, to my knowledge. I imagine it would be relatively easy to do, using the Forum Leaders page as a guide - as it is basically the same concept.
|
#3
|
|||
|
|||
![]()
Thanks Kirk, I'm basically looking for something like the "Forum Leaders" page, but with a more fancy design like the vbulletin.org page
![]() All the basic html in the custom template shows up just fine, but none of the data like admin/mod usernames, posts, avatars, joindates etc. How can I pull that data from the database into the custom page? Do I have to create extra plugins or hooks? I'm not sure what I'm missing out on here, but your help is much appreciated. |
#4
|
||||
|
||||
![]()
How are you pulling the data?
|
#5
|
|||
|
|||
![]()
basically I am using the same "setup" as the Showgroups template. I'm not sure what I have to add to include the avatars on my custom staff page. I've looked over the showgroups.php file and here is what I can't figure out:
What do I have to add to my custom php file in order to pull the avatars, last online, user title info from the database? I imagine the code I have to add would be something like: HTML Code:
<if condition="$show['avatar']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] vspace="5" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td> <else /> <td> </td> </if> ![]() Thanks in advance |
#6
|
|||
|
|||
![]()
Do I have to make a hook or plugin to pull avatars into a custom page?
|
#7
|
||||
|
||||
![]()
Global_start (hook)
Content: Code:
require_once('./includes/functions_user.php'); $userid = $vbulletin->userinfo['userid']; $avatarurl = fetch_avatar_url($userid); if (empty($avatarurl)) { $show['avatar'] = false; } else { $show['avatar'] = true; } Code:
<if condition="$show['avatar']"> <img src="$avatarurl[0]"> <else /> <img src="your_image_if_no_avatar" border="0" alt="My avatar" /> </if> http://www.vbulletin-ressources.com/...ead.php?t=6636 |
#8
|
|||
|
|||
![]()
thanks a million Allan, appreciate your help! It worked like a charm too
![]() Could you please tell me what I have to change to display the avatars of the admins/mods instead of my own? Thanks Allan! ![]() PS: Looked at your forum btw, looks awesome!! Unfortunately my french knowledge is very very limited ![]() |
#9
|
|||
|
|||
![]()
Anyone willing to help me make the slight change to Allan's little hook/script so I can display staff info, in this case the avatars on a custom page?
![]() |
#10
|
||||
|
||||
![]()
hey perhaps one if you guys could help me out..?
i added the hook as decribed and wanted to add it in whoviewed my profile, but it only shows my own avatar and of course i want them visitors avatars to be displayed on there like $avatarurl[userid] ?? -------- for example please login at http://www.my3dprofile.com/forums/Kaasie username: vBulletin password: org ---------- I would appreciate it very much and any help or tip i am really thankful for |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|