![]() |
Locked Flash Avatar + Modified User Menu (Legacy) 1.3
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: Code:
<if condition="$show['avatar']"> Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> 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 https://vborg.vbsupport.ru/ 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: Code:
<!-- post $post[postid] popup menu --> Code:
<!-- _______ Popup Menu Modified _______ --> 3. Click https://vborg.vbsupport.ru/ 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. :) |
Can we see a demo of a .swf avatar in action?
|
Yeah I was gonna ask the same thing. :)
|
yes a demo please
|
Now if someone would just come up with a way to do Flash (.swf) headers on a forum, I'd be a real happy camper. I have searched the world and this site over but no one seems to have an answer to that.
|
Quote:
|
For some reason, I can't seem to get it to work. I did everything on the dot, but once I wrote the URL to the swf flash inside the CUSTOM AVATAR field, my avatar didn't change. The avatar remained as the original. I tried again to change it to the swf on the avatar setting, and still, it didn't work.
In need of more clarification if possible. Thanks. |
Update: I finally got it to work. However, I've decide to uninstall it. The flash avatar turned out to be on the bottom of the default avatar, which made my postbit space too big. How about making the default avatar swf compatible?
At any rate, good work! |
Quote:
|
Quote:
*The Flash avatar won't replace vB's default avatar unless you add another conditional in postbit_legacy. My assumption is that only one avatar will be used at a time. |
Update
I've made a few additional instructions and comments to the original post. The link to a working demo has also been included. :) |
Updated:
Resolved Username drop down menu displaying in the background of the Flash avatar. View image attachment for the results. |
Quote:
< clicks invisible thank you button > |
so why did you set regular avartars to 128x128?
Hmm, now somethings happened with my db too, works like 30% of the pageloades.. and I can't change the template anymore -_- Did exactly as you wrote. |
The modifications doesn't touch vB's database. The Flash codes are client side and should be safe. Forcing the graphics to 128x128px should not slow down your forum in any way since the file sizes remain the same.
*You can change the dimensions to any size you want (as specified in the instructions) or simply remove the "width" and "height" for vB's default avatar from the code. I've always preferred avatars at 128x128px. |
Quote:
And ..Strange ..as the postbit_legacy is the only template I can't edit now.. o_0 Quote:
|
Assuming that the codes were properly placed, it may be that you need to extend the timeout behavior in PHP's server configuration. Check the code entries once more just in case.
|
Quote:
|
Hmm, about the workaround with the usergroup dropdown menu..
Isn't it possible to like.. force your menu to activate itself.. ONLY when flash avvie is showing?? Even if you use a flash avvie AND a regular one?? |
Yes! :)
I've updated the instructions to version 1.2. If you've installed a previous version make sure to update it. *Changes made (version 1.2): 1. Conditionals are set in which if you're using a Flash Avatar it will override the default; else it will use vB's default avatar. 2. Conditionals are set in which if you're using a Flash Avatar the User popup menu will display horizontally; else it will use vB's default vertical menu. |
sweet <3
|
I'm glad you like it. Thanks for helping me test it to 1.2. :)
|
Why is this conditional here first:
<if condition="$post['field16']"> ?? |
Careless on my part. I use 16 for the live board and 20 for the testing board...It should read "field20" for both parts of the instruction. I've updated the codes.
Thanks for the heads-up, ChurchMedia. :) |
Nice one, one question, cant this be done for the users who use postbit insteed of postbit_legacy ?
|
Definitely. Just glancing over the "posbit" code it's all similar except for the avatar section. I'll try it now and post back soon...
|
While I didn't change the location of the avatar, username and user info (e.g., Join Date, Posts, Title...) the modification works. Here's the instructions:
In postbit template: 1. Look for this (or something similar to): Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> *All of the other instructions remain the same. It's just with "postbit" template and not "legacy". **While I'm not crazed with the other look (e.g., Username and user's info at the right of the avatar) that can be modified easily by replacing the <td> tags. If you need help with it let me know. :) |
great thanks Freesteyelz !!!
i've been searched for this hack long time ago! it works great! also i did some modification to be use tnansparent flashes: Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> also why i should use this step? Code:
Installation Instructions (2 steps): BR, Ross |
For people who use the Legacy view the Flash displays in the foreground, overshadowing the User popup menu. In order for the menu to be seen I positioned it horizontally so that it avoids the Flash avatar entirely. The image attachment shows an example of what (Step 2) does. Anyone who uses a non-Flash avatar will have the popup menu positioned vertically. :)
Anyway, I'm happy that you like it and thanks for clicking install. :) |
yes indeed flash will be ot top layer...
but if you do like in my way -> wmode="transparent" all will be "normal" ;) check it ;) thank ones again for great hack :) BR, Ross |
Quote:
NP at all. :) For some reason it didn't work for me. Ahh well. I've included the "transparent" value into the mod. :D |
ohh
and 1 suggestion - flash avatar can be shown in MEMBERINFO too couse now when flash is used nothing is shown :) this will be nice :) regards, Ross |
and the problem that not works for u is because u forgot to add wmode="transparent" here: ;)
Code:
Ross |
Quote:
I'll place it on the "list to do". :) |
Quote:
|
Quote:
|
addition mod:
if you want to see flash avatar in "Public Profile" in MEMBERINFO go to Styles & Templates --> Style Manager --> All Style Options --> Edit Templates --> Member Info Templates --> MEMBERINFO find: Code:
<if condition="$show['avatar']"> Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> then enjoy :) BR, Ross |
I managed to upload it but its still showing default avtar.. Please help!!!1
|
For the Custom Profile Field that you created for the Flash avatar, what is the ID (#)? Can you also provide me your postbit code so that I can help you. :)
|
wow, good job! 1 thing is, i have a avatar gallery, default avatar gallery from vbulletin , is there anyway admins can upload flash avatars to the default gallery, and members can select and view the flash avatar in there usercpanel by selecting edit avatar, etc
|
All times are GMT. The time now is 03:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|