PDA

View Full Version : [Tweak] Make Your Member Profile A Popup Window


mashby
07-16-2002, 10:00 PM
Author: mashby

Description: This will teach you how to make the username in your postbit a link. When selected, it opens the Member Profile page in a pop-up window.

Demo: NPUG.org Demo (http://npug.org/forum/showthread.php?s=&threadid=12207) - Click on the user name, or avatar in the postbit.

Note: This template mod can be modified to work in other templates as well. :)

corsacrazy
07-17-2002, 05:46 PM
nice one !

DestyNova
07-17-2002, 06:00 PM
nice :thumb up:

==install==

mashby
07-17-2002, 08:48 PM
Thanks! Glad you guys like it. :)

Andromeda
07-18-2002, 06:22 AM
I have a quation my profile looks diff not the same as u does in the pop out code will it change it like u have that the avatar is in the upper left the al the info are to the right

if not can u please tell me what to change

10x

mashby
07-18-2002, 10:20 AM
Andromeda - actually, the layout of my Member Profile (getinfo template) is based on another template mod. You can find it at this link (http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=96).

All my template mod does is make the link a popup window.

Hagi
07-22-2002, 11:27 PM
that is nice. will install soon.

Heineken
07-27-2002, 09:06 PM
Man this is a BEAUTIFUL modification :) Thank you very much!

Is it possible you can show us what to do exactly to change the links from Send user email & Send user PM from the text that is there now to buttons?

Thank you! :D

mashby
07-27-2002, 09:57 PM
Originally posted by Heineken
Is it possible you can show us what to do exactly to change the links from Send user email & Send user PM from the text that is there now to buttons?

Glad you like the tempate mod. :)

For the e-mail button, I had to hard code it. Meaning that I simply included a an <img> tag for the button itself. I wanted to make it conditional, like the PM button, but I can't do it without a hack.

For the PM button, this is the code in the "getinfo" template

$userinfo[sendpm]

and in the "getinfo_pm" template I have the following:

<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$userinfo[userid]">
<img src="http://www.yourdomain.com/forum/images/sendpm.gif" border="0"></a>
<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$userinfo[userid]">
Send a Private Message!</a>

Cassandra Cain
07-28-2002, 02:26 AM
OT but cute buttons in the profile :)

Heineken
07-28-2002, 09:41 PM
Thanks bro :) The PM thing worked sweet!

Just wondering how I would be able to hardcode the Email button in? I have no clue about HTML :(

Thanks again!!
Heineken

Heineken
07-28-2002, 09:52 PM
wooohooo! i just learned a lesson in html :)

I figured it out! Thanks, I love this hack! :D Sexy buttons :p

mashby
07-28-2002, 11:22 PM
Heineken - thanks! Glad you figured it out. :)

Heineken
07-28-2002, 11:55 PM
So am I :) Thanks!

btw just have 2 small questions.

1 - How can I make the Group name colors change? For example, Mod is in green in here as well as in the profile page. Is there a link to a mod for this?

2 - Is there a template for the postbit you guys use here. Exactly the same looking available, or not released? :) Just curious

Thanks again!
Heineken

mashby
07-28-2002, 11:59 PM
Originally posted by Heineken
1 - How can I make the Group name colors change? For example, Mod is in green in here as well as in the profile page. Is there a link to a mod for this?

2 - Is there a template for the postbit you guys use here. Exactly the same looking available, or not released? :) Just curious


1. I think that's a hack and not a template mod. So, you'll have to check vBulletin.org for that hack, since it's not supported here.

2. There's not an "exact" copy of SaintDog's postbit, but this mod (http://www.vbulletintemplates.com/mods/showthread.php?s=&threadid=185) is about as close as you can get. :)

Heineken
07-29-2002, 12:01 AM
Thanks again Mash :)

SaintDog...if you give me the "exact" copy of your postbit would you have to kill me? lol j/k ... I definately understand :D

Cheers!
Heineken

mashby
07-29-2002, 12:24 AM
Heineken,

Saintdog has already stated that he's not releasing any images, or styles from vBT. I know you were only kidding, but you don't want to to poke the tiger on this one.

Dizzy
07-29-2002, 01:54 PM
thats a great idea my friend! :) lol
you could really spice that up.... **imagines**

Heineken
07-29-2002, 07:16 PM
lol! thanks for the warning.

sorry saintdog ... hope ya have a sense of humor ;)

Fincycle
07-31-2002, 03:29 PM
did u make that by urself, or find it?

nickbell
11-11-2002, 11:46 AM
hi, great mod i have installed it successfully on postbit templates but i am having a few problems.

i can not seem to find the bits to edit on the forumdisplay pages

http://www.wickedcolors.com/wkdboard/forumdisplay.php?s=&forumid=3

i think it may be cos i installed a hack

???

Cheers,
Nick

mashby
11-11-2002, 01:45 PM
Originally posted by Fincycle
did u make that by urself, or find it?

I came up with this tweak by myself, but it's not rocket science, so anyone could have had the same idea. :)

Originally posted by nickbell
hi, great mod i have installed it successfully on postbit templates but i am having a few problems.

i can not seem to find the bits to edit on the forumdisplay pages

http://www.wickedcolors.com/wkdboar...hp?s=&forumid=3

i think it may be cos i installed a hack

???

Cheers,
Nick

It would appear that you haven't made it a pop-up window. You need to include the javascript that creates the new window and sizes it on the forum display page as well.

imported_XrayHead
12-19-2002, 08:03 PM
Nice mod indeed, will install this first on my test board.
:D

Silver740
01-11-2003, 03:21 AM
Great one!

Slug
01-12-2003, 05:19 AM
cool

mashby
01-12-2003, 02:01 PM
Thanks guys, I'm glad you all like it. :)

macuzzi
01-23-2003, 06:32 AM
nice works :)

Orfejs
01-30-2003, 02:57 PM
Wow

8ball
02-08-2003, 08:03 AM
nice one ;)

narusaga
02-08-2003, 08:20 PM
there.....I installed it *grins*. Works A-O-K! :)

EDIT: :D wow, it also makes everything look good :p

imageconstrux
02-24-2003, 08:23 PM
I'm wondering if I'm not getting something -

I took a look at the sample links on page one, and the member profile isn't a pop-up. The link opens a page in the same window.

Have I overlooked something?

Jeff

mashby
02-24-2003, 08:33 PM
No, I've recently upgraded my forums and along the way, I'm cleaning up some code. The pop-up code is not working at the present time. It should be fixed by the end of the week.

:Judge:
04-11-2003, 04:32 AM
Come back to edit this.

I have the members linked to the memberlist and linked post to the top 20 posters page, however, I would still like to know how I can get the pop up for top thread starter.

Thanks :D