vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [RC2] Hackless avatar on homepage (https://vborg.vbsupport.ru/showthread.php?t=88278)

Brad 01-08-2004 10:00 PM

[RC2] Hackless avatar on homepage
 
This is a update of my template modification for vB 2, with this modification installed your avatar will be displayed on index.php. This can be useful for welcome panels and other similar template modifications.

Yes im aware Tungsten as done for for vBulletin 3 beta, and this is no reflection on him but his code dose alot of database work to pull the avatar, mine will only run one query.

Credits:
Chen - vB 2 hack author and idea
Tungsten - updated this modification to vB 3 beta

O and me ;)

albibak 01-09-2004 10:08 AM

I've installed it, and it works, good :)

imported_Blackbeard 01-09-2004 05:16 PM

Any chance of a screenie in vb3

Zachery 01-12-2004 08:26 AM

might also want to make that


if (THIS_SCRIPT == 'index' AND $bbuserinfo[userid] != 0)

that way unregisted users wont run into it :)

Freddie Bingham 01-12-2004 01:43 PM

If you put this in config.php, you can do this with no added queries:

define('AVATAR_ON_NAVBAR', 1);

M1th 01-14-2004 08:02 PM

Quote:

Originally Posted by freddie
If you put this in config.php, you can do this with no added queries:

define('AVATAR_ON_NAVBAR', 1);


Hmm, how would you get the avatar to show up?

I've tried $userinfo[avatarurl] and $bbuserinfo[avatarurl], non seem to work for me. :/

M1th 01-15-2004 01:56 PM

Actually, nevermind.. figured it out (thanks to Kura):


Code:

<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" />

gmarik 02-03-2004 02:28 PM

good simple things

Brad 02-23-2004 08:55 PM

Quote:

Originally Posted by Faranth
might also want to make that


if (THIS_SCRIPT == 'index' AND $bbuserinfo[userid] != 0)

that way unregisted users wont run into it :)

This takes care of that:

PHP Code:

    if ($bbuserinfo['userid'])
    { 


Dan 02-23-2004 09:09 PM

Interesting mod I'm probably going to use this when I make a new welcome panel for my sites


All times are GMT. The time now is 11:21 AM.

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.01080 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete