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.

Colon33 06-04-2002 11:03 PM

update i keep getting this error whenever i try and update a custom avatar into the custom_avatars folder.

Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/psa/home/vhosts/forums.gamer-pit.com/httpdocs/admin/user.php on line 706

bad_madman 06-05-2002 12:33 AM

Quote:

Originally posted by ixian
...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:)...
Sorry for the delay.
The update was already announced for the last weekend.
However, it comes a little later. It is available at the latest tomorrow.

bad_madman 06-05-2002 01:00 AM

Quote:

Originally posted by Colon33
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.

It can be that I haven't understood you correctly :paranoid:
But I think to understand that only you simply would like that users cannot use custom avatars. If this is so (let me know), then you should go to the vB Admin control panel. Clicking there on 'vBulletin Options' and increase the value behind 'Minimum custom posts' and/or mark behind 'Allow uploads' -> 'No'.

Colon33 06-05-2002 05:25 AM

What i really want to do is still allow the uploading of custom avatars but at the same time not allow other users to see them in the avatar listing. I tried installing the AVATAR as File hack but that didnt help them from not appearing.

I only want the basic avatars i supply to be visible in the general listing but still allow custom avatars to be used without everyone being able to select it for there use.

Check http://forums.gamer-pit.com

You might have to register, but when you choose your avatar you will see at the bottom of the list are all the custom avatars. They are seen by having names under them, I dont want those to appear what-so-ever. Any ideas?


So a hack that removes the avatars with "names" from being displayed. hehe

bad_madman 06-06-2002 12:09 AM

@Colon33
Ouh. Hmm. I understand. I don't have any idea at the moment. I have registered me already in your forum. Your page isn't attainable at the moment. I try it later once again.

Colon33 06-07-2002 04:06 AM

should be set now.

JGM007 06-08-2002 02:37 AM

Hi bad madman, I was just currious on the status of the update for the avatar hack?

And I wanted to say cheers! on the hack, it is nice to have avatars in some sort of order instead of in a huge mishmosh.

bad_madman 06-08-2002 02:57 AM

Quote:

Originally posted by JGM007
Hi bad madman, I was just currious on the status of the update for the avatar hack?

And I wanted to say cheers! on the hack, it is nice to have avatars in some sort of order instead of in a huge mishmosh.

I am actually ready.
But, this time, I would like to test the code in detail before :nervous: However, it looks good. I will upload the update in a couple of hours.

Btw - type yourself in as user of the avatar hack ('i installed this hack'). Through this you are informed automatically by mail ;)

Sorry. At the moment, "send update" function in this forum doesn't work?! I have tried to send an update (06-09-2002). I always after about 30 seconds get an empty page after click on submit... :(

Madman

bad_madman 06-08-2002 03:24 AM

Quote:

Originally posted by Colon33
...but when you choose your avatar you will see at the bottom of the list are all the custom avatars. They are seen by having names under them, I dont want those to appear what-so-ever. Any ideas?...
Are you sure that also custom avatars are in the list? Ok, you should know this better :D
Have you actually the hack 'avatars as file' still installed? This could be the reason. I install this hack and tests once.
Btw: The picture noavatar.gif is apparently missing in your avatars directory...

Madman

Colon33 06-08-2002 06:32 AM

yes i have the custom avatars as file hack installed but it made no difference. All custom avatars still appear and i have tried 3 times. I dont know whats up.

bad_madman 06-09-2002 12:03 PM

New version out: 1.25.2

Features/Updates
- Tested with vBulletin 1.2.5, 1.2.6 RC, 1.2.6 Final
- Hide single categories general
- Hide single categories on FAQ page
- Sorting order of the categories
- Add multiple avatar categories
- Avatar statistics
- Modify avatars in Admin CP: move/mass move in NEW category
- Bug fixed: The same avatars from first category show up in every category.
- Bug fixed: SQL-Error in Admin CP, if the 'minimum posts' setting isn't a number.
- Bug fixed: If avatars are moved, the number avatars isn't actualized in the current category. (MSIE cache problem)
- Bug fixed: SQL-Error, if user avatar was deleted (Admin CP -> edit user avatar).
- Bug fixed: Remove deleted avatars in User settings in SQL DB (Admin CP).
- Smaller changes in avatar_categ.php3
- The complete installation instructions, 'firststeps' and updateinfos are contained in sqltodos.php3 now. You must copy and execute only the file into your forums admin directory.

Screenshots:
Screenshots in the first post.

Download:
The latest version is in the first post of this thread.

Madman

ixian 06-09-2002 04:16 PM

What do we need to do to upgrade this from 1.25.1 ?

bad_madman 06-09-2002 04:51 PM

Quote:

Originally posted by ixian
What do we need to do to upgrade this from 1.25.1 ?
Upload the files sqltodos.php and avatar_categ.php into your forums admin directory and run sqltodos.php. Then follow the instructions on the screen.

The following changes are necessary:
- New entry in SQL data base.
- Changes at the files misc.php (for FAQ-Page), member.php, admin/user.php (for categories user administration).

JGM007 06-09-2002 08:11 PM

Hello,

I know my error is user induced :( but I am getting an error:
Parse error: parse error in /home/www/board/misosoup/member.php on line 1448
When ever someone tries to log in, log out or use the edit option in user cp

and of course line 1448 is this:

?>

That is it. I am stumped! I put my backed up copy of members.php back into place for now.

Also after editing the two files in the admin directory I have no option to gain access to the menu directly. I can get access to the menu by droping in the URL manually. I attached a picture of that to show that I must of missed something big.

At the start of the install I chose yes for all options, then step by step I did all the editing as requires in the templates, then the four *.php files, then re-loaded them up via FTP using ASCII

I am so lost :ogre: Bad madman, if you have a moment I would love some help.
Thank you!

I am guessing you might want to look at my /admin/index.php and my members/php files to see what I might have done wrong.
If you do just let me know!

bad_madman 06-09-2002 08:30 PM

Quote:

Originally posted by JGM007
...parse error in /home/www/board/misosoup/member.php on line 1448
When ever someone tries to log in, log out or use the edit option in user cp
and of course line 1448 is this:
?>
...

I think you have forgotten '}' someplace. If the error appears since installation of the avatar hacks, then still time checks the changes. Only this ('}') can actually be the reason (i hope).

bad_madman 06-09-2002 08:38 PM

Quote:

Originally posted by JGM007
.. Also after editing the two files in the admin directory I have no option to gain access to the menu directly...

...I am guessing you might want to look at my /admin/index.php and my members/php files to see what I might have done wrong.
If you do just let me know!

No problem. If there is still the problem with memper.php, then I have a look at the file.
If the avatar menues are missing in the in vB Admin CP , then index.php probably isn't changed. I also like to look at this one ;)

ixian 06-09-2002 08:45 PM

Whenever you see an error that points to the closing line of the script it's due to a missing } somewhere in the script. I'd fire up your backup member.php and re-apply the hack - you missed something.

ixian 06-09-2002 08:46 PM

Bad_madman, just wanted to let you know I ran the upgrade from 1.25.1 to 1.25.2 and it works like a charm, thanks. Looks like permissions are working too.

This is with 2.2.6

bad_madman 06-09-2002 08:58 PM

Quote:

Originally posted by ixian Bad_madman, just wanted to let you know I ran the upgrade from 1.25.1 to 1.25.2 and it works like a charm, thanks. Looks like permissions are working too.
This is with 2.2.6

Thx for the report :classic: :classic:

JGM007 06-09-2002 09:08 PM

I have attached one of two zips in this post.
Admin files are the index.php and user.php from the admin dir

JGM007 06-09-2002 09:11 PM

Here is the second of two zips ^_^
This one has the member.php and the misc.php

I thought I would let you know in the FAQ it is working as it should. And even though I needed to drop in URL in manually I am able to create avatar user groups, set permissions no problem. I remember editing all the files step by step as I went along.

Thank you for taking a look at this bad madman.

-JGM

[Please dont post full vBulletin files this is against your license agreement with Jelsoft. Post instructions on how to change the member.php file, Scott]

Reno of Shinra 06-09-2002 09:12 PM

I'm usinhg a 2.0.3

Quote:

parse error in myboard...../admin//user.php on line 578
when i try to look at a member file through the admin cp. everything else seems to be working though. For the moment i am usingm y old user.php file though, but i'dl ike to use your updated one if possible

Do you have any idea what may be wrong? Thank you

JGM007 06-09-2002 09:28 PM

I had recieved that error I think, I made a copy of my back up copy members.php and then ran the sqltodos.php, if you look at the bottom one of the options will have a link of something =page2 I manually put that into the address but used page6 It can get you right back to where you need to edit the members.php with out having to re-run the hack from scratch.
I had used wordpad the first time around and it put in an extra space somewhere where I was supposed to cut and paste. Using notepad the second time fixed it.

You can find out what line exactly the issue is at like I did by using a telnet application and telnetting into your messageboard home on the web. If you know telnet dont not bother reading on ^_^
You move to your root of your message board then type:
pico members.php You can move around in a telnet session like you move in dos. cd mydir will change to a directory. ls will list files and directories in the current directory. if you type: ls | more it will pause the listing istead of letting go all at once.
if you press control + C at any time in pico it will tell you what line you are on so you can find the troublesome line.
Using the up and down arrow you can move a little, control + V will make you jump a page
Control + X will exit pico, if it asks to save changes, say NO unless you really wanted to make a change in the file. I would reccomend backing it up first though.

bad_madman 06-09-2002 10:33 PM

Quote:

Originally posted by JGM007
Here is the second of two zips ^_^
This one has the member.php and the misc.php
...

Hui. This was fast, Scott ;)
@JGM: The files were changed not quite correctly.
I can send you the correct files by mail.

JGM007 06-09-2002 11:07 PM

Ech.... Emailing them to me will be great. Could you also in the email tell me what I messed up please?
I will PM you my email.

Thanks again!

bad_madman 06-09-2002 11:08 PM

Quote:

Originally posted by Reno of Shinra
I'm usinhg a 2.0.3...

parse error in myboard...../admin//user.php on line 578
...when i try to look at a member file through the admin cp. everything else seems to be working though. For the moment i am usingm y old user.php file though, but i'dl ike to use your updated one if possible

Unfortunately, I haven't tested it at version 2.03.
But the file user.php wasn't changed in the avatar area in the different versions (2.0.3 ... 2.2.6). I have looked.

Please, post 2-3 lines over and under the line 578 (inclusive of the line 578) here into the forum. Thx.

bad_madman 06-10-2002 10:49 PM

<font size="3">A small update. No bug fixing but a new feature:</font> :classic:
- browse custom avatars in vB Admin CP.

Instructions:
Download the install file (ZIP archive) from first post.
Replace the file avatar_categ.php in your forums admin directory with the file from the downloaded ZIP archive.
Ready. No further steps are necessary.

Madman

ixian 06-10-2002 10:58 PM

I did this. Haven't noticed any change - where do I look for this new option?

bad_madman 06-10-2002 11:02 PM

Quote:

Originally posted by ixian
I did this. Haven't noticed any change - where do I look for this new option?
Perhaps is a little hidden... :nervous:
You find it in the statistics menu. Click on 'browse' behind 'How many users use custom avatars'.

ladyfyre 06-11-2002 03:20 PM

any ideas here?

i have had several users complaining of the problem below:

I have clicked on change avatar and it takes me to: "thanks for updating your profile" and then takes me to the avatars page and i scroll down to browse and change my personal avatar, press submit modifications, and it throws me back to: "you are not logged in ".....this is so frustrating!!!


All times are GMT. The time now is 11:52 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.01757 seconds
  • Memory Usage 1,849KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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