Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Manoel - Random Avatar Details »»
Manoel - Random Avatar
Version: 1.00, by Manoel J?nior Manoel J?nior is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 10-02-2011 Last Update: 10-02-2011 Installs: 30
Uses Plugins
Re-useable Code Translations  
No support by the author.

*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!

Download Now

File Type: xml product-mnl_random_avatar.xml (3.0 KB, 234 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Sayid, thang28101993, X-or

Comments
  #22  
Old 01-27-2013, 12:54 PM
Milobil Milobil is offline
 
Join Date: Jun 2012
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 01-29-2013, 09:05 PM
aryung aryung is offline
 
Join Date: Jan 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 01-30-2013, 12:53 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aryung View Post
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!
Reply With Quote
Благодарность от:
postcd
  #25  
Old 03-10-2013, 08:03 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Manoel J?nior View Post
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
Reply With Quote
  #26  
Old 03-13-2013, 11:05 PM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #27  
Old 03-14-2013, 02:57 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by postcd View Post
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?
Reply With Quote
  #28  
Old 03-14-2013, 09:00 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #29  
Old 03-14-2013, 01:25 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 03-15-2013, 07:55 AM
postcd postcd is offline
 
Join Date: Feb 2012
Posts: 319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 03-15-2013, 01:02 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?)
Reply With Quote
Reply


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 04:10 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.06336 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete