Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Locked Flash Avatar + Modified User Menu (Legacy) 1.3 Details »
Locked Flash Avatar + Modified User Menu (Legacy) 1.3
Mod Version: 1.3, by Freesteyelz (Member) Freesteyelz is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.3 Rating: (2 votes - 5.00 average) Installs: 17
Released: 07 Feb 2006 Last Update: Never Downloads: 1
Not Supported Template Edits  

Brief Description:
Flash enabled avatars using a Custom Profile Field. It may work in other vB versions (untested) though this mod is created for 3.5.3. A simple mod (for "Legacy" view).

Thank you(s) to: Luggruff (early beta user); masterross (for transparent value)

Support: I'll try to support it the best I can.



Browsers Tested:
Internet Explorer (5 - 6); Firefox (1.0.4 - latest)

**Remember to Disable users from uploading their own Flash avatars. Allow only the Flash avatars from people you can trust...Never by strangers. Flash may contain codes that can harm your site/forum so be cautious.



Templates Modified:
postbit_legacy

Installation Instructions (6 easy steps):
In Admin CP:

1. Create new User Profile Field by going to User Profile Fields --> Add New User Profile Field and create a Single-Line Text Box. In the Title add "CUSTOM AVATAR (FLASH)". Conditions:

"Field Required": No
"Field Editable by User": No (IMPORTANT!)
"Private Field": No
"Field Searchable on Members List": No
"Show on Members List": No
"Which page displays this option?": Options: Other

*For security reasons set to no "Field Editable by User" so that only the CP Admin(s) can upload the .swf files.

*Remember the Field number you've just created. You may need to change the "20". For this mod I used "field20".

2. Press "Save".

3. Then go to Styles & Templates --> Style Manager --> All Style Options --> Edit Templates --> Postbit Templates --> postbit_legacy and look for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

*Change the "width" and "height" variables in the "embed" tag to the size you want the Flash avatar displayed. Again, change "field20" to the number of the new field you've just created. *If you want to remove "width" and "height" of vB's default avatar (NOT the Flash avatar), go ahead.

4. Press "Save".

*The "object" and "embed" codes are the minimal to play Flash in the browser. If you have the plugin it should work. Tested in Internet Explorer (5 - 6) and FireFox (1.0.4 to latest).

5. Now go to the User's Profile you want to add the Flash avatar and enter the .swf file URL in the "CUSTOM AVATAR (FLASH)" text area. It should be in the "User Profile Fields" section.

*It is recommended that you upload the avatar to your server to prevent users from editing it.

6. Press "Save" and Done!

*To use non-.swf avatars use vB's default Avatar option "Change Avatar".

*You will need to have Flash enabled in your browser.

**Remember to Disable users from uploading their own Flash avatars. Allow only the Flash avatars from people you can trust...Never by strangers. Flash may contain codes that can harm your site/forum so be cautious.


7. Click if you use it. Thanks!


****************************************


********************
********************
OPTIONAL code to display the popup menu horizontally with Flash Avatars:

Conditional: 1. If you're using vB's default avatar this code will display the default "post $post[postid] popup menu". 2. If you're using a Flash Avatar the modified popup menu will override the default's, whether or not you've entered both avatar types.

Code below:
********************
********************

Installation Instructions (2 steps):
In Admin CP:

1. Then go to Styles & Templates --> Style Manager --> All Style Options --> Edit Templates --> Postbit Templates --> postbit_legacy and look for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And Replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

2. Press "Save" and You're Done.

3. Click if you use it. Thanks!

*Now the username drop down menu will display horizontally with the Flash avatar. View image attachment below for an example:

********************
********************

*If you've installed this hack please click the "Install" button.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	profile_menu_right2.gif
Views:	797
Size:	7.9 KB
ID:	42335  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
let users select to use legacy or not (and choice for vb menu as well) jesus likes pie vBulletin 3.0 Full Releases 2 10 Jun 2005 00:09

  #46  
Old 03 May 2006, 13:22
hypnoticpimp hypnoticpimp is offline
 
Join Date: Dec 2004
ok i did that. but now flash avatar aint working, just a blank avatar, even when u right click the area. doesnt show those flash tools.. just as a reular picture

Last edited by hypnoticpimp; 03 May 2006 at 13:25.
Reply With Quote
  #47  
Old 04 May 2006, 01:44
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
What is the Field # of the Custom Profile Field you created?
__________________


Reply With Quote
  #48  
Old 11 Jul 2006, 07:19
vishalsachar vishalsachar is offline
 
Join Date: Jun 2004
Absoluely flawless! Excellent simple hack, took 5 minutes and works superbly!

*clicks install*
Reply With Quote
  #49  
Old 11 Jul 2006, 11:36
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Thanks.
__________________


Reply With Quote
  #50  
Old 01 Sep 2006, 08:06
MaTraX MaTraX is offline
 
Join Date: Jan 2005
Thank you for this modification. I would like to publish it a bit later with some changes
__________________
CEO of MaTraX.NETwork | Member of Polish vBulletin.pl
vB forum: http://www.matrax.net/forum

Last edited by MaTraX; 01 Sep 2006 at 08:17.
Reply With Quote
  #51  
Old 01 Sep 2006, 10:19
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
/me wonders what is meant by "pubish it"?
__________________


Reply With Quote
  #52  
Old 13 Jan 2007, 17:38
Baudman Baudman is offline
 
Join Date: Jan 2006
sweet hack thanks.
__________________
HobbiesElite.com
Reply With Quote
  #53  
Old 14 Jan 2007, 16:43
domokun domokun is offline
 
Join Date: Jun 2006
Real name: Crys
Hmm, I created the Profile Field and altered the Template. But the default avatar is showing and not the flash. Have I missed something?

Profile Field 11 (I also changed Field20 to Field11 to match the profile field that was created)

Thanks,

~ Domokun
Reply With Quote
  #54  
Old 17 Jan 2007, 04:29
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
I apologize for the late reply, Domokun; been quite busy...

Please post your entire code in Step #3.
__________________


Reply With Quote
  #55  
Old 20 Jan 2007, 18:25
domokun domokun is offline
 
Join Date: Jun 2006
Real name: Crys
Ah, sorry for the late reply. Ironically, been swamped with work.

Ok, here's the code you requested

Thanks for the help

~ Domokun


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #56  
Old 20 Jan 2007, 23:00
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
From what I see the code above is correct. You've mentioned that your Profile Field is 11; when you enter the .swf file into that field it should override the default Flash and display in the Postbit. You've also modified the postbit_legacy; the template that you're currently using on your site, so that's correct.

In your Profile Field 11 ("CUSTOM AVATAR (FLASH" text area), can you please post an example URL of the .swf avatar?
__________________


Reply With Quote
  #57  
Old 21 Jan 2007, 00:26
domokun domokun is offline
 
Join Date: Jun 2006
Real name: Crys
Ok, I used this test link for my .swf avatar:

http://anime.scanlover.com/forum/flash/desudesu.swf

I uploaded it directly to my site so that I wouldn't have to worry about the link changing. My site also uses a default avatar if none is selected.

Hope this helps.

~ Domokun
Reply With Quote
  #58  
Old 21 Jan 2007, 03:59
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Anytime you're able to link internally, do so. You should be able to strike out the domain name and just use:

/forum/flash/desudesu.swf

Now if that URL is posted in the Profile 11 Field it should display in place of any other avatar. I also use a default avatar (if none were chosen) that I made using a custom template and plugin; so the Flash code on my own forum is slightly different than this mod.

I'm curious, how are you doing the default avatar?
__________________


Reply With Quote
  #59  
Old 21 Jan 2007, 04:12
domokun domokun is offline
 
Join Date: Jun 2006
Real name: Crys
Hmm, good question. It's been a long time since I've installed the default avatar... It should be an installed plugin if I remember correctly.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This is what I have in my Plugin Manager for default avatars - Product : vBulletin, Hook location : postbit_display_complete

~ Domokun

Last edited by domokun; 21 Jan 2007 at 15:16.
Reply With Quote
  #60  
Old 21 Jan 2007, 23:40
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
I don't know for sure but there may be a conflict with that plugin code and my mod. So try this: Disable that plugin. Does the Flash avatar work now? If yes, then follow these additional steps (if you want to have the default avatar) below.

1)
Add new plugin.
Product: vBulletin
Hook: postbit_display_start
Title: avatardefault
Plugin PHP code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Active: Yes
Save

2)
Add new template.
Title: avatardefault
Template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change the "src" (to the path of your default avatar) and "alt".
Save

3)
Uploade your default avatar to the path you specified.

4)
Replace your Flash code with this one:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5)
Hopefully, by doing these steps you'll now be able to use the Flash avatar and have a default avatar if no avatar was chosen. *These are similar codes I did on my forum.
__________________


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:41.

Layout Options | Width: Wide Color: