Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Youtube-Avatar on Show Thead Details »»
Youtube-Avatar on Show Thead
Version: 1.00, by friend01 friend01 is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.0.6 Rating:
Released: 09-12-2010 Last Update: Never Installs: 9
Template Edits
 
No support by the author.

Youtube-Avatar on Show Thead
change your avatar into a youtube video
DEMO: http://www.phim-film.net/forum/test-...be-avatar.html
Go to admincp -> User Profile Fields
-> Add New User Profile Field
- Profile Field Type:Single-line Test Box
- click to Continue
Title: Youtube-Avatar
Description:
Code:
Paste the youtube video link in the box below.<br />
Example:
youtube link ( http://de.youtube.com/watch?v=yeCEOLan1h4 ).<br />
leave this Box blank to show you normal Avatar.
Profile Field Category:
Default Value:
Max length of allowed user input:500
Field Length: 50
Profile Field Type: Single-Line Text Box
Display Order:
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: Yes
Regular Expression:
Which page displays this option?: Edit Profile
Click to Save
Go to admincp -> User Profile Fields -> User Profile Field Manager
View Profile Field you've created now? (For example, my forum is: field5)
if your not just my needs change.
if the other numbers, you change your number on the part of code is highlighted in red below.
------------------------
Step 2:
Acp -> Styles & Templates -> Style Manager
select styles that you want to use YouTube-Avatar
Edit Templates -> Postbit Templates -> postbit
search for:
Code:
<vb:if condition="$show['avatar']">
                    <a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                        <vb:if condition="$post.avatarurl">
                            <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
                        <vb:else />
                            <img src="{vb:stylevar imgdir_misc}/unknown.gif" />
                        </vb:if>
                    </a>
                </vb:if>
                <div class="username_container">
------------------------
replaced by:
Code:
            
<vb:if condition="$show['avatar']">
                    <a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="in_array($post['usergroupid'], array(2,5,6,7,17)) AND $post['field5']">                        
<vb:if condition="$post.avatarurl">
<td class="alt2">
<script language="JavaScript" type="text/javascript">
var link="{vb:raw post.field5}";
pos=link.indexOf("www.youtube.com");
    if(pos>=0) {
sublink=link.substr(31,11);
document.write ("<object width=150 height=125><param name='movie' value='http://www.youtube.com/v/"+sublink+"'></param><embed src='http://www.youtube.com/v/"+sublink+"' type='application/x-shockwave-flash' width='150' height='125'></embed></object>");
}
</script></td></vb:if>
<vb:else />
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}"/>
</vb:if></vb:if>
                <div class="username_container">
-> Click Save
--------------------
Edit Templates -> Postbit Templates -> postbit_legacy:

find and delete:
Code:
    
<vb:if condition="$show['avatar']">
            <a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
                <img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
            </a>
            </vb:if>
--------------------------
find:
Code:
    
<div class="postdetails">
        <div class="userinfo">
            <div class="username_container">
------------------------------

replaced:
Code:
    
<div class="postdetails">
<div class="userinfo">
<vb:if condition="$show['avatar']">
                    <a class="postuseravatarlink" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<vb:if condition="in_array($post['usergroupid'], array(2,5,6,7,17)) AND $post['field5']">                        
<vb:if condition="$post.avatarurl">
<td class="alt2">
<script language="JavaScript" type="text/javascript">
var link="{vb:raw post.field5}";
pos=link.indexOf("www.youtube.com");
    if(pos>=0) {
sublink=link.substr(31,11);
document.write ("<object width=150 height=125><param name='movie' value='http://www.youtube.com/v/"+sublink+"'></param><embed src='http://www.youtube.com/v/"+sublink+"' type='application/x-shockwave-flash' width='150' height='125'></embed></object>");
}
</script>
</td></vb:if>
<vb:else />
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}"/>
</vb:if></vb:if>
            <div class="username_container">
----------------------
Step 3:
bring your favorite music on Youtube-Avatar.
back to forums click on Sett?ng -> My Sett?ng -> Edit Profile,
in Section: Additional Information
add youtube video link to Youtube-Avatar.
completed!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-13-2010, 05:00 PM
ellinofatsa ellinofatsa is offline
 
Join Date: Mar 2010
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice!!!!!!!!!!!!!!!!!!works on 4,06
Reply With Quote
  #3  
Old 09-13-2010, 05:39 PM
herkulest herkulest is offline
 
Join Date: Feb 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot?
Reply With Quote
  #4  
Old 09-13-2010, 07:14 PM
zonaenlinea's Avatar
zonaenlinea zonaenlinea is offline
 
Join Date: Dec 2009
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot plisss
Reply With Quote
  #5  
Old 09-13-2010, 07:23 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What above said, screenshotties please .. Or better yet, a demo.
Reply With Quote
  #6  
Old 09-13-2010, 10:49 PM
friend01 friend01 is offline
 
Join Date: Jan 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo Here:
http://www.phim-film.net/forum/test-...be-avatar.html
Reply With Quote
  #7  
Old 09-14-2010, 06:38 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one ..tagged for now !!!
Reply With Quote
  #8  
Old 09-30-2010, 10:55 AM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to install this but need to know if it works on 4.0.2?
Reply With Quote
  #9  
Old 10-25-2010, 10:40 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A few questions.... Will this work with 4.0.8?

Is there away to apply this only on select user groups?
Reply With Quote
  #10  
Old 10-26-2010, 01:44 AM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 installs only??? Feedback please....
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 11:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04497 seconds
  • Memory Usage 2,308KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete