vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Avatar Hack v0.8 released (https://vborg.vbsupport.ru/showthread.php?t=919)

06-06-2000 02:53 AM

Hi all

OK, at long last, I think this is ready for everyone else to poke at :)

To make things easier, I've put the instructions up on my site, using a program someone gave me a long time ago that's designed specifically for posting hacks with. At one point I thought about doing a PHP version of it, I guess I have motivation now :)

This release is still not completely clean. There are a few things not yet coded that I want to get in before it makes it to 1.0. the to-do list is:
  • Allow Private Avatars
  • Allow usergroup-wide Avatars (like the custom usertitles)
  • Clean up the template work for when Avatar images isn't running. Right now, if $avatarshow is off, the templates will display the start of the selector, just with no images. This is mostly because the way the table row formatting gets tweaked adding in the selector, it's easier to just put the blank there.

As always, use at your own risk. It's recommended you back up your vB PHP files before implementing this hack. The database modifications won't affect anything if you back the hack out.

Anyway, you can find the instructions for applying the hack at http://www.moonwolf.net/cgi-bin/vb_m...structions.cgi

To see it in operation, I have a version of it running at http://www.underlight.com/VBB

Enjoy!

Kath

[Edited by Moonwolf on 06-06-2000 at 12:04 PM]

06-06-2000 02:59 AM

Hmm, was a problem with the [url] tags ... all better now.

Kath

[Edited by Moonwolf on 06-06-2000 at 12:05 PM]

06-06-2000 03:11 AM

OK< I found one bug.

if you edit a user's Avatar through the admin panel selector, it enters the avatarsid # into the user's Avatar record, rather than the path.

I'll work a fix. In the meantime, this won't affect users selecting their own Avatar from the register and profile screens, only if you admin panel edit them.

Kath

06-06-2000 03:23 AM

Umm.. I got a 403 error when I copied the URL from the instructions and pasted them into lynx.

Shri

06-06-2000 03:27 AM

Fixed, sorry about that

Note to self: Don't write instructions at 4am in the morning after pulling an all-nighter :P

Kath

06-06-2000 03:30 AM

*grin* moved up one notch from a 403 error to a 404 (file not found) :)

06-06-2000 03:36 AM

Did you reload instructions.cgi to get the new URL?

Kath

06-06-2000 03:38 AM

Nice hack :)

I like this idea. I just wish it could upload with restrictions to size and weight, but I think that would require an extra table and profile field.

I think it could be done without that, though, if the icons were referenced from an upload directory and forced to be named username.gif

I ramble...

nice hack :)

06-06-2000 03:55 AM

Applied the hack .. not a problem.

Now, I get a javascript error when I go to modify my profile on member.php

Line 10
Char 1
Error: 'document.dynamicselector.dynamicselector2' is not an object

Any ideas?

06-06-2000 04:11 AM

OK, that one is definately a bug on my part :)

In all of the selector templates, where it says
Code:

<FORM ACTION=
Replace with:
Code:

<FORM name=preferences ACTION=
Then edit avatar.js, and change
Code:

document.dynamicselector.dynamicselector2
To:
Code:

document.preferences.avatar
My fault, I uploaded the wrong .js file, sorry :(

I've changed instructions.cgi and uploaded a new .zip file with the correct avatar.js file in it.

The admin editing problem has me stumped though. The syntax should br bringing up the avpath, but it's not, it's bringing up the avatarsid ...

I'll keep battling it.

Sorry I'm a klutz with documentation :(

Kath

[Edited by Moonwolf on 06-06-2000 at 01:22 PM]


All times are GMT. The time now is 10:39 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.01042 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_code_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