![]() |
Custom template not working
I upgraded from 1.8.0 to 1.8.3, and have had headaches with the results template ever since.
My custom results template worked fine under 1.8.0, but is now not working under 1.8.3. For example, if I search for XML (of which there are 100+ entries), in 1.8.3 I get the message "No results. Did you mean cml?" If, however, I then click on cml as a search term, I get results, in my custom results template. :bang: What changed in the coding of PHPDig between 1.8.0 and 1.8.3 to break my templates? How can I get my template working correctly? :cry: |
Hi. Perhaps check the 1.8.3 config.php file to make sure your template is set.
|
Yes, I've set the $template as
$template = "$relative_script_path/templates/results.htm"; but still no joy. I'm really baffled by this, as it must be a config.php file issue, but cannot identify why the upgrade isn't working. I'm not a programmer, but would altering the 1.8.3 config.php file to remove most differences from the working 1.8.0 config.php be one way around this? |
>> ...but would altering the 1.8.3 config.php file to remove most differences from the working 1.8.0 config.php be one way around this?
Hi, that wouldn't be a good idea. Maybe post links to your template and search so I can look at the HTML source? |
Thanks, Charter. I'll PM the links to you, as I don't want the Website spidered by Google et al.
For interested readers, I'll post the results of Charter's suggestions here for others' future reference. |
If you don't want a site indexed by the search engines, just put a robots.txt file in your root directory that looks like this:
Code:
User-agent: * Of course, if you don't want any human to see the link, that's a whole other story. |
Quote:
And yes, I don't want humans to see the link -- for reasons that are unnecessary to go into here. |
Quote:
|
Hi. Your search is down ATM so maybe when it's back up, it can be checked.
|
Yes, I know.
I decided to wipe the old 1.8.0 installation and install 1.8.3 anew. Interestingly, 1.8.3 wouldn't install -- threw my server and browser into a complete spin. So decided to go for the easiest option: revert back to 1.8.0 and reindex the Website again. I think I'll have to skip 1.8.3. Thanks for your help anyway. |
Hi, what do you mean by "threw my server and browser into a complete spin?"
|
All times are GMT -8. The time now is 01:51 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.