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)
-   -   BB Code Enhancements - Google, yahoo and live search (https://vborg.vbsupport.ru/showthread.php?t=289893)

Fatal Hazard 10-29-2012 11:00 PM

Google, yahoo and live search
 
1 Attachment(s)
These BB Codes allow you to link anything to a Google, Yahoo or Live search.

Google Search:

Title: Google Search Link
BB Code Tag Name: GoogleSearch
Replacement:
HTML Code:

<a href="http://www.google.com/search?hl=en&q={param}&btnG=Google+Search&aq=f&oq= " target="_blank">Go To Google Search <i>{param}</i></a>
Example: [GoogleSearch]test[/GoogleSearch]
Description: Adds a link to a Google Search.

Yahoo Search:

Title: Yahoo Search Link
BB Code Tag Name: YahooSearch
Replacement:
HTML Code:

<a href="http://search.yahoo.com/search?p={param}&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8" target="_blank>Go To Yahoo Search <i>{param}</i></a>
Example: [YahooSearch]test[/YahooSearch]
Description: Adds a link to a Yahoo Search.

Live Search

Title: Live Search
BB Code Tag Name: LiveSearch
Replacement:
HTML Code:

<a href="http://search.live.com/results.aspx?q={param}&go=&form=QBLH" target="_blank">Go To Live Search <i>{param}</i></a>
Example: [LiveSearch]test[/LiveSearch]
Description: Adds a link to a Live Search.



FOR EACH ONE SET THE FOLLOWING:
Use {option}
No

Remove Tag If Empty
Yes

Disable BB Code Within This BB Code
Yes

Disable Smilies Within This BB Code
Yes

Disable Word Wrapping Within This BB Code
Yes

Disable Automatic Link Parsing Within This BB Code
No


Thanks and enjoy!:D

stl7997 10-30-2012 08:17 PM

Nice BB code. Is there a way to have it open in a new window/tab?

nacaruncr 10-30-2012 08:28 PM

you could add the "target:_blank" before colose the tag, example:
Code:

<a href="http://search.live.com/results.aspx?q={param}&go=&form=QBLH">Go To Live Search <i>{param}</i></a>
Code:

<a href="http://search.live.com/results.aspx?q={param}&go=&form=QBLH" target="_blank">Go To Live Search <i>{param}</i></a>
some like this :/ I don't know...

tanzeelniazi 10-31-2012 11:55 PM

working Perfect thanks


All times are GMT. The time now is 07:06 PM.

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.01016 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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