PDA

View Full Version : Adding E-Mail & PM Buttons To Member.php


mashby
07-10-2002, 12:15 PM
I would like to include the vBulletin e-mail and pm buttons (normally found in the postbit) in the member profile pages, aka member.php. I've tried, but I don't seem to understand the templates well enough to make this work.

I've been successful with ICQ, Yahoo and AIM buttons, but adding the e-mail button escapes me.

Thanks in advance!

Admin
07-10-2002, 12:35 PM
It's already there, you just need to change these templates: getinfo and getinfo_sendpm.

mashby
07-10-2002, 01:15 PM
Chen,

Thanks for the fast reply, but can you be more specific? I'm familiar with the tempaltes used, but I don't see how to add the buttons. I know I could do a hard link to them, but what if the user has disabled PM, wouldn't the button show up anyway?

Admin
07-10-2002, 01:21 PM
Just replace the text links in the templates I gave you with buttons. getinfo_sendpm will only show up if the user has enabled PM's.

mashby
07-10-2002, 02:50 PM
Chen,

Ok, thanks to you, I have those two buttons in place. Now I just have one more to go and I'm all done!

I installed a small MSN hack [link (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40452)] and it's working just fine in the postbit [link (http://npug.org/forum/showthread.php?s=&threadid=12129)] by using the following call $ post[msn], however I can't seem to get it to work in the getinfo template.

I simply don't understand the $ variables I would guess. :( The name of the custom template that I'm trying to call is "msnicon," but as stated above the variable used in the postbit is $ post[msn].

Can you point a lost newbie in the right direction?

Admin
07-10-2002, 03:28 PM
You basically need to follow the same steps but in member.php and not functions.php...

mashby
07-10-2002, 04:05 PM
Ahhh, so it can only happen via a hack. Ok, thanks for clearing this up for me Chen. You've been a BIG help today!

mashby
07-10-2002, 04:15 PM
Worked like a charm Chen. Thanks again!