Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Highlight Search Terms in Archive from Referring Search Engines Details »»
Highlight Search Terms in Archive from Referring Search Engines
Version: 1.01, by Cap'n Steve Cap'n Steve is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-12-2006 Last Update: 01-27-2006 Installs: 8
Uses Plugins
Additional Files  
No support by the author.

Using this modification, when someone finds your site through a search engine and clicks the URL that takes them to the Archive, the terms they searched for will be highlighted. This should work on all version of vBulletin less than or equal to 3.5.3. If you have 3.5.4 or later, install this hack instead.

Supported Search Engines (If you can think of more, please let me know.):
Google
Yahoo!
MSN
Altavista
Lycos
Ask Jeeves

Show Your Support

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

Comments
  #12  
Old 03-01-2006, 04:13 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...I downloaded the updated version, it didn't seem to work and now the link to the upgdate doesn't work. I'm guessing you found a problem with it or something...
Reply With Quote
  #13  
Old 03-01-2006, 04:55 AM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it got deleted as a duplicate thread. I'll attach it in this post for now and hopefully they'll let me put it back in its own thread. What do you mean it didn't work?
Reply With Quote
  #14  
Old 03-01-2006, 05:02 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not highlighting anything when i click through to my archive from google (or yahoo).

Is it just the XML file that has changed for this version?
Reply With Quote
  #15  
Old 03-01-2006, 05:59 AM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The xml file is the only thing that's required now. You can delete the other files.

Try finding this in the Search Text Highlighting plugin:
PHP Code:
if ($vbulletin->options['enablehighlight'] AND preg_match('/([a-z0-9\-]+)\.([a-z]{3}\/|[a-z]{2}\.[a-z]{2}\/|[a-z]{2}\/)/i'$_ENV['HTTP_REFERER'], $domain)) { 
and add above it
PHP Code:
$output .= '<h1 style="color:red;">' $_ENV['HTTP_REFERER'] . '</h1>'
It should print something in red when you follow an archive link. Tell me what it says or if it doesn't say anything.
Reply With Quote
  #16  
Old 03-01-2006, 06:05 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesn't say anything.
Reply With Quote
  #17  
Old 03-01-2006, 07:08 AM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What browser are you using? It depends on the browser sending the referring page and some have settings not to do that.
Reply With Quote
  #18  
Old 03-01-2006, 07:14 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've tried it with both IE and Firefox and I haven't been able to get it to work with either.
Thanks for your help, btw!
Reply With Quote
  #19  
Old 03-01-2006, 07:40 AM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change the line you added to this:
PHP Code:
$output .= '<h1 style="color:red;">Referrer:' $_ENV['HTTP_REFERER'] . '</h1>'
It should at least say "Referrer" in red somewhere. If not, then the plugin's not even getting executed. Are you installing this on the site listed as your homepage? I'll try and take a look at it, but it'll have to wait until tomorrow.
Reply With Quote
  #20  
Old 03-01-2006, 07:43 AM
djwins djwins is offline
 
Join Date: Jan 2005
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, now I get Referrer: at the bottom of the page.
Yes, i am installing on the site in my profile.
Thanks!
Reply With Quote
  #21  
Old 03-01-2006, 07:26 PM
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Location: Kalamazoo, MI, USA
Posts: 745
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, click this link and tell me what it says after "Referrer". If it doesn't say anything, it's a problem with your browser, but it looks like it has something to do with the way your host has PHP set up.
Reply With Quote
Reply


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 02:08 AM.


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.04608 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete