PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 08-11-2004, 12:28 PM   #1
ibrown
Green Mole
 
ibrown's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 10
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.



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?

ibrown is offline   Reply With Quote
Old 08-15-2004, 03:07 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps check the 1.8.3 config.php file to make sure your template is set.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-15-2004, 03:18 PM   #3
ibrown
Green Mole
 
ibrown's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 10
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?
ibrown is offline   Reply With Quote
Old 08-15-2004, 03:56 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
>> ...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?
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-15-2004, 11:59 PM   #5
ibrown
Green Mole
 
ibrown's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 10
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.

Last edited by ibrown; 08-16-2004 at 12:18 AM.
ibrown is offline   Reply With Quote
Old 08-16-2004, 05:44 AM   #6
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
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.
vinyl-junkie is offline   Reply With Quote
Old 08-16-2004, 06:19 AM   #7
ibrown
Green Mole
 
ibrown's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 10
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.
ibrown is offline   Reply With Quote
Old 08-16-2004, 06:59 AM   #8
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
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.
vinyl-junkie is offline   Reply With Quote
Old 08-17-2004, 02:35 PM   #9
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Your search is down ATM so maybe when it's back up, it can be checked.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 08-17-2004, 02:47 PM   #10
ibrown
Green Mole
 
ibrown's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 10
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.
ibrown is offline   Reply With Quote
Old 08-17-2004, 03:12 PM   #11
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi, what do you mean by "threw my server and browser into a complete spin?"
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please Help! Custom Results Page jackmoring How-to Forum 0 08-23-2006 11:23 AM
Custom Template That Utilizes Clickstats vinyl-junkie Mod Submissions 0 11-28-2004 08:17 PM
Need to modify custom template for click stats vinyl-junkie How-to Forum 2 10-04-2004 07:34 PM
Custom Template Tag garyp75 How-to Forum 1 08-09-2004 02:43 PM
custom install rom Script Installation 16 02-23-2004 10:05 AM


All times are GMT -8. The time now is 02:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.