vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Avatar in UserCP (https://vborg.vbsupport.ru/showthread.php?t=50619)

assassingod 03-21-2003 10:00 PM

Avatar in UserCP
 
Avatar in User CP

Author: assassingod

Description: This will show you avatar in your User CP.
The avatar is also a link to the 'Edit Avatar' page

Screenshots:
https://vborg.vbsupport.ru/attachmen...&postid=371199

Download:
https://vborg.vbsupport.ru/attachmen...&postid=371198

Tested on vB version:
2.2.9 https://vborg.vbsupport.ru/
2.3.0 https://vborg.vbsupport.ru/

If you use this hack please click the INSTALL button - thank you!

assassingod 03-22-2003 07:38 AM

ScreenShot:

PSI|Dr-X 03-22-2003 08:25 AM

Nice but not much use .. :)

assassingod 03-22-2003 08:29 AM

Oh, forgot to mention that the avatar is a link to the edit avatar page:)

Chris Gwynne 03-22-2003 08:42 AM

This could be done, template style....

assassingod 03-22-2003 09:33 AM

Yeah, but if you want the code to appear in every-page then its best to do it by hacking

X-Fan 03-22-2003 11:02 AM

Just a quick fix for the template mod to ensure individual forums' colors show up:

Code:

<br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="{ tablebordercolor}" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr id="cat">
<td bgcolor="{ categorybackcolor}" nowrap><normalfont color="{ categoryfontcolor}"><b>Avatar</b></normalfont></td>
</tr>
<tr>
<td bgcolor="{ firstaltcolor}"><smallfont>$avatar</smallfont></td>
</tr></table></td></tr></table>

Just remove the spaces after each instance of "{

assassingod 03-22-2003 11:22 AM

Thanks X-Fan. I forgot about the replacement :rolleyes:

X-Fan 03-22-2003 11:51 AM

No prob :)

Neat hack, thanks!

LOD-squa 03-22-2003 03:57 PM

I did a similar hack, just I didn't include the link or the table. Nice though ;)

Craigr 03-22-2003 06:09 PM

Installed it on my forum thanks. :D

Thanks again,
Craig

joeboo 03-22-2003 06:16 PM

Quote:

Today at 05:57 PM gohanssj2 said this in Post #10
I did a similar hack, just I didn't include the link or the table. Nice though ;)
Yeah, with my help ;)

LOD-squa 03-22-2003 06:18 PM

yup jawa man ^^;

assassingod 03-22-2003 07:00 PM

Thanks all for the feedback:D
This has been tested on 2.2.9 & 2.3.0 so I doubt any problems should occur

007 03-22-2003 07:00 PM

I'll use it. Thanks. One thing though, you forgot the "{" in

Code:

<normalfont color=" categoryfontcolor}"><b>Avatar</b></normalfont>
You should add that in the install file. :) Otherwise looks good. I added it above the buddy list though.

assassingod 03-22-2003 07:05 PM

So I have, thanks 006.
That has been fixed and the file has been updated!

N9ne 03-23-2003 12:10 AM

This is a nice userCP enhancement, I wish default vB had a better main userCP page actually, you should release all your addons for userCP like you did with templates for userCP ;).

Lethal 03-28-2003 07:08 PM

I had to put:

{
$avatarurl=getavatarurl($bbuserinfo[userid]);
$avatar='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0"></a>';
}

in member.php for this to work.

I am running 2.3.0

assassingod 03-28-2003 07:22 PM

N9ne ; Yeah, might release them all;)

Lethal ; Are you having trouble with the hack. Because I dont know what you mean :confused:

monstergamer 03-29-2003 04:16 AM

works great in 2.3

great hack :)

assassingod 03-29-2003 08:58 AM

Thank you for the feedback:D

Mathiau 04-03-2003 04:45 AM

tryihng this baby out! nice to see your avatr and not have to click a few inks :)

assassingod 04-03-2003 05:39 AM

Thank you! Don't forget to click the install button;)


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01176 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete