vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Multiple Avatar? (https://vborg.vbsupport.ru/showthread.php?t=45379)

jetalomar 11-04-2002 01:20 PM

Multiple Avatar?
 
I'm looking to add a second Avatar to the post. I'm a php Programmer and think i can do it. Which I the files that i have to edit and which are the template that I have to edit also. If you are willing to help me you are more than welcomed also if this is already made feel free to give me the link.

jetalomar 11-04-2002 03:09 PM

anybody in here?

jetalomar 11-05-2002 11:53 AM

I guess nobody will help me on this one.

jetalomar 11-05-2002 01:49 PM

Since nobody replied, I will start it by myself and post the best later on

Logician 11-05-2002 09:49 PM

As for template modifications, you could search keyword "avatar" in the templates via Admin CP/Templates/Search to see which templates you need to edit. However to save you from a lot of editing I would suggest using the default variable for your multi-avatars and instead devise a method that would make it hold both avatars. (Hacking function getavatarurl in the admin/functions.php would be a good start) This will save you modifying a lot of templates.

As for scripts:
register.php => registering users assigned avatars here
member.php => for existing users.
admin/user.php => admin setting avatars for users.

are the firsts I can think of. If you dont apply the method I suggested above you need to change many other scripts which displays avatars for some reason (eg. admin/functions.php getpostbit template for displaying avatars in postbit etc.). To compile an exact list just search the keyword "avatar" in vb scripts.

What you intended to do is not an easy hack. Good luck..

PS. I'm sure u also know it but I'll say anyway: You can set vb to accept larger avatars and you can merge more than 1 graphics into one gif/jpeg with transparent bg and use it as your avatar which would give the same effect of having multi-avatars. Easiest way.. ;)


All times are GMT. The time now is 01:42 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.00912 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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