PDA

View Full Version : User Info


Dimi
07-10-2002, 03:48 AM
Don't know if this is an easy one or not but here it goes.

How could you make the user info pop up in a sort of popup box in say a window of 500 x 350

I thought that would be kind of interesting.

corsacrazy
07-10-2002, 06:58 AM
On page load or when someone clicks it? and why? You just nedd a simple script and some html.

mashby
07-10-2002, 11:59 AM
I don't know if this is his question, but I'd like to have my user profile pages as a pop up as well. I know HOW to make it a pop-up, but in what template would I alter it so that it would work?

Trust
07-10-2002, 01:27 PM
I think in the template for the profile style etc..change the html and php etc in a popup code...

If you press on usercp or whatever maybe you get an pop up..

I'm not very good in html :) I always use dreamweaver :p

Greetz,

Trust

mashby
07-10-2002, 10:36 PM
Doh! Yeah, and it can be changed in the postbit too. Can't believe I didn't think of that!

So, Dimi, to answer your question, do the following:

1. Create the proper link for the pop-up. If you're new to pop-ups you can try this web based tool [link (http://www.ahfb2000.com/popupmakertool.php)]

2. Place the new link in your postbit template.

Hope that helps!

Dimi
07-11-2002, 08:55 AM
Hmm yeah i also know how to make popups but that wasn't my real problem, the reason is that there isn't a real link.

what would the replacement url be for this?

$post[profile]

It should be something like this

<A HREF="javascript:popup('member.php3?=')">
<img src="{imagesfolder}/profile.gif">
</A>

Anyone know how to complete the url string?

mashby
07-11-2002, 10:35 AM
I've been working on documenting this mod, but my javascript test wasn't working. :(

To answer your question, the <a href> should be the following: <a href="member.php?s=&action=getinfo&userid=$userinfo[userid]">

Trust
07-11-2002, 10:50 AM
That's the right thing...my thing was an idea...I dont know very much things about vb postsbits and templates....:p

Dimi
07-11-2002, 11:34 AM
Got it after a bit h***els, and if you do this, don't forget
to set border=0 on your image

:D

That popup creation site didn't work so i tried a diffirent one, worked out very well.

Greez,

Dimi