vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Manoel - Random Avatar (https://vborg.vbsupport.ru/showthread.php?t=271330)

Manoel J?nior 10-02-2011 10:00 PM

Manoel - Random Avatar
 
1 Attachment(s)
*OVERVIEW*

This plugin will make a random default images avatar show for all users if the user does not have an avatar. This works in the postbit. It uses the image "images/avatars/patch_images/" by default, which is used in several locations for the same purpose, and works on vB 3.6+ and vB 3.8.x. This is editable in the Admin CP.

Other version for 3.8.x. Click Here

Use images with:

- sequential numbers
- support extensions: gif|png|jpg|jpeg

* INSTALLATION *

1- Upload your images with sequential numbers for you directory images.
2- Import the product XML file (product-mnl_random_avatar) into the Product Manager in AdminCP.
3- Set the options in Manoel Random Avatar.
4- Make sure this add-on is marked as 'Installed' on vBulletin.org!

voglermc 10-03-2011 06:14 PM

Sweet!

Marek58 10-04-2011 06:34 AM

1 Attachment(s)
Polish version

Dr.osamA 10-04-2011 12:26 PM

1 Attachment(s)
Excellent = 5 stars

installed + translated to Arabic (win +Utf-8)

Manoel J?nior 10-04-2011 02:37 PM

Thanks friends!!!!

Sayid 10-04-2011 05:17 PM

I liked it, tagged

BaanFarsang 10-05-2011 12:31 PM

Code:

Parse error: syntax error, unexpected ':' in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_postbit.php(340) : eval()'d code on line 346

K4GAP 11-28-2011 03:59 AM

This is something I don't think I need but it is a great idea!

fmsx 12-19-2011 02:17 AM

Its not working for me I installed the xml and pointed it to my avatar directory...

Manoel J?nior 12-21-2011 09:15 PM

Describe what you put in the product options.

fmsx 12-22-2011 02:02 AM

Quote:

Originally Posted by Manoel J?nior (Post 2279846)
Describe what you put in the product options.

I uploaded the XML

what do you mean product options... I set it to a directory that contained images
/images/avatars but it's not assigning images to other members

do you know why?

postcd 04-08-2012 07:58 AM

Hello,

i have just installed your Mod and set path to my images in mod config (images/avatars/avatarpack/ set 235 images and tried to sgnup new user account.

But user shows standard, selected no avatar. Please what can i do another way?

I would like to ask you to modiffy this Mod to randomly select from any images in folder, not numbered images?

pokusek 06-19-2012 06:04 PM

Thanks, awesome plugin.

I would appreciate whowing random images in my sidebar and in the forumdisplay template. :)

Manoel J?nior 06-20-2012 12:00 AM

Quote:

Originally Posted by pokusek (Post 2341159)
Thanks, awesome plugin.

I would appreciate whowing random images in my sidebar and in the forumdisplay template. :)

I will update product!

DocZaius 06-20-2012 12:27 PM

Doesn't work.

I have the avatar images sequentially numbered 001.gif, 002.gif, etc. Is that the correct way to name them?

DocZaius 06-20-2012 12:50 PM

Quote:

Originally Posted by BaanFarsang (Post 2253568)
Code:

Parse error: syntax error, unexpected ':' in /home/baanfars/domains/baanfarsang.com/public_html/includes/class_postbit.php(340) : eval()'d code on line 346

I got this error, too.

Manoel J?nior 07-22-2012 05:15 PM

Please, screenshoot.

dog-tag 08-06-2012 11:51 AM

does this work with 4.2 ? It says vbulletin 4 above, but the OP doesn't mention 4.2.
I think this plugin is a great idea, and should be default with VB.

Tried this and it doesn't work for me. I don't receive any errors but none of the defaults change.

Manoel J?nior 12-29-2012 12:53 PM

Work perfect in vBulletin 4.2.x

aryung 01-25-2013 08:59 PM

it did nothing on my 4.2
BTW you may use Random ID instead of numbered images as each avatar have its ID
it will include all extension types and names of images

Milobil 01-27-2013 12:54 PM

I can't find "Manoel Random Avatar" in Vbulletin options after uploaded "product-mnl_random_avatar.xml" on pluggin & products.

I'm on Vb 4.2.0

aryung 01-29-2013 09:05 PM

ignore my above message got it worked
it only displays on postbit_display

how to add it for forumbit and threadbit _ _ display to work with last poster avatar module

Thanks

Manoel J?nior 01-30-2013 12:53 PM

Quote:

Originally Posted by aryung (Post 2400375)
ignore my above message got it worked
it only displays on postbit_display

how to add it for forumbit and threadbit _ _ display to work with last poster avatar module

Thanks

I will work for the new version 2.0 with many enhancements.

Please tick this product as installed!

smirkley 03-10-2013 08:03 PM

Quote:

Originally Posted by Manoel J?nior (Post 2400490)
I will work for the new version 2.0 with many enhancements.

Please tick this product as installed!

Looking forward to the update, works nice on postbit v4.2

postcd 03-13-2013 11:05 PM

Hello Manoel, im using vB 4.2.x, and when i enable your plugin, i can see an error message on showthread (any thread page), this:
"Parse error: syntax error, unexpected ':' in /home/myusername/public_html/includes/class_postbit.php(345) : eval()'d code on line 113"

That file:

113 case 'announcement':
114 require_once(DIR . '/includes/class_postbit_alt.php');
115 $out = new vB_Postbit_Announcement();
116 break;
117
118 case 'pm':
119 require_once(DIR . '/includes/class_postbit_alt.php');
120 $out = new vB_Postbit_Pm();

any fix for this pls?

smirkley 03-14-2013 02:57 AM

Quote:

Originally Posted by postcd (Post 2409829)
Hello Manoel, im using vB 4.2.x, and when i enable your plugin, i can see an error message on showthread (any thread page), this:
"Parse error: syntax error, unexpected ':' in /home/myusername/public_html/includes/class_postbit.php(345) : eval()'d code on line 113"

That file:


113 case 'announcement':
114 require_once(DIR . '/includes/class_postbit_alt.php');
115 $out = new vB_Postbit_Announcement();
116 break;
117
118 case 'pm':
119 require_once(DIR . '/includes/class_postbit_alt.php');
120 $out = new vB_Postbit_Pm();

any fix for this pls?

Are all of your images numbered sequentially starting with number 1 and endfing with the number of images, not missing any? And the number of exact images in that directory in settings?

postcd 03-14-2013 09:00 AM

Thanks for reply man, they are named like: avatar1.gif - avatar100.gif
and i had wrong count: 99. actually its 100. So i fixed it and reenabled the Mod. This message still show up after flushing cache. Any idea pls?

smirkley 03-14-2013 01:25 PM

I cant say for sure, but you might experiment with the avatar filenames having JUST the number, no text.

ie - 1.gif, 2.gif, 3.gif,..etc.

That is how I have it, and the mod works without errors for me.

postcd 03-15-2013 07:55 AM

Man, i renamed all filess to 1.gif - 100.gif, uninstalled Mod and installed again and set, but this still appears..!

Quote:

"Parse error: syntax error, unexpected ':' in /home/myusername/public_html/includes/class_postbit.php(345) : eval()'d code on line 113"
Isnt it any Mod conflict, what is that?

smirkley 03-15-2013 01:02 PM

I use alot of mods, and this was so plug-n-play.

Did you change anything in class_postbit before you uploaded?

look in line 113 for that extra ":" in the code.

Maybe re-download and re-upload to your server? Might have got a corrupt file?

(I just noticed that a few ppl have had the same problem. I am wondering if there is a mod conflict. I dont have that problem so I wonder what mod might do that. Have you tried disabling your other mods and seeing if it workes, and then bringing back each mod one at a time to see if one of them makes the problem?)

postcd 03-16-2013 09:46 AM

Quote:

Originally Posted by smirkley (Post 2410144)
I use alot of mods, and this was so plug-n-play.

Did you change anything in class_postbit before you uploaded?

look in line 113 for that extra ":" in the code.

Maybe re-download and re-upload to your server? Might have got a corrupt file?

(I just noticed that a few ppl have had the same problem. I am wondering if there is a mod conflict. I dont have that problem so I wonder what mod might do that. Have you tried disabling your other mods and seeing if it workes, and then bringing back each mod one at a time to see if one of them makes the problem?)

Hi, thanks for helping. Line 113 is quoted before. There is nothing bad about that. Isue is not caused by class_postbit class_postbit_alt filles, i tried to replace by default ones, clear cache, but still apears. Also i disabled majority of plugins and error goes away only when Manoel avatar Mod is disabled :o

arenamvp 04-10-2013 05:15 AM

Everything seems to work here, but the images don't show (the image url points out this "http://www.[mysitename].com/forum/1.).

I've already checked the numbers of images and they are all name in sequential number jpg. (1.jpg, 2.jpg....). Everything looks fine in the options.

Looks like it's ignoring what is in the options. Any ideas?

thang28101993 04-11-2013 11:23 PM

Please check again! It didn't work for me - the avatar is not appear, Vbb 4.2.0 Pl3, although I followed as you said!
Thanks!

UrbanSurgeon 04-18-2013 01:56 PM

would love to see this updated, in desperate need

0verl0rd 06-10-2013 11:36 PM

any update on this for vb 4.2.1 ??? it does not work

postcd 06-11-2013 08:29 AM

Quote:

Originally Posted by 0verl0rd (Post 2427219)
any update on this for vb 4.2.1 ??? it does not work

It even started working? For me NO. this mod is needed, pls fix

karabaja3 01-15-2015 03:22 PM

Quote:

Originally Posted by arenamvp (Post 2415466)
Everything seems to work here, but the images don't show (the image url points out this "http://www.[mysitename].com/forum/1.).

I've already checked the numbers of images and they are all name in sequential number jpg. (1.jpg, 2.jpg....). Everything looks fine in the options.

Looks like it's ignoring what is in the options. Any ideas?

I have same problem. This mod is quite bugy. :)

tim.liton 12-04-2015 06:42 PM

Not working in 4.2.3. Shame, such a great mod.

Manoel J?nior 12-04-2015 10:55 PM

Quote:

Originally Posted by tim.liton (Post 2559762)
Not working in 4.2.3. Shame, such a great mod.

Works yes, I'm using in my Forum which is with version 4.2.3. What problem you're having friends?

tim.liton 12-05-2015 10:11 PM

Avatars not showing. It shows broken image.

When I check the image path it says /images/mypath/1.
No jog, png on the ending. Only 1.


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

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.01412 seconds
  • Memory Usage 1,817KB
  • 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
  • (11)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
  • (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