miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
News & Announcements miniBB Support Forums / News & Announcements /   

Avatars addon updated

Author Team
8-)
#1 | Posted: 17 May 2005 17:09 
It was discovered, that on some restricted hostings, it is not good to have file without any extension, and server could interprete it as directory, not file, with undesirable results (when uploaded avatar image can not be displayed). So now, avatars will have extension ".mbb", and you need to replace addon_avatar.php and code for bb_plugins.php from the main package, for having fresh release, also as rename old avatars, if they were uploaded, so they all have extension ".mbb".

Download/update now

Author Anonymous
Guest
#2 | Posted: 19 May 2005 19:27 
Hello TEAM,

The loading of the images is correct and they are well posted
in the posts.

I use the plugin addon_member2 and there is a small problem when
script index.php?action=userinfo call script bb_func_usernfo.php.

The misadventures are posted by script bb_func_usernfo.php only if the
column user_custom1 mysql contains the complete name of the image (ex:3217.gif) this as displayed in detail user.

So if only one asterisk (*) is present in the column user_custom1 the
image is not displayed.

In the column mysql it would not be not better to put 11.mbb or 66.mbb
instead of (*).

I think that that will correct the problem of script
bb_func_usernfo.php, this one will be able to display by the same manner the images standards, and those downloadées by the users.

Thank you

Patrick

Author Ivan
Advanced Member
#3 | Posted: 20 May 2005 07:35 | Edited by: Ivan 
I'll wait Team to answer to this.

From the one hand, sounds logical.

From the other hand, may be it will force all people that already installed avatars to reinstall them only because Patrick wants pictures in the member's list.

From the third hand :) (hm, third hand...) I'm only curious what's the reason the avatars to be uploaded with no extension or with extention MBB, but not with their actual extension. Team, please don't get me wrong. The avatars work fine and I only want to learn something more. In the same time, if the plugin needs some correction, this may be a consideration - the actual extensions. I begin to believe less and less in the browsers and specially in what they can recognise :)

Author Team
8-)
#4 | Posted: 20 May 2005 10:56 
Ivan
As I already mentioned many times, extension doesn't matter when displaying image in browser (instead of EXE files - you already now that simply renaming them to another format is enough to kick browser). Actual extension should not matter when operating with images.

Patrick: I have discovered some bugs when displaying avatar in user info. First of all, don't forget that you need to put variable $l_usrInfo[12] in language pack, so Avatar's value will be displayed in userinfo. Second, I have updated avatars addon today, so download new version and update necessary files. I have tested - now in user's info, both uploaded avatar and chosen avatar should be displayed correctly.

Author Ivan
Advanced Member
#5 | Posted: 20 May 2005 11:27 
OK, I see, but for example Opera have seen the pictures without extensions, reported me JPG in the picture properties, but when I said "Save as" - proposed me HTML format :) and in the same time saved the picture without extension :) If you call this logical browser's behaviour - I don't :)

But I have another question. Why in today's archive of the avatar plugin I read:

2005-05-20: bb_plugins.php code update, addon_avatar.php update (fix on displaying/deleting avatar in user's profile)

but the plugin itself is from 17th of May? :)

I'll be very thankful to have the one from today, too, not only Patrick :)

Author Team
8-)
#6 | Posted: 20 May 2005 12:05 
but the plugin itself is from 17th of May - ups, try now.


OK, I see, but for example Opera have seen the pictures without extensions, reported me JPG in the picture properties, but when I said "Save as" - proposed me HTML format :) and in the same time saved the picture without extension :) If you call this logical browser's behaviour - I don't :) - I don't know how and which browser will save the picture; but I don't think that saving avatars to disk is the primary goal of this plugin. It just should display everything correctly.

Author winxp
Registered
#7 | Posted: 23 May 2005 18:15 
Hello TEAM;

I thank you for the last modifications in the plugin addon_avatar.

There is no more no problem to post the standard images and those
downloaded by the users.

The plugin list of the members functions also correctly when one calls
upon script bb_func_usernfo.php the image is now well displayed.

Thank you for your assistance

Patrick

Author man
Guest
#8 | Posted: 1 Jun 2005 14:44 
Ó ìåíÿ ïî÷åìó òî íå çàëèâàþòüñÿ àâàòàðû íà ôòï :( Âñ¸ ñäåëàë è ïðàâà âûñòàâèë è ïðîïèñàë ïàïêó... à âñ¸ðîâíî íå çàëèâàþòñÿ. òîëüêî ñîçäà¸òñÿ ïîïêà avatars è âñ¸, åé äàæå ïðàâà íåëüçÿ ïîìåíÿòü.

Author Team
8-)
#9 | Posted: 1 Jun 2005 15:25 | Edited by: Team 
U vas shared hosting?
Sprosite u providera, v chem mozhet bitj problema.
Dla sozdanija papok v skripte inogda nuzno dobavitj pered mkdir takuju komandu:

umask(002);

Author man
Registered
#10 | Posted: 20 Jun 2005 12:43 | Edited by: man 
Team A vi ne mogli bi chut podrobnee kak eto delat napisat, kogda ja prosto pishu umask(002); mkdir($av.......
na stranice vidaet
Warning: mkdir(./share/avatars): File exists in /var/hosting/razor/public_html/addon_avatar.php on line 27

Author Team
8-)
#11 | Posted: 20 Jun 2005 15:46 
Nu tak u vas uzhe estj eta direktorija znachit.
A voobshe, esli direktorija ne sozdajotsa samim skriptom - sozdajte jejo vruchnuju s pravami 0777.

If you directory could not be created with the script itself, create it manually and give CHMOD 0777 to it. So, you need to create the folder "shared_files" with 0777 permissions, and INSIDE it, create MANUALLY directory "avatars" also with permissions 0777.

News & Announcements miniBB Support Forums / News & Announcements / Avatars addon updated Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB