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)
-   -   Custom Avatars as Files (https://vborg.vbsupport.ru/showthread.php?t=28337)

atrl 12-02-2001 10:13 PM

Umm how do i fix that error Cocomiel

Cocomiel 12-02-2001 10:20 PM

Please read the instructions, on Unix Systems you must chmod 777 the files, if the script says file xxx not modified maybe is because the file is already modified so you dont need to run it again. If you continue having problemas please post your php version/server platform etc

ladyfyre 12-03-2001 12:44 AM

Ok....so maybe i am just dense here...but:

when i click the link to download install_fileavatar.php, it instead gives me a file called "attachment.php", which is an unreadable file. am i doing something wrong here?

Cocomiel 12-03-2001 12:55 AM

Quote:

Originally posted by ladyfyre
Ok....so maybe i am just dense here...but:

when i click the link to download install_fileavatar.php, it instead gives me a file called "attachment.php", which is an unreadable file. am i doing something wrong here?

In Fact, its unreadable. but can be executed anyway.
Its a compiled PHP file.

derfelix 12-03-2001 07:49 PM

well i dont want to complicate things.. but when i execute the php file i get:
Parse error: parse error in c:\apache\htdocs\install\install_fileavatar.php on line 13

wouldn't it be much easier to post the code...???
anyway if it integrates in vbull, it will open up.. or not???

Streicher 12-15-2001 04:25 PM

What happens with the custom avatar of a user, when I delete the user? Is the avatar file also removed?

lonely 12-25-2001 08:10 AM

This hack worked beautifully!

Thank you so much!!

Cocomiel 12-25-2001 06:06 PM

;)

bira 12-25-2001 07:28 PM

Cocomiel you haven't answered my question.

How is this hack different to Kier's hack? Why is there a need for a second hack if one already exists?

Cocomiel 12-25-2001 08:03 PM

Bira, don't hesitate me, Kier's hack was for 2.0.0 or previous. Mine is for 2.2.1 and has different features ok ?
Although you and vb.org try to fool people putting 2.2.1 on the kier hack post (pumping the thread also) and later posting instructions with code from my hack trying to make it work with the newest versions of the VB

Please stop fooling people.

As consecuence of actitudes like yours, I have no posted all the other hacks i wrote for my VB. And im sure other people is doing the same.

bira 12-25-2001 08:35 PM

Cocomiel, I don't understand your English I'm afraid.

I ask you a very simple question. You ignored it the first time, and now you attack me the second time.

I asked you what is different in your hack from Kier's hack.

If it's the same and you simply updated it for 2.2.1 (which, by the way, the original hack works fine on 2.2.1 as well) - then at the very least you should have given credit to Kier.

If it's different, then please tell us how. It will give people the option to know that this one has other features and they can choose.

Either way, don't be rude. I am trying to help here -- there's no point in people posting duplicate hacks of hacks that already exist, or we'd all be losing from it.

mvigod 01-23-2002 09:03 PM

Quote:

Originally posted by Cocomiel
For those who dont want to use the installer.
Don't understand...at the top of this install.txt file it says"



RUN INSTALL SCRIPT : Upload install_fileavatar.php to your ADMIN directory and open it in your browser.


I thought this was for those who don't want to use the installer? What am I missing here? Also, I don't like running any installer which modifies the database unless I can see the code to see what it's doing. If something does go wrong with the database I have no way of knowing what the installer could have done to cause it since the source code is hidden.

I also don't want to have to recompile my php to use the zend optimizer as I'm using APC cache and the compatibility is unknown plus you get better speed from APC then you will from the Zend Optimizer.

Looks like a great hack and really would like to try it out though. Any chance of posting it not encoded?

Marc

Kier 01-24-2002 04:14 AM

Hmm... looks familiar :?:

Anyway, the reason why my Avatars as Files hack hasn't been updated is that a modified version of it is now in vBulletin 3.

Cocomiel 01-24-2002 04:48 AM

Good !
so, when it will be ready :rolleyes: ?

Kier 01-24-2002 04:57 AM

When it's finished. :rolleyes:

Cocomiel 01-24-2002 05:14 AM

Ok, so people still needs the avatars as files hack.

Added a mention to your hack here

Can you send me a PM with the aprox. release date ? :D

Please

Kier 01-24-2002 05:18 AM

No need for a PM. vBulletin 3 is still several months away. There are far too many cool things to put into it yet.

Cocomiel 01-24-2002 05:24 AM

Also, i found VB 2.2.1 vulnerable to a DoS attack, but im not sure if its a mySQL or PHP/Apache Issue, i've tested it on several configurations and it was vulnerable in every one!

I think i should post this on vb.com bugs forums, or maybe you are already alerted about this?

I will delete this posts if you want

Kier 01-24-2002 06:54 AM

Go ahead and email me if you think it's a vBulletin issue.

Cocomiel 01-24-2002 09:32 AM

Updated first post, download it again

Quote:

Originally posted by mvigod


Don't understand...at the top of this install.txt file it says"



RUN INSTALL SCRIPT : Upload install_fileavatar.php to your ADMIN directory and open it in your browser.


I thought this was for those who don't want to use the installer? What am I missing here? Also, I don't like running any installer which modifies the database unless I can see the code to see what it's doing. If something does go wrong with the database I have no way of knowing what the installer could have done to cause it since the source code is hidden.

I also don't want to have to recompile my php to use the zend optimizer as I'm using APC cache and the compatibility is unknown plus you get better speed from APC then you will from the Zend Optimizer.

Looks like a great hack and really would like to try it out though. Any chance of posting it not encoded?

Marc


mvigod 01-24-2002 01:02 PM

Cocomiel,

Thanks for the reupload and prompt reply....code looks good and looking forward to installing it!

Great job by the way!

marc

Jawelin 01-25-2002 04:43 PM

As I have a very hacked 2.2.1 board, the installer is able to modify only 2 files.
It could be possible to have a txt procedure ?

Thanks a lot

Cocomiel 01-25-2002 05:28 PM

If the installer is unable to modify the files, please edit the files manually following the attached instructions

Jawelin 01-25-2002 05:51 PM

Thanks a lot.
Very appreciated such a fast and solving answer.

I'll do it by hand asap.
Bye

Jawelin 01-27-2002 10:27 AM

Sorry, but I think your .txt procedure just attached is old or inaccurate. :dead:

For instance, the replacement
PHP Code:

        if ($usefileavatar$avatarurl="images/avatars/custom/avatar$post[userid]_$post[avatarrevision].gif"

is absolutely a static link much different from the one explained many posts above here.

:confused:
How could it work in 'abs' ?
Thanks.

Jawelin 01-27-2002 11:56 AM

Also in member.php, you suggest to replace:
PHP Code:

        if ($avexists=$DB_site->query_first("SELECT userid FROM customavatar WHERE userid=$bbuserinfo[userid]")) {
          
$DB_site->query("UPDATE customavatar SET filename='".addslashes($avatarfile_name)."',dateline='".time()."',avatardata='".addslashes($filestuff)."' WHERE userid=$bbuserinfo[userid]");
        } else {
          
$DB_site->query("INSERT INTO customavatar (userid,avatardata,dateline,filename) VALUES ($bbuserinfo[userid],'".addslashes($filestuff)."','".time()."','".addslashes($avatarfile_name)."')");
        } 

with:
PHP Code:

        if ($avexists=$DB_site->query_first("SELECT userid FROM customavatar WHERE userid=$bbuserinfo[userid]"))
          
$DB_site->query("UPDATE customavatar SET avatardata='".addslashes($filestuff)."' WHERE userid=$bbuserinfo[userid]");
        else
          
$DB_site->query("INSERT INTO customavatar (userid,avatardata) VALUES ($bbuserinfo[userid],'".addslashes($filestuff)."')"); 

It seems absolutely inaccurate, as you say to replace a different piece of code (than Kier's/Bira's VB 2.0.x version), because in 2.2.1 that's the actual code, WITH THE SAME piece they specified... :confused:

I got many many more confused !


Is it possible after SIX MONTHS of challenge, none of you gave a DECENT version of this hack ?

Sorry for my phrases, but I think it isn't acceptable from coder or people they want to help some other.

Thanks.

Jawelin 01-30-2002 04:11 PM

^BUMP^

newvbuser 01-30-2002 06:07 PM

Hi what's the performance issue prob if I use the default method which stores custom avatars into the database?? I have about 40 users who would want custom avatars.

c-pr0mpt 02-02-2002 10:34 AM

How do I uninstall the things this hack did? I did the install and the editing all errored, and when i went bck to the board the avatars were all still hosted via database.

newvbuser 02-04-2002 07:43 AM

Hmm it seems people here are releasing lots of unfinished hacks that do not work with the new versions of vB and they are called "finished" hacks :(

Jawelin 02-05-2002 09:22 AM

Quote:

Originally posted by newvbuser
Hmm it seems people here are releasing lots of unfinished hacks that do not work with the new versions of vB and they are called "finished" hacks :(
Agree... :cry:

Graphic-Forums 03-02-2002 06:24 PM

Yeah, I also did the manual install and the avatars don't show now. Whats the problem?

fabz 03-11-2002 08:31 PM

May you tell me if this hack works with vb 2.2.3b ?

I would like to try this but not to hang the bb...
thanx

thewiz 03-15-2002 04:56 PM

Hi

OK I did the Hack from the install everything worked great until the End First you must create the directory you want chmod it to 777 then you have to go to your files /forum and chmod the files listed like showthread,member,private and announcement then goto the admin directory and chmod to 777 function.php,and user.php files I did all this and the install went in fine. BUT

Please help me on this one! Now when I goto User CP Edit Options Change Avatar it comes up BUT It extends to the right along way is there anyway to change that. I have had user that don't see the upload function because it is way off the screen.

Please Help

Armando

Boothby 03-21-2002 05:20 PM

Does this hack work with vB 2.2.4?

Kier 03-22-2002 07:20 AM

Quote:

Originally posted by Boothby
Does this hack work with vB 2.2.4?
Did it ever work? Try the original version: https://vborg.vbsupport.ru/showthrea...threadid=11760

It works fine with all recent versions of vBulletin.

Admin 03-22-2002 10:57 AM

Like Kier already pointed out, this hack already exists and works fine with the latest vBulletin release (https://vborg.vbsupport.ru/showthrea...threadid=11760), so there's really no need in another confusing thread, especially when the author has disappeared and can't provide further support.


All times are GMT. The time now is 01:02 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.02188 seconds
  • Memory Usage 1,827KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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