Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
YouTube Subscribe in Postbit Details »»
YouTube Subscribe in Postbit
Version: 1.00, by basilrath basilrath is offline
Developer Last Online: Oct 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.2 Rating:
Released: 04-15-2009 Last Update: Never Installs: 15
Template Edits
 
No support by the author.

Hi everyone

Just a little modification which will add a small YouTube icon to your postbit / legacy (next to yahoo, aim etc). This will allow the user to add their own youtube "username" in their own profile / usercp etc to allow it to show in the postbit / legacy which other members can click and directly go to the posters YouTube page (allowing easy subscription if needed). I hadnt seen a little mod so added it here, apolagies if its already been added previously.

1.Make A New Profile Field By

User Profile Fields>Add New User Profile Field
Profile field type = Single-line text box
Title: Your YouTube ID For Others To Subscribe (or whatever you like)
Description: Type in your full Youtube "username" not full URL
Private field: No
Field Searchable on Members List: Yes
Show on Members List: No


2. Template changes - In postbit_lecacy & Postbit

Find:
Code:

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
Directly After Add:

Code:
<!-- YouTube start -->
<if condition="$post[fieldX]"><a href="http://www.youtube.com/$post[fieldX]" title="Subscribe To My Youtube" target="_blank">
<img src="/images/misc/youtube.png" border="0"></a>
</if>
<!-- YouTube end -->
+++Remember to note the field id. Example: field19. You need to replace the X in the code with the number 19 (on both counts !) +++

3. YouTube Icon Upload
Upload to Your /images/misc/youtube.png (remember to put the correct path in the img src)

YouTube Icon


Demo .......... HERE

Screenshot
postbit.JPG

Show Your Support

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

Comments
  #2  
Old 04-16-2009, 05:19 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks nice... work ok with 3.7.X?
Reply With Quote
  #3  
Old 04-16-2009, 05:33 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not checked it on there but cant see any reason not to.
Reply With Quote
  #4  
Old 04-16-2009, 07:19 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thank you!
Reply With Quote
  #5  
Old 04-18-2009, 09:18 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed

attached is a better image to use
Reply With Quote
  #6  
Old 06-17-2009, 03:21 AM
lebmedia lebmedia is offline
 
Join Date: May 2008
Location: Lebanon
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nothing Work With Me , I Did All The Steps
The Field Appear In UserCp, Edit Details , but The Youtube Pic Don't Appear In The Showthread ( The IMG Link Is Correct ) I'm Using vb 3.8.3
Reply With Quote
  #7  
Old 06-30-2009, 07:00 AM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!

I'm also using vB 3.8.3 and it works.

1.) You must not use field ID 19. You have to create a new profile field and you have to replace the X with the ID of YOUR new profile field. Then you go to your profile and fill in only your youtube USERNAME.

2.) First the pic didn't appear in my board also, but i changed the path of the pic this way:
http://www.myurl.de/images/misc/youtube.png

and it works great!

greez
Karin
Reply With Quote
  #8  
Old 03-08-2011, 10:51 PM
Crossbow Crossbow is offline
 
Join Date: Jan 2011
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you.
Reply With Quote
  #9  
Old 10-28-2011, 08:53 AM
Goomzee Goomzee is offline
 
Join Date: Apr 2008
Location: Philippines
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for sharing this simple and good mod
Reply With Quote
  #10  
Old 11-09-2011, 10:32 PM
BASHEER BASHEER is offline
 
Join Date: Nov 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
Reply


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 01:29 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.04542 seconds
  • Memory Usage 2,303KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete