Closed (won't fix)
Project:
Similar By Terms
Version:
6.x-1.18
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2009 at 22:40 UTC
Updated:
5 Jul 2011 at 00:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
rmiddle commented1. The new caching code uses the standard drupal caching system. It just uses on a per-node bases were the standard cache does it on a per-role bases. So if Boost works within the standard Drupal Caching System then it will work with the updated Similar By Terms. You can disable the cache by simple setting it to never.
2. As for search field that would make since as an independent modules not part of this module.
Thanks
Robert
Comment #2
mikeytown2 commentedboost serves static html through some .htaccess trickery. Thus when an anonymous visitor is browsing your site, they are getting served a static html file. No PHP is run on the server. I like the Similar by Terms module, but I only want the similar by terms block when the visitor hits it from a search engine that is linking to something other then the frontpage. That's where the JS comes into mind; otherwise you could use some PHP ($_SERVER["HTTP_REFERER"]; $_SERVER['REQUEST_URI'];) and control the displaying of it in the block config. All in all I think it will work, so I need to go write up some JS.
Comment #3
rmiddle commentedThis sounds outside the scope of this project. Maybe I am miss understanding why you are tiring to do. I will certainly look at the patch to look into including in this module.
Thanks
Robert
Comment #4
mikeytown2 commentedThis is the Javascript I'm cooking up, going to wait until later to test on a live site
Comment #5
decibel.places commentedI thought there was a module that examines the referrer for search engine URLs to display content selectively - but I can't locate it, perhaps it was just a dream..
I would suggest using a combination of PHP and JS code - because JS might be disabled (and then a Drupal site doesn't work well anyway) and PHP REFERER is not always reliable...
Comment #6
mikeytown2 commentedusing boost, so php isn't an option. less then 1% of users to my site have js off, so I'm not worried about it
Comment #7
mikeytown2 commentedHere's the working code, just tested it
Anyway to add this to the page via a configure option on the admin page? Make it a selection that the admin can choose on admin/settings/similarterms.
http://api.drupal.org/api/function/drupal_add_js
Comment #8
mikeytown2 commentedBetter yet would be to put the option on the block configure page; that would cause class conflictions though, since the block does not have a unique class. Core theme problem... each block has to have a unique class was never was specified. No good solution, other then to change block.tpl.php :( Guess making it a global option is the best bet for now.
Comment #9
mikeytown2 commentedThis is missing any configuration options.
Comment #10
rmiddle commentedSwitched to a views based block this is no longer relevant.
Thanks
Robert