vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Google Highlight Hack (https://vborg.vbsupport.ru/showthread.php?t=110342)

Nutz 03-13-2006 10:00 PM

Google Highlight Hack
 
Google Highlight Hack

Description
This is a simple hack that highlights keywords searched for when the user uses Google, like the Google catch system. E.g. http://72.14.203.104/search?q=cache:...k&ct=clnk&cd=1

Details
  • 1 Product

Notes
This is adapted from Cal Henderson[http://code.iamcal.com] highlighter code to work with vBulletin
Once some one installs this on a Google searched board I will post an example of the hack at work.

History
1.0
Initial Version

Last Words
I hope you enjoy the hack!
And don't forget to click install please :)

https://vborg.vbsupport.ru/

Thanks,
Mat

Corriewf 03-14-2006 12:35 PM

Cool! GOOD JOB!

Robru 03-14-2006 01:02 PM

Thanks, *click install* :)

Floris 03-14-2006 01:07 PM

nutz, very cool! thanks for sharing :)

Nutz 03-14-2006 01:52 PM

Thnaks :)

Thanks,
Mat

The Realist 03-14-2006 03:40 PM

Installed but dont highlight for me?

georgedd 03-14-2006 03:42 PM

I just installed and activated the product on CodingForums, though somehow can't get it to work. I don't see any references to google.js inside the source code of the thread pages either. How can I verify whether the product is installed correctly? In the CP everything looks to be in order, and the product is listed as active.

thanks!

Nutz 03-14-2006 03:49 PM

Sorry about that wrong hook location :D
You can reinstall the product or change the hook location your self to 'global_complete' :)

Thanks,
Mat

georgedd 03-14-2006 04:22 PM

Thanks, though I think there's still a bug, as the "onload="init_google()" code still doesn't appear on showthread.php pages. I'm guessing because you're only replacing "<body>" verbatim with the new code, whereas in showthread.php, the code is "<body onload="">"

Anyhow, it might be easier just to release this as a standonly JavaScript :)

Ziki 03-14-2006 04:41 PM

I think the plugin just uses the bold/strenght tags or am I wrong?


All times are GMT. The time now is 06:36 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.01082 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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