Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Details »»

Version: , by Shimsee (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-06-2001 Last Update: Never Installs: 0
 
No support by the author.

Hello,

I installed the Avatar hack and all works fine(great hack btw, Awesome).

But I got 1 little problem:

When anybody tries to register I get this message:

Warning: Supplied argument is not a valid Directory resource in /www/htdocs/gamer/forums/member.php on line 211

Anybody knows what this means?

I red a post by Freddie about an update(register Netscape users), is this the same problem?

Thanks,

Shims

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-06-2001, 12:57 PM
Guest
 
Posts: n/a
Default

I found 1 error:

I forgot to add the value to the second set of braces. So I did that.

People can now register again() but the error is still diplayed on the screen.

Warning: Supplied argument is not a valid Directory resource in /www/htdocs/gamer/forums/member.php on line 211

Everything else seems to work fine, anyone got an idea?

Shims
Reply With Quote
  #3  
Old 02-06-2001, 01:55 PM
Guest
 
Posts: n/a
Default

What is on line 211?
Reply With Quote
  #4  
Old 02-06-2001, 02:12 PM
Guest
 
Posts: n/a
Default

I had to go back and read and make the changes to all the bugs in the ziped 2.0 version.i noticed the download didnt have all of the fixes
heres the thread where all the fixes are
http://www.vbulletin.com/forum/showt...ghlight=avatar
Reply With Quote
  #5  
Old 02-06-2001, 02:12 PM
Guest
 
Posts: n/a
Default

This part of the hack in on line 211:

// Avatar Hack Code *********************************








$iconsperline = $aviconsperline;
$startpage = 1;
$userpost = 0;

$linecount = 0;
$checkcount = 0;
$avatardir = "images/avatars";
$dirhandle = opendir($avatardir);

chdir($avatardir);
// We have to chdir to the directory that our directory is in
// because is_dir() doesn't work properly if we don't
while (($dir = readdir($dirhandle)) != "")
{
if (is_dir($dir) && $dir != ".." && $dir != ".")
{

$dir_int = intval($dir);
$dir_str = strval($dir_int);
if (($userpost >= $dir_int)&&($dir_str == $dir))
{
$filehandle = opendir($dir);
while (($file = readdir($filehandle)) != "")
{
$filelen = strlen($file);
$fileext = "bad";
if ($filelen >= 5)
{
$fileext = substr($file,$filelen-4,$filelen-1);
$fileext = strtolower($fileext);
if ($fileext==".gif"||$fileext==".bmp"||$fileext==".j pg"||$fileext=="jpeg")
{
$fileext = "ok";
}
else
{
$fileext = "bad";
}
}
if ($fileext == "ok")
{
if ($checkcount == 0)
{
$checked = "checked";
}
else
{
unset($checked);
}
$checkcount++;
$iconpath = "images/avatars/" . $dir . "/" . $file;
$iconid = $iconpath;
if ($linecount == $iconsperline)
{
$avatarbits.="<br>\n";
$linecount = 0;
}
$linecount++;
eval("\$avatarbits.= \"".gettemplate("avatarbit")."\";");
}
}
}
}
}
closedir($filehandle);
closedir($dirhandle);
if ($avUserNoImage == "" || (isset($avUserNoImage))==0)
{
$avUserNoImage = "0";
echo ("Please set <b>avUserNoImage</b> in the options<br>");
}
if ($avUserImage == "" || (isset($avUserImage))==0)
{
$avUserImage = "0";
echo ("Please set <b>avUserImage</b> in the options<br>");
}
else
{
if ($avUserImageSize == "" || (isset($avUserImageSize))==0)
{
$avUserImageSize = 40;
echo ("Please set <b>avUserImageSize</b> in the options<br>");
}
if ($avUserImagePosts == "" || (isset($avUserImagePosts))==0)
{
$avUserImagePosts = 200;
echo ("Please set <b>avUserImagePosts</b> in the options<br>");
}
}
if ($avUserNoImage == "1")
{
eval ("\$avatarbits .=\"".gettemplate("avatar_noimage")."\";");
}
if ($avUserImage == "1") // Allow Custom Avatar
{
if ($avUserImagePosts == 0)
{
eval ("\$avatarbits .=\"".gettemplate("avatar_custom")."\";");
}
}
eval("\$avatar_profile.= \"".gettemplate("avatar_profile")."\";");




// End Avatar

Is there something that triggers this error?
The hack and my board seems to work fine, but that (error)line is still there

Shims
Reply With Quote
  #6  
Old 02-06-2001, 02:16 PM
Guest
 
Posts: n/a
Default

I had to go back and read and make the changes to all the bugs in the ziped 2.0 version.i noticed the download didnt have all of the fixes
heres the thread where all the fixes are
http://www.vbulletin.com/forum/showt...ghlight=avatar
Reply With Quote
  #7  
Old 02-06-2001, 02:17 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by upperking
I had to go back and read and make the changes to all the bugs in the ziped 2.0 version.i noticed the download didnt have all of the fixes
heres the thread where all the fixes are
http://www.vbulletin.com/forum/show...ighlight=avatar
There are no "bugs" in v2.0 .. If you are able to follow instructions then it will work properly for you. Did you create a directory labeled images/avatars/0 and place at least one image in it?

Does it say it was created for v1.1.5? No so if you are trying to use it with 1.1.5 than perhaps you need to make the changes that are listed in that thread.
Reply With Quote
  #8  
Old 02-06-2001, 02:21 PM
Guest
 
Posts: n/a
Default

i did find when i read some of the of posts that there wasnt the same changes in the zip for the fixes
i read every post in that thread..and edited the changes

example
if (($avcuston=="")&&($iconpath=="custom_avatar"))

"$avcustom==" shouldbe

Stay at the same Two Lines. Add this before them
~~~~~~~~~~
//Begin Avatar
if (($avcustom != "")&&($iconpath=="custom_avatar"))
{
if ($avUserImage == "1") // Allow Custom Avatar
{
if ($avUserImagePosts == 0)
{

$iconpath = $avcustom;
$avPos = strtolower($iconpath);
$avPos = substr($avPos,0,7);
if ($avPos != "http://")
{
$iconpath = "http://" . $iconpath;
}
}
}
}
if (($avcuston=="")&&($iconpath=="custom_avatar"))
{
$iconpath = "";
}
if ($iconpath == "0")
{
$iconpath = "";
}
// End Avatar
~~~~~~~~~~
Reply With Quote
  #9  
Old 02-06-2001, 02:31 PM
Guest
 
Posts: n/a
Default

THAT'S IT, THAT'S IT


Did you create a directory labeled images/avatars/0 and place at least one image in it?

Thanks A lot Freddie and Upperking

Shims
Reply With Quote
  #10  
Old 03-02-2001, 01:52 PM
Guest
 
Posts: n/a
Default

Hello i have vbulletin 1.1.5 and i want a avatar hack but i don't know a site where i can download him.

Could somebody help my with my problem?

greetz
MrMaster
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04535 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete