Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Avatar with per post 0.2 Details »»
Random Avatar with per post 0.2
Version: 1.00, by Gaffer Gaffer is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-18-2002 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

hi this is my first hack ever that i have released and cause i think these instructions are a little hard to understand and i'm not 100% sure if they will work right, i'm putting it here in beta hacks for a week or so..... till all the bugs in my writing is ripped out

what this hack does- this hack lets you have a totally random avatar at every post. (not thread but each post)
the below instructions are to add another one avatar but there is an addon at the bottom that explains how to add more. this is set so only admins can set these as rewards to members and such. mainly so people on my site don't put huge images in instead of the 170X170 max set currently.

i hope to release more versions of this as well each better and better i hope to have it so you have screens like vb has now for avatars one day.

for a demo go here

demo not working right now

i will try and support people that have problems but i won't promise anything but i have installed it on 2 boards that we're running 2.2.6 and it is working fine and i have also installed it on a 2.2.8 board that i'm hacking getting ready to install over the other 2 and all 3 are working

this code really needs cleaning up as well. as i'm someone that normally just edits other hacks to suit what i need but this one i wrote almost all by myself except for the Java which i found in a txt file on my computer that from the date says that it has been there for 8 months unopened... so i have no idea where it's from

Show Your Support

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

Comments
  #2  
Old 10-19-2002, 10:48 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that you in the avatar?

and does this use the upload system VB has?
Reply With Quote
  #3  
Old 10-19-2002, 10:53 AM
Gaffer's Avatar
Gaffer Gaffer is offline
 
Join Date: Nov 2001
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wish that was me

or more important i wish that was my girlfriend but no thats mandy moore

and i hope to have something like that done next an upload script but not one that puts them in the database

this links to avatars that are on external sites for now
Reply With Quote
  #4  
Old 10-19-2002, 04:29 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow...Looks very nice

Satan
Reply With Quote
  #5  
Old 10-19-2002, 09:02 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool...installing this
Reply With Quote
  #6  
Old 10-19-2002, 09:27 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have problem /w setting up template #2

<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array.theImages[0] = '<img src="$avatarurl">'theImages[1] = '<img src="$post[field6]">'// line remarked to show pattern
// theimages[2] = '<img src="$post[field7]">'
// do not edit anything below this linevar j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function avatar(){document.write(''+theImages[whichImage]+'');}avatar();// End --></script>

it seems the code is mixed...
what is that...if i set 2 more random avatar (total 3 ..include the default one)...what is i do with this second template...thanks
Reply With Quote
  #7  
Old 10-19-2002, 09:57 PM
Gaffer's Avatar
Gaffer Gaffer is offline
 
Join Date: Nov 2001
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by LangTuDaTinh
i have problem /w setting up template #2

<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array.theImages[0] = '<img src="$avatarurl">'theImages[1] = '<img src="$post[field6]">'// line remarked to show pattern
// theimages[2] = '<img src="$post[field7]">'
// do not edit anything below this linevar j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function avatar(){document.write(''+theImages[whichImage]+'');}avatar();// End --></script>

it seems the code is mixed...
what is that...if i set 2 more random avatar (total 3 ..include the default one)...what is i do with this second template...thanks
ooooops

i checked it before i put it up but for some reason it removed all the breaks

i've updated the link at the top with the right layout
Reply With Quote
  #8  
Old 10-19-2002, 10:41 PM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANKS YOU SO MUCH...I GOT IT WORKING /w 5 more avatar on vb 2.2.7.
Reply With Quote
  #9  
Old 10-20-2002, 02:50 AM
Gaffer's Avatar
Gaffer Gaffer is offline
 
Join Date: Nov 2001
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok so my instrucions we're not that hard to follow then
Reply With Quote
  #10  
Old 10-20-2002, 08:37 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not bad... ill give this a try on my testboard when i have the time

- miSt
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 11:12 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.07646 seconds
  • Memory Usage 2,288KB
  • 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_onlinestatus
  • (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
  • postbit_imicons
  • 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