The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
Hi Lynne,
I need everyone to see the fields when they look at another persons profile, but only two of the profiles to have the fields show up on their about me where they edit it. Basically we have two main users, normal and business. If someone views a persons profile they need to be able to see all the profile fields, including the business ones, but only a business user should have these fields show up on their about me when they go to edit. So far my only solution that seems to be working is to modify the query in class_profileblock.php but I hate to do that. =( --------------- Added [DATE]1298584274[/DATE] at [TIME]1298584274[/TIME] --------------- Ok, so I modified the class and it works - now I need to access the usergroupid of the profile being viewed. I was able to do this using $this->profile->userinfo['usergroupid']; as long as I was inside the class, but now I need to access it from a template. Does anyone know how to do that? Thanks! --------------- Added [DATE]1298584720[/DATE] at [TIME]1298584720[/TIME] --------------- Nevermind, I figured it out - it was <vb:if condition="in_array($userinfo['usergroupid'],array(17,18))"> stuff</vb:if> instead of $bbuserinfo --------------- Added [DATE]1298589158[/DATE] at [TIME]1298589158[/TIME] --------------- Any thoughts on how I can make it a plugin instead of actually modifying the base class? Can I override the base class through a plugin? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|