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

Reply
 
Thread Tools
Youtube Videos Search Box (Widget) Details »»
Youtube Videos Search Box (Widget)
Version: 1.00, by desi-boy desi-boy is offline
Developer Last Online: Feb 2015 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.x Rating:
Released: 01-11-2010 Last Update: Never Installs: 60
Re-useable Code Translations  
No support by the author.

This is a simple Youtube Videos Search Box Widget



Create a new widget
Control Panel Home > vBulletin CMS > widgets > create new widget

Widget type : Static HTML
Title : Youtube Videos Search Box or other...
Description : bla bla bla bla

SAVE WIDGET

Click on Configure

Code:
			<center>
<img src="http://www.a2wt.com/images/A2web/YouTubeLogo.jpg" height=35 width=160></br>
</br>
<form id="vb_yt_search-form" action="http://www.youtube.com/results" method="get" target="_blank">
<input id="vb_yt_search-term" name="search_query" type="text" maxlength="128" />
<select id="vb_yt_searcg-type" name="search_type">
<option value="">Videos</option>
<option value="search_users">Channels</option>
</select>
<input type="submit" value="Search" />
</form>	</center>

and paste this code in Enter Static HTML & click save

Manage widget in Layouts manager & thats all


Demo

Show Your Support

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

Comments
  #22  
Old 06-15-2010, 12:20 AM
Ken Sanders Ken Sanders is offline
 
Join Date: May 2010
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, thanks!
Reply With Quote
  #23  
Old 06-15-2010, 03:24 AM
Theater's Avatar
Theater Theater is offline
 
Join Date: Aug 2004
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this to work on the Forum Blocks thanks to simonhind who posted up a block template on another thread, and of course to the developer of this one for his code.

First create a block template:

1. Go to Admin CP > Styles & Templates > Style Manager > Add New Template

2. Name your template whatever you want. I named mine "youtube_search" -- just remember what you called it.

3. Paste in the following code into the template:

Code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_title" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_title"/></a>
<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/widget-forum.png" title="{vb:raw blockinfo.title}" alt="" />&nbsp;{vb:raw blockinfo.title}</span>
</div>
<div id="block_title" class="blockbody floatcontainer">
<div class="blockrow">{vb:raw content}</div>
</div>
</div>
<div class="underblock"></div>
</li>
Now create your Forum Block:

1. Go to Admin CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP

2. Give your Forum Block a name like "YouTube Search" for example, a short description if you wish, and for Content Type select HTML.

3. Paste in the follow code in the big Content box underneath:

Code:
<center>
<img src="[Replace This Image Path]/youtube.gif" height="66" width="150"><br />
<br />
<form id="vb_yt_search-form" action="http://www.youtube.com/results" method="get" target="_blank">
<input id="vb_yt_search-term" name="search_query" type="text" maxlength="128" />
<select id="vb_yt_searcg-type" name="search_type">
<option value="">Videos</option>
<option value="search_users">Channels</option>
</select>
<input type="submit" value="Search" />
</form></center>
4. Important - Make sure for "Template to Use" that you put in the name of that template you created above. For example: youtube_search

That should do the trick. I'm not a coder, but I figure I'd share my results in case it helps someone else. I have attached the YouTube logo I'm using which is a transparent GIF which should work on most light themed forums.

Attached Files
File Type: zip youtube.zip (5.0 KB, 11 views)
Reply With Quote
  #24  
Old 07-28-2010, 03:50 PM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Theater View Post
I got this to work on the Forum Blocks thanks to simonhind who posted up a block template on another thread, and of course to the developer of this one for his code.

First create a block template:

1. Go to Admin CP > Styles & Templates > Style Manager > Add New Template

2. Name your template whatever you want. I named mine "youtube_search" -- just remember what you called it.

3. Paste in the following code into the template:

Code:
<li>
<div class="block smaller">
<div class="blocksubhead">
<a class="collapse" id="collapse_block_title" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_title"/></a>
<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/widget-forum.png" title="{vb:raw blockinfo.title}" alt="" />&nbsp;{vb:raw blockinfo.title}</span>
</div>
<div id="block_title" class="blockbody floatcontainer">
<div class="blockrow">{vb:raw content}</div>
</div>
</div>
<div class="underblock"></div>
</li>
Now create your Forum Block:

1. Go to Admin CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP

2. Give your Forum Block a name like "YouTube Search" for example, a short description if you wish, and for Content Type select HTML.

3. Paste in the follow code in the big Content box underneath:

Code:
<center>
<img src="[Replace This Image Path]/youtube.gif" height="66" width="150"><br />
<br />
<form id="vb_yt_search-form" action="http://www.youtube.com/results" method="get" target="_blank">
<input id="vb_yt_search-term" name="search_query" type="text" maxlength="128" />
<select id="vb_yt_searcg-type" name="search_type">
<option value="">Videos</option>
<option value="search_users">Channels</option>
</select>
<input type="submit" value="Search" />
</form></center>
4. Important - Make sure for "Template to Use" that you put in the name of that template you created above. For example: youtube_search

That should do the trick. I'm not a coder, but I figure I'd share my results in case it helps someone else. I have attached the YouTube logo I'm using which is a transparent GIF which should work on most light themed forums.

Thanks for your help, works great.
Reply With Quote
  #25  
Old 01-14-2011, 02:25 PM
ShadowStalker ShadowStalker is offline
 
Join Date: May 2009
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot
Reply With Quote
  #26  
Old 04-08-2023, 12:16 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont work on 4.2.5.php 7.2
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 03:52 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.03902 seconds
  • Memory Usage 2,286KB
  • Queries Executed 21 (?)
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
  • (5)bbcode_code
  • (1)bbcode_quote
  • (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
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete