PDA

View Full Version : Clickable usernames and avatars


drownedspirit
11-09-2002, 07:37 AM
hey guys,

new to these stuff, i just wanna ask, how do i make the username (on every post) clickable? When I click the username, it will lead me to the profile of the user.

also the avatars clickable, whereas if i click it, i will directed to the avatars page where i can change my avatar.

are there hacks for those? or just additional codes? also does anyone know how to put that magnifying glass beside the username? and have the last few posts of the person?

thanks in advance

Kars10
11-09-2002, 07:45 AM
No hacks needet!
;)
Open Postbit Template:
change:

<normalfont><b>$post[username]</b></normalfont>


to:


<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]" target="_blank" class="name" id="name"><normalfont><b>$post[username]</b></normalfont></a>


Thats for the usernames.


The clickable avatars must have the same Link as the link to the usernames.

Just replace:


$post[avatar]


with:



<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]" target="_blank" class="name" id="name">$post[avatar]</a>



Not testet, but should work.

drownedspirit
11-09-2002, 07:53 AM
thanks dude! great help.

one more thing, how about "find more posts" of the person? like here in the magnifying glass?

Kars10
11-09-2002, 07:57 AM
Just use this Link:


[<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="images/postbit_find.gif" border="0" alt="Find more posts by $userinfo[username]"></a>]


Just put a Maginfying Glass image in youre "images-folder" and rename it as "postbit_find.gif".

Thats it. :)

drownedspirit
11-09-2002, 08:01 AM
about the avatar, how can i make it clickable to change my avatar? not go to the profile though. like when i click on the avatar, it goes to the avatar page and i can change right there and then

thanks dude.

Kars10
11-09-2002, 08:07 AM
Test this:

<a href="member.php?s=$session[sessionhash]&action=editavatar" target="_blank" class="name" id="name">$post[avatar]</a>


Not shure about this one....:(

drownedspirit
11-09-2002, 08:29 AM
Thanks dude! It works, I just changed the link. But it works.

also, i've tried adding a tag "Click on avatar to change it" it doesn't work.. how do i do it? and add borders?

Kars10
11-09-2002, 08:33 AM
I hope ill get you right, ...
you want a "Alt-Tag" for the Avatar-Link?

Ok, ...

change:


<a href="member.php?s=$session[sessionhash]&action=editavatar" target="_blank" class="name" id="name">$post[avatar]</a>

to:


<a href="member.php?s=$session[sessionhash]&action=editavatar" target="_blank" class="name" id="name" alt="Click on avatar to change it">$post[avatar]</a>

Kars10
11-09-2002, 08:36 AM
add borders around the avatar?
hmm, ok! ;)

Go to Postbit Avatar:

change:


<img src="$avatarurl" border="0" alt="">

to:


<img src="$avatarurl" border="1" alt="">

drownedspirit
11-09-2002, 08:46 AM
the avatar alt-tag doesn't work though but its ok. thanks for all the help dude! til my next questions. lol. thanks

Kars10
11-09-2002, 08:51 AM
ok. Try this here in postbit avatar.

<img src="$avatarurl" border="1" alt="Here youre alt-tag">

Just a last try... ;)

drownedspirit
11-09-2002, 08:52 AM
thanks, one last though, how can i make the text glow? like that here when we are online.. ;)

Kars10
11-09-2002, 09:13 AM
Use this:

<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$post[userid]" target="_blank" class="name" id="name"><normalfont><font style="width:100%; filter:Glow(color=red, strength=2)"><b>$post[username]</b></font></normalfont></a>

Just change the variables in the tag to your wishes (red, or strength)..

drownedspirit
11-10-2002, 05:16 AM
thanks a lot dude! appreciate everything..

Jakor Sevel
10-26-2003, 02:01 AM
i was wondering is it possible to take away the underline from the username?

LPTV
10-26-2003, 02:08 AM
Use for Vbb 3 ? ok? :O