Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
UKBL ~ Ajax Google News Bar on ForumHome Details »»
UKBL ~ Ajax Google News Bar on ForumHome
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.1 Rating:
Released: 02-17-2009 Last Update: Never Installs: 38
Template Edits
Re-useable Code  
No support by the author.

UKBL ~ Ajax Google News Bar on ForumHome



Heres another Great Google addition for your Site, A customised Google News bar, Sits quitely under your Navbar and updates with your chosen news type.




This is really easy to edit and upload to your site.

First of all Download the Code in the Zip File, Open in a text editor, Notepads fine, and ...

and Find

Code:
executeList : ["Business News"]
Change the word "Business News" with any other search term associated with your site, so if your site is a Parenting Site, then you would add words associated with that.

So change the words within the brackets and save.

Then Copy and paste the entire code to the very end of your Header Template, or anywhere else on your forum.

Click Install if you use

Download Now

File Type: zip googlenews.zip (52.7 KB, 257 views)

Screenshots

File Type: jpg google-logo1.jpg (30.7 KB, 0 views)
File Type: jpg google news.jpg (35.5 KB, 0 views)

Show Your Support

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

Comments
  #32  
Old 02-22-2009, 01:19 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bmastro View Post
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?

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
Reply With Quote
  #33  
Old 02-22-2009, 01:22 PM
Internetcafe Internetcafe is offline
 
Join Date: May 2008
Location: London
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you get the links from the newsfeed to open in a new window ?
Reply With Quote
  #34  
Old 02-22-2009, 01:35 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Internetcafe View Post
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:
Reply With Quote
  #35  
Old 02-22-2009, 02:51 PM
Bmastro Bmastro is offline
 
Join Date: Jan 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I have the API key, but I don't know where to type it in your code
Reply With Quote
  #36  
Old 02-22-2009, 08:12 PM
leenster leenster is offline
 
Join Date: Dec 2005
Location: Ontario, Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by concepts View Post
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"
Reply With Quote
  #37  
Old 02-22-2009, 08:23 PM
leenster leenster is offline
 
Join Date: Dec 2005
Location: Ontario, Canada
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Internetcafe View Post
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
Reply With Quote
  #38  
Old 02-22-2009, 09:21 PM
Bmastro Bmastro is offline
 
Join Date: Jan 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by leenster View Post
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!!!
Reply With Quote
  #39  
Old 02-23-2009, 05:53 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #40  
Old 02-23-2009, 09:42 PM
zelnik zelnik is offline
 
Join Date: Aug 2008
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod but is there anyway of adapting it for a live currency rate?
Reply With Quote
  #41  
Old 02-23-2009, 11:30 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zelnik View Post
Great mod but is there anyway of adapting it for a live currency rate?
Not that i know off 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
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 10:35 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.04756 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (6)bbcode_php
  • (6)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete