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)
-   -   Highlight Search Terms in Archive from Referring Search Engines (https://vborg.vbsupport.ru/showthread.php?t=105195)

djwins 03-01-2006 04:13 AM

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...

Cap'n Steve 03-01-2006 04:55 AM

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?

djwins 03-01-2006 05:02 AM

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?

Cap'n Steve 03-01-2006 05:59 AM

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.

djwins 03-01-2006 06:05 AM

doesn't say anything.

Cap'n Steve 03-01-2006 07:08 AM

What browser are you using? It depends on the browser sending the referring page and some have settings not to do that.

djwins 03-01-2006 07:14 AM

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!

Cap'n Steve 03-01-2006 07:40 AM

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.

djwins 03-01-2006 07:43 AM

Yes, now I get Referrer: at the bottom of the page.
Yes, i am installing on the site in my profile.
Thanks!

Cap'n Steve 03-01-2006 07:26 PM

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.


All times are GMT. The time now is 03: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.01092 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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