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 |
#52
|
||||
|
||||
/me wonders what is meant by "pubish it"?
|
#53
|
|||
|
|||
sweet hack thanks.
|
#54
|
|||
|
|||
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 |
#55
|
||||
|
||||
I apologize for the late reply, Domokun; been quite busy...
Please post your entire code in Step #3. |
#56
|
|||
|
|||
Ah, sorry for the late reply. Ironically, been swamped with work.
Ok, here's the code you requested Thanks for the help ~ Domokun Code:
<!-- post #$post[postid] --> <if condition="$show['spacer']"> $spacer_open <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px"> <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if> </if> <br /> <!-- top category table setup --> <table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="88" height="26" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_ls.gif" width="88" height="26" alt=" " border="0" /></td> <td width="100%" valign="middle"><div class="smallfont" align="center">$post[icon] <strong>$post[title]</strong></div></td> <td width="88" height="26" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_top_table_rs.gif" width="88" height="26" alt=" " border="0" /></td> </tr> </table> <!-- End top category table setup --> <table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center"> <tr> <if condition="$show['announcement']"> <td class="thead" style="font-weight:normal" colspan="2"> <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase> </td> <else /> <td class="thead" style="font-weight:normal" $post[scrolltothis]> <!-- status icon and date --> <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a> $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> $post[firstnewinsert] <!-- / status icon and date --> </td> <td class="thead" style="font-weight:normal" align="$stylevar[right]"> <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> <if condition="$show['inlinemod']"> <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" /> </if> </td> </if> </tr> <tr valign="top"> <td class="alt2" width="175"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> </div> <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> <if condition="$post['isstaffrank']"> <div class="smallfont"> <if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if> <if condition="$post['staffrank']">$post[staffrank]</if> <if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if> </div> </if> <!-- _______ Flash Avatar _______ --> <if condition="$post['field11']"> <!-- Flash Avatar --> <if condition="$post['field11']"> <div> <br /> <object width="150px" height="150px"> <param name="movie" value="$post[field11]"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed src="$post[field11]" width="150px" height="150px" 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="150px" height="150px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </div> </if> <!-- End --> </if> <!-- _______ END _______ --> <div class="smallfont"> <br /> <div class="info">$post[musername] is $post[onlinestatus] </div> <if condition="$post['joindate']"><div class="info">$vbphrase[join_date]: $post[joindate]</div></if> <if condition="$post['field2']"><div class="info">$vbphrase[location_perm]: $post[field2]</div></if> <if condition="$post['age']"><div class="info">$vbphrase[age]: $post[age]</div></if> <div class="info">$vbphrase[posts]: $post[posts]</div> <if condition="$show['reputation']"><div class="info">Rep: $post[reputationdisplay]</div></if> <if condition="$show['reppower']"><div class="info">$vbphrase[reppower]: $post[reppower] </div></if> <if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon] or $post[gticon] or $post[skypeicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[gticon] $post[skypeicon]</div></if> </div> </td> <if condition="$show['moderated']"> <td class="alt2" id="td_post_$post[postid]"> <else /> <td class="alt1" id="td_post_$post[postid]"> </if> <if condition="$show['messageicon'] OR $post['title']"> <!-- icon and title --> <div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if> <if condition="$post['title']"><strong>$post[title]</strong></if> </div> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <!-- / icon and title --> </if> <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> <if condition="$show['attachments']"> <!-- attachments --> <div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_thumbnails]</legend> <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments] </div> </fieldset> </if> <if condition="$show['imageattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div> </fieldset> </if> <if condition="$show['imageattachmentlink']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[imageattachmentlinks] </table> </fieldset> </if> <if condition="$show['otherattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_files]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[otherattachments] </table> </fieldset> </if> <if condition="$show['moderatedattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attachments_pending_approval]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[moderatedattachments] </table> </fieldset> </if> </div> <!-- / attachments --> </if> <if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> <if condition="$show['postedited']"> <!-- edit note --> <div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <em> <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>. <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if> </em> </div> <!-- / edit note --> </if> </td> </tr> <tr> <td class="alt2"> <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> $post[iplogged] </td> <if condition="$show['moderated']"> <td class="alt2" align="$stylevar[right]"> <else /> <td class="alt1" align="$stylevar[right]"> </if> <!-- controls --> <if condition="$post['editlink']"> <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> </if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> </if> <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$show['quickreply'] AND !$show['threadedmode']"> <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </if> <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /> </if> <!-- / controls --> </td> </tr> </table> <!-- 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['links']"> <tr><td class="vbmenu_option"><a href="$post[links]"><phrase 1="$post[username]">$vbphrase[visit_xs_links]</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 --> <!-- bottom table setup --> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="60" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_ls.gif" width="60" height="14" alt=" " border="0" /></td> <td width="100%" style="background-image:url($stylevar[imgdir_misc]/tren_z_front_btm_table_back.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="14" alt=" " border="0" /></td> <td width="60" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_front_btm_table_rs.gif" width="60" height="14" alt=" " border="0" /></td> </tr> </table> <!-- End bottom table setup --> <if condition="$show['spacer']"> </div> $spacer_close </if> <!-- / post #$post[postid] --> |
#57
|
||||
|
||||
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? |
#58
|
|||
|
|||
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 |
#59
|
||||
|
||||
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? |
#60
|
|||
|
|||
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.
Code:
if (!$this->post['avatarurl']) { $this->post['avatarurl'] = "customavatars/SLoverDefault.png"; } if ($this->registry->userinfo['showavatars']) { $show['avatar'] = true; } ~ Domokun |
#61
|
||||
|
||||
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: Code:
eval('$avatardefault = "' . fetch_template('avatardefault') . '";'); Save 2) Add new template. Title: avatardefault Template: Code:
<img src="/forum/images/avatar/default_avatar.jpg" alt="Default Avatar" /> Save 3) Uploade your default avatar to the path you specified. 4) Replace your Flash code with this one: Code:
<!-- _______ Flash Avatar _______ --> <if condition="$post['field11']"> <!-- Flash Avatar --> <if condition="$post['field11']"> <div> <br /> <object width="150px" height="150px"> <param name="movie" value="$post[field11]"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed src="$post[field11]" width="150px" height="150px" 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="150px" height="150px" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> </div> <!-- End --> <else /> <!-- Alternative --> <div class="smallfont"> $avatardefault </div> </if> <!-- End --> </if> <!-- _______ END Flash Avatar _______ --> 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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|