|
10-10-2005, 01:25 PM | #1 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
how to stop search results being messed up all over page
Hey,
I just had a go a creating my first quick and basic template based on the simple.html template but with a little header. It looks nice, until you search and you see that the search results are muddled and confused all over the page and the header is repeated numerous times. Any help is much appriciated, I'm thinking the fix must be reasonabley simple for one with an expirienced eye for this thing, the addy is: http://www.compulsivethinker.com/thi...ime/search.php many thanks Tom |
10-14-2005, 08:58 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Hmm, that is strange. The cthinker.html template itself looks okay. How are you calling the template? In the config file, do you have the bold parts in the following code:
Code:
$templates_array = array('black.html','bluegrey.html','corporate.html','green.html','grey.html','lightgreen.html','linear.html','newspaper.html','phpdig.html','simple.html','terminal.html','yellow.html','gaagle.html'); if(isset($template_demo) && in_array($template_demo, $templates_array)) { $template = "$relative_script_path/templates/cthinker.html"; } else { $template = "$relative_script_path/templates/cthinker.html"; }
__________________
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. |
10-15-2005, 11:05 AM | #3 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
yep, the code I have there is:
Code:
$templates_array = array('black.html','bluegrey.html','corporate.html','green.html','grey.html ','lightgreen.html','linear.html','newspaper.html','phpdig.html','simple.ht ml','terminal.html','yellow.html','gaagle.html'); if(isset($template_demo) && in_array($template_demo, $templates_array)) { $template = "$relative_script_path/templates/cthinker.html"; } else { $template = "$relative_script_path/templates/cthinker.html"; } any more help would be gratefully received. cheers |
10-15-2005, 04:38 PM | #4 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
So I tested your template, and the PhpDig change I made was to set the cthinker.html template name like in my previous post. The results can be seen here. I'd suggest FTPing the original PhpDig files back over to the server, as it seems a code change was made somewhere to make it repeat on your site.
__________________
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. |
10-15-2005, 06:27 PM | #5 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
that would seem to be the case...but i just uploaded a completely new download of phpDig, all i changed were the db connection details, the template appropriation code you mentioned above and the admin password and (as u can still see at http://www.compulsivethinker.com/thi...ime/search.php) i got the same result as i always get.
i'm tearing my hair out with this, you make it look so easy... do you think the problem could lie with my host? ta for all the help btw... Last edited by supafunk; 10-15-2005 at 06:29 PM. |
10-15-2005, 06:42 PM | #6 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
What version of PhpDig are you using?
__________________
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. |
10-15-2005, 07:45 PM | #7 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
i have just now tried it with both the latest experimental and stable releases. the one currently running is the stable one. Both editions I downloaded fresh today...
|
10-15-2005, 07:59 PM | #8 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
I just set up a fresh database to work with the stable version and indexed three sites, but still the same messed up results...
|
10-15-2005, 08:30 PM | #9 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
With PhpDig 1.8.7, you should not index multi-byte content or use UTF-8 in the following tag, as PhpDig 1.8.7 is not capable of properly understanding multi-byte content:
Code:
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> PhpDig 1.8.8 RC1 uses UTF-8, but if you are mixing and matching PhpDig versions, that might cause some weirdness in the templated page as encoding might be the issue, and though I'm not totally sure of the cause, I doubt it is your host. First try using charset=ISO-8859-1 in the META tag, and if that doesn't work, try a fresh install, fresh tables, fresh index, and then see if the page looks okay. If you meet the PhpDig 1.8.8 RC1 requirements, I would suggest using that version.
__________________
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. |
10-15-2005, 08:53 PM | #10 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
I can't thank you enough. changing the charset to ISO-8859-1 worked a treat on the install with both the new db I created and then again perfectly with the original database I was working with... I am now hoping it will work when i upgrade to 1.8.8 RC1.
now I can finally move on... many, many, many thanks. |
10-15-2005, 09:03 PM | #11 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
I just upgraded to 1.8.8 RC1 and it seems to be fine still. Although I havent indexed any new sites with this version and I'm pretty sure the sites currently in the db were indexed with 1.8.7...
I'll try the template you attached now... |
10-15-2005, 09:04 PM | #12 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
oh it disappeared...
|
10-15-2005, 09:11 PM | #13 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
Oops, here is the template again. It was taken away as it looked like charset was the issue. Note that the template has UTF-8 in the META tag, so if you use it with PhpDig 1.8.7 of course change the tag.
__________________
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. |
10-15-2005, 09:19 PM | #14 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
PS: For PhpDig 1.8.8 RC1, the META tag should have UTF-8 instead of ISO-8859-1, because once you do the conversion on the files and tables, everything should be in UTF-8 encoding.
__________________
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. |
10-15-2005, 09:33 PM | #15 |
Green Mole
Join Date: Oct 2005
Posts: 9
|
Yup cool. But the encoding on my original template was utf-8 and I'm sure I tried it with the updated tables after using the upgrade sql that comes with 1.8.8. Oh well, seems to be working okay now.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search results returns blank page | Anton | Troubleshooting | 1 | 02-11-2006 10:20 PM |
search results page | lukemack | How-to Forum | 1 | 11-10-2005 09:48 PM |
Search page problems, no results | kalli | Troubleshooting | 1 | 09-03-2005 12:55 PM |
Search on search results page not working | bforsyth | Troubleshooting | 10 | 08-20-2004 09:35 PM |
highlight search results on page? | rediray | How-to Forum | 2 | 10-03-2003 03:40 AM |