vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Locked Flash Avatar + Modified User Menu (Legacy) 1.3 (https://vborg.vbsupport.ru/showthread.php?t=107364)

Freesteyelz 02-06-2006 10:00 PM

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']">
                <div class="smallfont">
                    &nbsp;<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>

and replace it with:

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 _______ -->

*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 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 -->
<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&amp;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&amp;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&amp;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&amp;userlist=buddy&amp;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 -->

And Replace it with:

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&amp;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&amp;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&amp;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&amp;userlist=buddy&amp;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&amp;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&amp;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&amp;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&amp;userlist=buddy&amp;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 _______ -->

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

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. :)

Holidazed 02-07-2006 12:42 PM

Can we see a demo of a .swf avatar in action?

Snake 02-07-2006 01:12 PM

Yeah I was gonna ask the same thing. :)

VaaKo 02-07-2006 01:44 PM

yes a demo please

Gripemaster 02-07-2006 02:04 PM

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.

COBRAws 02-07-2006 04:15 PM

Quote:

Originally Posted by Gripemaster
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.

why dont u just place the swf code in the header themplate?

Master Miyagi 02-07-2006 04:53 PM

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.

Master Miyagi 02-07-2006 05:27 PM

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!

IrPr 02-07-2006 05:30 PM

Quote:

Originally Posted by Don Corleone
yes a demo please

me too

Freesteyelz 02-07-2006 06:31 PM

Quote:

Originally Posted by Master Miyagi
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?

That would require code hacking. I believe MarcoH64 will import his Flash Avatar hack to 3.5.3 when he can.

*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.

Freesteyelz 02-07-2006 06:33 PM

Update

I've made a few additional instructions and comments to the original post. The link to a working demo has also been included. :)

Freesteyelz 02-07-2006 11:41 PM

Updated:

Resolved Username drop down menu displaying in the background of the Flash avatar. View image attachment for the results.

hiiped 02-08-2006 05:15 AM

Quote:

Originally Posted by Freesteyelz
Updated:

Resolved Username drop down menu displaying in the background of the Flash avatar. View image attachment for the results.

good work


< clicks invisible thank you button >

Luggruff 02-08-2006 06:32 AM

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.

Freesteyelz 02-08-2006 06:42 AM

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.

Luggruff 02-08-2006 06:50 AM

Quote:

Originally Posted by Freesteyelz
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.

Ok thanks !
And ..Strange ..as the postbit_legacy is the only template I can't edit now.. o_0

Quote:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/virtual/hlforum.net/public_html/includes/functions_misc.php on line 411
EDIT: Hmm.. seemed to fix itself. Clicks install !

Freesteyelz 02-08-2006 06:58 AM

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.

Freesteyelz 02-08-2006 07:07 AM

Quote:

Originally Posted by Luggruff
Ok thanks !

EDIT: Hmm.. seemed to fix itself. Clicks install !

It may have been a server issue. I'm glad you got it to work. Enjoy! :)

Luggruff 02-08-2006 08:55 AM

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??

Freesteyelz 02-08-2006 07:56 PM

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.

Luggruff 02-08-2006 08:19 PM

sweet <3

Freesteyelz 02-08-2006 08:22 PM

I'm glad you like it. Thanks for helping me test it to 1.2. :)

ChurchMedia 02-09-2006 12:03 AM

Why is this conditional here first:

<if condition="$post['field16']">

??

Freesteyelz 02-09-2006 12:20 AM

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. :)

Kuimera 02-09-2006 03:44 AM

Nice one, one question, cant this be done for the users who use postbit insteed of postbit_legacy ?

Freesteyelz 02-09-2006 04:14 AM

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...

Freesteyelz 02-09-2006 04:45 AM

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">

and replace it with:

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">

2. Click "Save" and you're done.

*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. :)

masterross 02-09-2006 04:52 PM

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

it works perfect without this! And i dont want to view horizontal popup menu

BR,
Ross

Freesteyelz 02-09-2006 07:53 PM

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. :)

masterross 02-09-2006 09:06 PM

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

Freesteyelz 02-09-2006 09:12 PM

Quote:

Originally Posted by masterross
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


NP at all. :)

For some reason it didn't work for me. Ahh well. I've included the "transparent" value into the mod. :D

masterross 02-09-2006 09:27 PM

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

masterross 02-09-2006 09:38 PM

and the problem that not works for u is because u forgot to add wmode="transparent" here: ;)

Code:


<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>

without this transparent wont work neither popup menu will show correctly

Ross

Freesteyelz 02-09-2006 09:44 PM

Quote:

Originally Posted by masterross
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

Since I don't display avatars I didn't initially consider it into the mod. LOL. Though it is a good suggestion and it shouldn't be difficult to do. All is needed is to copy and paste the Flash avatar code in Step 1 to the Memberslist template or even Public Profile template.

I'll place it on the "list to do". :)

Freesteyelz 02-09-2006 09:51 PM

Quote:

Originally Posted by masterross
and the problem that not works for u is because u forgot to add wmode="transparent" here: ;)

Code:


<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>

Ross

Ohh geez...That's right. Thank you. :) I've added it into the mod and updated the version and text.

Luggruff 02-10-2006 11:20 AM

Quote:

Originally Posted by masterross
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

it works perfect without this! And i dont want to view horizontal popup menu

BR,
Ross

Does this work with shockwave too?

masterross 02-10-2006 12:09 PM

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']">
        <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
        <td>&nbsp;</td>
</if>

and replace with:

Code:

<!-- _______ CUSTOM AVATAR (FLASH) _______ -->
<if condition="$userinfo['field5']">
<!-- Flash Avatar -->
<if condition="$userinfo['field5']">
<div>
<br />
<object width="100px" height="100px">
<param name="movie" value="$userinfo[field5]">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="$userinfo[field5]" width="100px" height="100px" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/...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="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
        </div>
</if>
<!-- End -->
                                                </if>
<!-- _______ END _______ -->


then enjoy :)

BR,
Ross

vyas1980 04-17-2006 04:48 PM

I managed to upload it but its still showing default avtar.. Please help!!!1

Freesteyelz 04-17-2006 11:00 PM

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. :)

hypnoticpimp 04-24-2006 10:22 PM

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
  • Page Generation 0.01436 seconds
  • Memory Usage 1,910KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (14)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete