Search found 123 matches

by captquirk
Thu Dec 13, 2018 6:39 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

The idea I dreamed up last night works! You can see the details in the Sphider MOD board on this forum. W-A-Y cleaner solution than my first attempt. No need to copy files or create new directories. Search.php works just like it did originally, except that by adding ?sl= [language] you can get a sea...
by captquirk
Thu Dec 13, 2018 6:30 pm
Forum: Sphider MODS
Topic: Designate Search language on the fly
Replies: 0
Views: 516

Designate Search language on the fly

If you want to present the search page in a language other than the language setup from the administration paqnel, this simple modification will do the trick. Edit search.php. Very near the top, change error_reporting(0); $include_dir = "./include"; to error_reporting(0); session_start(); $include_d...
by captquirk
Thu Dec 13, 2018 3:48 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

I dreamed up another solution last night which I will test today. It is for a very simple MOD and will not require any separate directories or copied files. Essentially, it will involve adding a command-line variable to override any language setting.

I'll post later, presuming the idea works.
by captquirk
Thu Dec 13, 2018 4:06 am
Forum: Sphider Help
Topic: Search language
Replies: 2
Views: 492

Search language

As you all know, when administering Sphider you have a variety of languages which can be used on the search pages. In the course of helping with another issue, the topic of language did arise and there is an instance when was being provided in several different languages. What seemed an obvious solu...
by captquirk
Thu Dec 13, 2018 2:29 am
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

Okay... that was trial and error, but I have it working. Not quite as simple, but still better than duplicating EVERYTHING. Lines 61-67... ALMOST my way... This works: $include_dir = "./include"; $template_dir = "./templates"; $common_template_dir = "./common_template"; $tmp_dir ="../sphider/tmp"; $...
by captquirk
Thu Dec 13, 2018 12:47 am
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

I've been "proving" my language solution here locally....
AND I'M HAVING ALL KINDS OF ISSUES!!!
DARN IT!!!

I'll be back.....
by captquirk
Wed Dec 12, 2018 11:57 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

To set the version number to reflect what you REALLY have, run this from the admin folder:
$settings_dir = "../settings";
require "$settings_dir/database.php";

$db->query(
"UPDATE `".$mysql_table_prefix
."settings` SET version_nr='2.2.0-PDO' WHERE id = 1"
);
by captquirk
Wed Dec 12, 2018 11:48 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

Okay. The scenario is that you have Sphider in stalled into a directory name "sphider". In you settings, English is set as the language, so when 'sphider/search.php' is used, the language is English. Now you want to also present a search option in Spanish. Create a directory named 'es_search'. The n...
by captquirk
Wed Dec 12, 2018 4:18 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

I am curious... did it connect with the old 1.3.5 db or the newly created one? If it is the newly created one, the version number should be updated. If you don't? Absolutely no big deal at all until sometime in the future if you ever decided to do an upgrade to the next version (whenever that will b...
by captquirk
Tue Dec 11, 2018 11:23 pm
Forum: Sphider Help
Topic: Updating Error
Replies: 37
Views: 3712

Re: Updating Error

The first half of your combo connects to the database. That is pure mysqli. Quite logical that you get a connection. There is no query using this connection, so just from this I can't tell if that connection is useful. The second half of your combo also connects to the database, AND the following qu...