vb.org Archive

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

Stryker 11-12-2001 11:13 PM

Surely someone must know? This is really starting to bug me now (did you like the pun guys? Sorry I couldn't resist). :stupid:

Does anyone know how I'd go about removing the avatar selection dropdown menu from register.php? I've got a feeling that will solve the problem.

DarkReaper 11-13-2001 02:57 AM

What's this do...?

Littlebit 11-17-2001 05:55 AM

Firefly,
I just realized that something else needs modified. In the get info for Avatars, it has the taken avatars listed as available.
Will you help with this part too?

Admin 11-17-2001 06:21 AM

What's the "get info for avatars"? :confused:

Littlebit 11-17-2001 11:44 AM

Oops, I meant more info. Its usercp--------->edit options-------->more info at the bottom Avatar section.

Stryker 11-17-2001 01:10 PM

My problem has been solved now thanks to Firefly, but I was just thinking, wouldn't it be better if these hacks were put in a read only forum or on a separate non-dynamic page so they could be easily updated and people would know when they've been modified? As it is it's a bit confusing going through old posts and reading through all the problems, updates and modifications. It's also not very clear which hacks will work with which board version.

Don't mean to whinge, just constructive criticism :)

Admin 11-17-2001 02:24 PM

In misc.php, replace this:
Code:

  $minposts=0;
  $avatarbits="";

  $avatars=$DB_site->query("SELECT title,minimumposts,avatarpath FROM avatar ORDER BY minimumposts,title");

with this:
Code:

  $minposts=0;
  $avatarbits="";

  $takenids="";
  $avatarids=$DB_site->query("SELECT avatarid FROM user");
  while ($avatarid=$DB_site->fetch_array($avatarids)) {
    $takenids.=",$avatarid[avatarid]";
  }

  $avatars=$DB_site->query("SELECT title,minimumposts,avatarpath FROM avatar WHERE avatarid NOT IN (0$takenids) ORDER BY minimumposts,title");


Littlebit 11-22-2001 01:36 PM

Worked like a charm. Thank you Firefly!

Littlebit 11-22-2001 02:37 PM

Stryker, I agree ...also, it might make it easier to re-do all the hacks after updating the board by always having your list of installed hacks and referring to them in a read only forum with last updated and version info clear...so novice people like me don't try to piece together bits of old and new hacks and mess everything up!

DarkReaper 11-23-2001 05:14 PM

Quote:

Originally posted by DarkReaper
What's this do...?
:confused:


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.01031 seconds
  • Memory Usage 1,730KB
  • 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
  • (3)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