Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[RC2] Hackless avatar on homepage Details »»
[RC2] Hackless avatar on homepage
Version: 1.00, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 01-08-2004 Last Update: Never Installs: 0
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-28-2004, 06:41 PM
Vb-Hispano's Avatar
Vb-Hispano Vb-Hispano is offline
 
Join Date: Feb 2003
Location: Barcelona Spain
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed
Reply With Quote
  #13  
Old 02-29-2004, 11:59 AM
Vb-Hispano's Avatar
Vb-Hispano Vb-Hispano is offline
 
Join Date: Feb 2003
Location: Barcelona Spain
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M1th
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" />
ADD

width="64" height="64"

Code:
<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&amp;dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" width="64" height="64" />
and with thist it will be better

64 x 64
Reply With Quote
  #14  
Old 03-09-2004, 10:35 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...

I put it in the navbar template, but now it only shows up on forumhome. It's missing from deeper pages. Could someone suggest a way to fix this?

I added freddie's config.php suggestion, too.


EDIT - fixed

Great thanks to Vb-Hispano -- His replacement string solved the problem.

Reply With Quote
  #15  
Old 03-22-2004, 06:03 PM
imported_kyrnel imported_kyrnel is offline
 
Join Date: Mar 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
How do you put htis code in config.php? Are you sure you didnt mean a different file?

I'm trying to reduce the number of queries being run for Forum Home. So I need to figure this one out. Thx
Reply With Quote
  #16  
Old 03-22-2004, 06:04 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kyrnel
How do you put htis code in config.php? Are you sure you didnt mean a different file?

I'm trying to reduce the number of queries being run for Forum Home. So I need to figure this one out. Thx
You have to (download then) edit config.php with a text editor and then re-upload the file to your server.
Reply With Quote
  #17  
Old 03-22-2004, 06:50 PM
imported_kyrnel imported_kyrnel is offline
 
Join Date: Mar 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arkham
You have to (download then) edit config.php with a text editor and then re-upload the file to your server.
I'm sorry, what I meant was that I have never seen a hack that required you to edit that specific file (config.php). I was under the impression that you should never edit it.

Also, there is no code in that file that seems similar to the code he suggested adding. It only contains the basic variables for connecting to the mysql database.

I see Define() statements in index.php and global.php but not in config.php...
Reply With Quote
  #18  
Old 03-22-2004, 07:35 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kyrnel
I'm sorry, what I meant was that I have never seen a hack that required you to edit that specific file (config.php). I was under the impression that you should never edit it.

Also, there is no code in that file that seems similar to the code he suggested adding. It only contains the basic variables for connecting to the mysql database.

I see Define() statements in index.php and global.php but not in config.php...
I know what you mean. I had no idea, so I just added add Freddie's suggestion to the bottom of config.php.
Reply With Quote
  #19  
Old 09-01-2004, 07:41 PM
LImburg LImburg is offline
 
Join Date: Aug 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Arkham
Hmmm...

I put it in the navbar template, but now it only shows up on forumhome. It's missing from deeper pages. Could someone suggest a way to fix this?

I added freddie's config.php suggestion, too.


EDIT - fixed


[/color][/size]

Fixed?
How?

I've been trying to figure this out for a good day.. but I can't figure out how to get the avatar displayed on the deeper pages.

Just like it doesn't call the function.

I put the code in the phpinclude_start template

and the html in the header template...

Can anyone help me out?
Reply With Quote
  #20  
Old 09-01-2004, 11:50 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
That's too cool.
Reply With Quote
  #21  
Old 09-06-2004, 07:19 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good point - if you have avatars as files, what is the variable to use for the avatar to show up?
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 07:16 PM.


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.07093 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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