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 Hack: Categories & Usergroups (https://vborg.vbsupport.ru/showthread.php?t=24997)

Velocd 05-31-2002 02:45 AM

Rather odd problem. I'm on Version 2.2.6, and for some reason its giving me an error in the registration page when you first enter it. I'm not sure where the error can be found, but its defiantly linked to this hack. I have Microsoft Visual C++ installed that included a script debugging program that picked this error up, so maybe if you don't have MVC++ you may not even get the error on 2.2.6, but it's there I'm sure. Anyway, at first you can hit "no" to the alert, but then when you try to view your avatar on the forum homepage it does not show (in the welcome panel). From there I have noticed the users avatar does not show at all to themselves, but to others it does....

See attachment for picture of error, I hope you can fix it :D

edit:
Now that I overlook the error, a "runtime" error is usually cause from Javascript, is it not? That is the only other language used on my forum other than PHP/MySQL and HTML (which generally does not create those kind of errors).

bad_madman 05-31-2002 06:42 AM

You have a 2nd 'form' (<form.......>) on your registration page. Standard is ONE 'form'. You should change the JavaScript code in the Template registercoppa and registeradult.

Search in this templates for:
Code:

document.images.avatarpic.src = document.forms[0].avatarsel[document.forms[0].avatarsel.selectedIndex].value;
Replace it with:
Code:

document.images.avatarpic.src = document.forms[1].avatarsel[document.forms[1].avatarsel.selectedIndex].value;
This should work...

bad_madman 05-31-2002 07:58 PM

Known bug in Hack Version 1.25.1: :(
In User CP when anyone changes the avatar, when the pick a category it shows the same avatars from the first category. Thx @Genie for the informations!

I will publish this weekend an update! As provisional solution the problem can be removed as follows :nervous::
Go to the admin area (vB Control panel). Section "Avatars" -> "Options". Mark "No" behind "Avatar Category Permissions".

The update 1.25.2 will contain also new functions:
- Sorting order of the categories alterable.
- More options in the Avatar-Admin area.
- Extensive statistics to the Avatars/Categories.
- Bug Fixing in avatar_categ.php.
- and more... :bunny:

Madman

Velocd 06-01-2002 01:20 AM

You're fix in post #242 worked good getting rid of the error message in the registration page, but for somereason when any new user registers their avatar does not display on the forumhome page (in the welcome panel). I'm not sure why this is, or if its linked to avatar category hack, but I didn't have this problem before I installed the hack on 2.2.6

bad_madman 06-01-2002 12:17 PM

Hmm. I hadn't installed the "Welcome Panel Hack" yet.
But I will install the hack once. Perhaps I find what.
You have installed the final version of the "Welcome Panel Hack"?

Madman

Velocd 06-01-2002 01:39 PM

Yup ;)

I'm not sure why its not working but I'll troubleshoot more later today

bad_madman 06-02-2002 10:46 PM

Quote:

Originally posted by Velocd
Yup ;)

I'm not sure why its not working but I'll troubleshoot more later today

It works for me. I have the 'welcome panel hack' (http://www.vbulletin.org/hacks/index...hack&hackid=21) on vB 2.25 installed.
Registration works faultlessly. The Avatar is then also shown on the home page. If no user is logged in, then the guest avatar is shown. If the user hasn't selected any avatar, then the 'no avatar selected' picture is shown.
It must have any other reason with you that it doesn't work. I wanted to register me in your forum but you just install the Hacks newly ;)

Colon33 06-04-2002 08:46 PM

How can i make custom avatars not appear in teh general listing of avatars when someone wants to change there avatar. I dont want people having the ability to select custom avatars for themselves. All the features in this hack is getting me lost. So far i only see changes made in the admin area of the forum. Is there anything that goes into the user control panel or no?

But the most important is hiding custom avatars from the general public viewing.

ixian 06-04-2002 09:45 PM

If you want to see what this hack should look like, go over and register at my forums. I have it working as intended, with CSS navigation to boot.

All you have to do to hide custom avatars is assign them to a specific catagory and then set that catagory's permissions for use only by specific groups (such as admins or mods). You can also assign post counts a user must have in order to use certain avatars, although they will still show up - users just won't be able to use them.

I used to have a catagory called Admins which only admins and mods could see in the UserCP. It's currently disabled, because 1.25.1 of this hack has a bug when use permissions is activated. Madman has indicated this is fixed the the new version, which I am patiently awaiting:)

Colon33 06-04-2002 10:57 PM

please check out

http://forums.gamer-pit.com

am i doing something wrong people can still see all the avatars the ones with names underneath should be hidden.


All times are GMT. The time now is 11:48 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.01714 seconds
  • Memory Usage 1,746KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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