PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Custom template not working (http://www.phpdig.net/forum/showthread.php?t=1168)

ibrown 08-11-2004 12:28 PM

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:

Charter 08-15-2004 03:07 PM

Hi. Perhaps check the 1.8.3 config.php file to make sure your template is set.

ibrown 08-15-2004 03:18 PM

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?

Charter 08-15-2004 03:56 PM

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

ibrown 08-15-2004 11:59 PM

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.

vinyl-junkie 08-16-2004 05:44 AM

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: *
Disallow: /
User-agent: Phpdig
Disallow:

The last two statements are there because you don't want to chase away the phpdig spider. ;)

Of course, if you don't want any human to see the link, that's a whole other story.

ibrown 08-16-2004 06:19 AM

Quote:

Originally posted by vinyl-junkie
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: *
Disallow: /
User-agent: Phpdig
Disallow:

The last two statements are there because you don't want to chase away the phpdig spider. ;)

Of course, if you don't want any human to see the link, that's a whole other story.

Just checked, and yes, I did have my robots.txt file in my root directory and coded correctly.

And yes, I don't want humans to see the link -- for reasons that are unnecessary to go into here.

vinyl-junkie 08-16-2004 06:59 AM

Quote:

Originally posted by ibrown
And yes, I don't want humans to see the link -- for reasons that are unnecessary to go into here.
I understand, and you don't need to elaborate on your reasons for not posting your link. I thought you might already know how to exclude your site from the search engines, but we get enough questions about how to include or exclude a site (or even a directory) that I thought it might be helpful if I posted that additional information.

Charter 08-17-2004 02:35 PM

Hi. Your search is down ATM so maybe when it's back up, it can be checked.

ibrown 08-17-2004 02:47 PM

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.

Charter 08-17-2004 03:12 PM

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.