vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Youtube Videos Search Box (Widget) (https://vborg.vbsupport.ru/showthread.php?t=232875)

desi-boy 01-11-2010 10:00 PM

Youtube Videos Search Box (Widget)
 
1 Attachment(s)
This is a simple Youtube Videos Search Box Widget

https://vborg.vbsupport.ru/external/2010/01/95.jpg

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

silverfox_uw 01-12-2010 11:27 AM

does this work for the forum sidebar?

desi-boy 01-12-2010 03:28 PM

Quote:

Originally Posted by silverfox_uw (Post 1953452)
does this work for the forum sidebar?

yes

movslow 01-12-2010 04:13 PM

Quote:

Originally Posted by desi-boy (Post 1953628)
yes

Very cool, I didn't know that.

Added mine to the forum sidebar, and it works great.

Thanks.
:up:

AzzidReign 01-12-2010 05:26 PM

Hmm, I'll have to find a way to integrate this great mod.

RedHacker 01-15-2010 10:37 PM

How to big the size of widget....?

desi-boy 01-20-2010 08:04 PM

Quote:

Originally Posted by RedHacker (Post 1956934)
How to big the size of widget....?

use any html editer and add a what do u want i mean some lines, add ur logo or add a background image

Xeyn 02-22-2010 07:21 PM

Added as forum block..Awsome man

saghir 03-02-2010 06:42 AM

nothing to disply ???

what is side bar and how can i enable

RedHacker 03-02-2010 06:54 AM

Quote:

Originally Posted by saghir (Post 1995032)
nothing to disply ???

what is side bar and how can i enable

Add in layout manager of cms....?

Big-Pete 03-02-2010 08:38 AM

I'd avoid the demo!! Had a popup on your site giving me a fake "My Computer" page, You might want to get that sorted!!

Baf_Jams 03-02-2010 11:54 AM

yeah the Demo linked me to a Fake you got Virusus not good :(

But installed the program a treat
Thanks

saghir 03-03-2010 10:57 AM

Quote:

Originally Posted by RedHacker (Post 1995036)
Add in layout manager of cms....?

i dont know about layout manager of cms,

i just go Control Panel Home > vBulletin CMS > widgets > create new widget

and out their coding , thats all

but nothing display

desi-boy 03-06-2010 09:47 AM

Quote:

I'd avoid the demo!! Had a popup on your site giving me a fake "My Computer" page, You might want to get that sorted!!
Quote:

yeah the Demo linked me to a Fake you got Virusus not good

But installed the program a treat
Thanks
hiii friendzz i dnt use any pop up on my site chek your computer and secrtyyy system and demo link is not falke link ...

betts02 03-06-2010 06:06 PM

Works great on v4.0.2 in a forum block, had to insert the image to my server to show

rastaX 03-13-2010 04:51 PM

Nice! Just the thing for my Video Section.

Thanks, installed and rated.

12xbl 03-29-2010 12:32 PM

Thanks ..... works great !

Anybody know if it's possible to show a YouTube Video in a widget, if so how ?

regards
12xbl

Marek58 03-30-2010 07:21 AM

Polish version

http://img706.imageshack.us/img706/6182/youtubel.jpg

<center>
<img src="http://www.localize.fr.pl/forum_opisy/YouTubeLogo1.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="">Filmy</option>
<option value="search_users">Kanały</option>
</select>
<input type="submit" value="Znajdź" />
</form> </center>

goran424 04-18-2010 07:45 AM

Sorry to be so bold, but since I'm total newbie, can someone explain to me how to install this in forum?

It works in CMS fine but I got no clue how to place it in forum.

Thanks in advance!

fayax 06-14-2010 09:30 PM

Installed. thanks. Hosted the image at my own site like the others I am sure.

Quote:

Originally Posted by goran424 (Post 2023036)
Sorry to be so bold, but since I'm total newbie, can someone explain to me how to install this in forum?

It works in CMS fine but I got no clue how to place it in forum.

Thanks in advance!

Its a widget. It will sit on the CMS only. Not the forum - to the best of my knowledge.

"BLOCKS" are for forums - widgets for CMS.

Am I right? anyone else?

Ken Sanders 06-15-2010 12:20 AM

Nice mod, thanks!

Theater 06-15-2010 03:24 AM

1 Attachment(s)
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.

https://vborg.vbsupport.ru/

goran424 07-28-2010 03:50 PM

Quote:

Originally Posted by Theater (Post 2053831)
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.

http://img443.imageshack.us/img443/3860/youtubel.gif

Thanks for your help, works great.

ShadowStalker 01-14-2011 02:25 PM

Thanks a lot

oldfan 04-08-2023 12:16 AM

dont work on 4.2.5.php 7.2


All times are GMT. The time now is 03:50 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.01273 seconds
  • Memory Usage 1,804KB
  • 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
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete