Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2002, 07:37 AM
drownedspirit drownedspirit is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Clickable usernames and avatars

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
Reply With Quote
  #2  
Old 11-09-2002, 07:45 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No hacks needet!

Open Postbit Template:
change:
Code:
<normalfont><b>$post[username]</b></normalfont>
to:

Code:
<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:

Code:
$post[avatar]
with:

Code:
<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.
Reply With Quote
  #3  
Old 11-09-2002, 07:53 AM
drownedspirit drownedspirit is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks dude! great help.

one more thing, how about "find more posts" of the person? like here in the magnifying glass?
Reply With Quote
  #4  
Old 11-09-2002, 07:57 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just use this Link:

Code:
[<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.
Reply With Quote
  #5  
Old 11-09-2002, 08:01 AM
drownedspirit drownedspirit is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-09-2002, 08:07 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Test this:

Code:
<a href="member.php?s=$session[sessionhash]&action=editavatar" target="_blank" class="name" id="name">$post[avatar]</a>
Not shure about this one....
Reply With Quote
  #7  
Old 11-09-2002, 08:29 AM
drownedspirit drownedspirit is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 11-09-2002, 08:33 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope ill get you right, ...
you want a "Alt-Tag" for the Avatar-Link?

Ok, ...

change:

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

Code:
<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>
Reply With Quote
  #9  
Old 11-09-2002, 08:36 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add borders around the avatar?
hmm, ok!

Go to Postbit Avatar:

change:

Code:
<img src="$avatarurl" border="0" alt="">
to:

Code:
<img src="$avatarurl" border="1" alt="">
Reply With Quote
  #10  
Old 11-09-2002, 08:46 AM
drownedspirit drownedspirit is offline
 
Join Date: Oct 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the avatar alt-tag doesn't work though but its ok. thanks for all the help dude! til my next questions. lol. thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07697 seconds
  • Memory Usage 2,259KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (10)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete