The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Help?
Ok, here's what I've done so far. I've added buttons for the e-mail, send pm and homepage in the getinfo templates for the user. I am looking for a way to have the homepage and email buttons work the same way the send pm button works, where it won't show up at all if the user has them disabled in options. Can anyone please help me with the code for this? I know I have to make a couple of new templates, but I'm not sure where to change the code or what to change it to in the member.php.
|
#2
|
||||
|
||||
in member.php in the getinfo section, you can find for example this code:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Ok, I made a new template called getinfo_homepage and it works great! I changed the code you gave me accordingly. Now, how do I go about doing the email button like that? I couldn't find a reference to it in the start getinfo area of member.php at all.
|
#4
|
||||
|
||||
normally you can add this under the hp code i gave:
PHP Code:
|
#5
|
||||
|
||||
But wouldn't it need something like this in there to check if the user has the right permissions for it?
and $usergroupperms['canusepm']) Quote:
|
#6
|
||||
|
||||
hmm, as it is just a link, the permissions are checked after a users klicks on it, but of course you could add this and clause to the if-clause: if($userinfo[email]!="" and and $displayemails).
|
#7
|
||||
|
||||
That didn't work. Where would I find the permissions it uses for the email?
|
#8
|
||||
|
||||
ups, two ands?
i become old ^^ just use one and normally it should work $displayemails is used in member.php |
#9
|
||||
|
||||
I tried it with 2 "and"s and I got a parse error, so I did it with one "and" and still it shows up for users who have the email feature turned off. I know it can be done becuase it is done in the memberlist. I'm just not sure how to do it in the member.php.
|
#10
|
||||
|
||||
loool, sorry, really my fault, have overseen something:
try to use this: if($userinfo[email]!="" and $userinfo[showemail] and $displayemails) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|