vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - UKBL ~ Ajax Google News Bar on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=205796)

UKBusinessLive 02-22-2009 01:19 PM

Quote:

Originally Posted by Bmastro (Post 1751384)
You made a very nice job!
But I would like to open a new page to read the news (I don't want that my forum's visitors go away).
I know that I have to put this in the code:

/**
* open links in a new window
*/
options = {
linkTarget : GSearch.LINK_TARGET_BLANK
};


But I don't know where.
So what have I to do? :confused:

And also I tried to change the colour of the words, but nothing happened.
Maybe this is helpful to you:
http://www.google.com/uds/solutions/...ence.html#_css
BTW, the problem of the colour is not very important compared to the one of the "new" page.


if you want to make any changes to the basic code you need to register with Google for your Own API key

http://code.google.com/apis/ajaxsearch/signup.html

Then you can adapt and modify the code to your own needs ;)

Internetcafe 02-22-2009 01:22 PM

How can you get the links from the newsfeed to open in a new window ?

UKBusinessLive 02-22-2009 01:35 PM

Quote:

Originally Posted by Internetcafe (Post 1751398)
How can you get the links from the newsfeed to open in a new window ?

See the post above, to edit the news feed further you need your own API key direct from google :up:

Bmastro 02-22-2009 02:51 PM

Now I have the API key, but I don't know where to type it in your code :confused:

leenster 02-22-2009 08:12 PM

Quote:

Originally Posted by concepts (Post 1750592)
Question, my site revolves around a variety (HipHop News, Mustangs, Chargers, Camaro's for our car club) and Modeling News... this only allows for the entry of one search.. anyway to have it pull random news based on a variety entry?

ex..
PHP Code:

executeList : ["Ford Mustang, Dodge Charger, Chevrolet Camaro, HipHop, Urban Fashion"


i think you need to do it like this...

PHP Code:

executeList : ["Ford Mustang""Dodge Charger""Chevrolet Camaro""HipHop""Urban Fashion"


leenster 02-22-2009 08:23 PM

Quote:

Originally Posted by Internetcafe (Post 1751398)
How can you get the links from the newsfeed to open in a new window ?

i didnt need to get my own api key: this is how to do it....


PHP Code:

FIND:
  <
script type="text/javascript">
    function 
LoadNewsBar() {
      var 
newsBar;
      var 
options = { 

Under that ADD :
PHP Code:

linkTarget GSearch.LINK_TARGET_BLANK




worked for me :)

Bmastro 02-22-2009 09:21 PM

Quote:

Originally Posted by leenster (Post 1751754)
i didnt need to get my own api key: this is how to do it....

PHP Code:

FIND:
  <
script type="text/javascript">
    function 
LoadNewsBar() {
      var 
newsBar;
      var 
options = { 

Under that ADD :
PHP Code:

linkTarget GSearch.LINK_TARGET_BLANK

worked for me :)

Yes, it works!
Great!!!

SuperTaz 02-23-2009 05:53 AM

Just to let you know, you can do without this code:

Code:

// The Following div element will end up holding the actual newsbar.
  // You can place this anywhere on your page.
  -->

When I left it in there, it actually showed on the site along with the news. lol

zelnik 02-23-2009 09:42 PM

Great mod but is there anyway of adapting it for a live currency rate?

UKBusinessLive 02-23-2009 11:30 PM

Quote:

Originally Posted by zelnik (Post 1752704)
Great mod but is there anyway of adapting it for a live currency rate?

Not that i know off :o You could use "Currancy" as a keyword, but that would just add currancy news as oppose to "Live" Rates

What you could used is a "Live" Currancy" News Ticker like this

Code:

<script src="http://www.forex-rates.biz/index.php?step=ticker_docwr&bgc=white&fntc=Blue&fsize=14px&ffam=Arial, Helvetica, sans-serif&width=100%&height=20px"></script>
add that to the end of your header ;)


All times are GMT. The time now is 03:02 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.01142 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete