The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Locked Flash Avatar + Modified User Menu (Legacy) 1.3 Details »» | |||||||||||||||||||||||||||
Locked Flash Avatar + Modified User Menu (Legacy) 1.3
Developer Last Online: Nov 2023
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']"> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> <if condition="$post['field20']"> <!-- Flash Avatar --> <if condition="$post['field20']"> <div> <br /> <object width="128px" height="128px"> <param name="movie" value="$post[field20]"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed src="$post[field20]" width="128px" height="128px" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" menu="false" quality="high" wmode="transparent" scale="default"> </embed> </object> </div></if> <!-- End --> <else /> <!-- vB Avatar --> <if condition="$show['avatar']"> <div class="smallfont"> <br /><img src="$post[avatarurl]" width="128px" height="128px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </div> </if> <!-- End --> </if> <!-- _______ END _______ --> 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: Code:
<!-- post $post[postid] popup menu --> <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$post[username]</td> </tr> <if condition="$show['profile']"> <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr> </if> <if condition="$show['pmlink']"> <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr> </if> <if condition="$show['emaillink']"> <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr> </if> <if condition="$show['homepage']"> <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr> </if> <if condition="$show['search']"> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr> </if> <if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr> </if> </table> </div> <!-- / post $post[postid] popup menu --> Code:
<!-- _______ Popup Menu Modified _______ --> <if condition="$post['field20']"> <!-- Flash Avatar DHTML Popup Menu --> <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;margin-top:-39px"> <table cellpadding="4 cellspacing="1" border="0"> <tr> <td class="thead">$post[username] </td> <if condition="$show['profile']"> <td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a> </if> <if condition="$show['pmlink']"><td class="vbmenu_option"> <a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">Send PM</phrase></a></td> </if> <if condition="$show['emaillink']"><td class="vbmenu_option"> <a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">Send E-Mail</phrase></a></td> </if> <if condition="$show['homepage']"><td class="vbmenu_option"> <a href="$post[homepage]"><phrase 1="$post[username]">Visit Homepage</phrase></a> </if> <if condition="$show['search']"><td class="vbmenu_option"> <a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">Find More Posts</phrase></a></td> </if> <if condition="$post['userid'] AND $show['member']"><td class="vbmenu_option"> <a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">Add To Buddy List</phrase></a></td> </if> </td></tr> </table> </div> <!-- End --> <else /> <!-- post $post[postid] popup menu --> <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$post[username]</td> </tr> <if condition="$show['profile']"> <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr> </if> <if condition="$show['pmlink']"> <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr> </if> <if condition="$show['emaillink']"> <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr> </if> <if condition="$show['homepage']"> <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr> </if> <if condition="$show['search']"> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr> </if> <if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr> </if> </table> </div> <!-- / post $post[postid] popup menu --> </if> <!-- _______ End _______ --> 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. Show Your Support
|
Comments |
#22
|
||||
|
||||
sweet <3
|
#23
|
||||
|
||||
I'm glad you like it. Thanks for helping me test it to 1.2.
|
#24
|
||||
|
||||
Why is this conditional here first:
<if condition="$post['field16']"> ?? |
#25
|
||||
|
||||
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. |
#26
|
|||
|
|||
Nice one, one question, cant this be done for the users who use postbit insteed of postbit_legacy ?
|
#27
|
||||
|
||||
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...
|
#28
|
||||
|
||||
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> <td nowrap="nowrap"> Code:
<!-- _______ CUSTOM AVATAR (FLASH) _______ --> <if condition="$post['field20']"> <!-- Flash Avatar --> <if condition="$post['field20"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"> <object width="128px" height="128px"> <param name="movie" value="$post[field20]"> <embed src="$post[field20]" width="128px" height="128px" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </embed> </object></a> </td></if> <!-- End --> <else /> <!-- vB Avatar --> <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> <!-- End --> </if> <!-- _______ END _______ --> <td nowrap="nowrap" valign="top"> *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. |
#29
|
||||
|
||||
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) _______ --> <if condition="$post['field20']"> <!-- Flash Avatar --> <if condition="$post['field20']"> <div> <br /> <object width="128px" height="128px"> <param name="movie" value="$post[field20]"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed src="$post[field20]" width="128px" height="128px" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" menu="false" quality="high" wmode="transparent" scale="default"> </embed> </object> </div></if> <!-- End --> <else /> <!-- vB Avatar --> <if condition="$show['avatar']"> <div class="smallfont"> <br /><img src="$post[avatarurl]" width="128px" height="128px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </div> </if> <!-- End --> </if> <!-- _______ END _______ --> also why i should use this step? Code:
Installation Instructions (2 steps): In Admin CP: 1. Then go to Styles & Templates --> Style Manager --> All Style Options --> Edit Templates --> Postbit Templates --> postbit_legacy BR, Ross |
#30
|
||||
|
||||
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. |
#31
|
||||
|
||||
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 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|