|
01-16-2005, 07:01 PM | #1 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
PhpDig Version 1.8.7 Released
Hi. PhpDig version 1.8.7 has been released as a 'minor' release. The changes can be found in the Changelog file. Fresh install and upgrade instructions are given in the documentation. Do check this thread on a regular basis for any possible code changes to PhpDig version 1.8.7.
__________________
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. |
01-21-2005, 07:19 PM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
The SEARCH_DEFAULT_LIMIT constant in the config file can only understand 10, 30, or 100 as a value, but this is not noted in the config file. If you should happen to set SEARCH_DEFAULT_LIMIT to 20 for example, then you will get an "undefined offset" notice when error reporting is on high. To allow SEARCH_DEFAULT_LIMIT to take on values other than 10, 30, or 100, do the following:
In function_phpdig_form.php find: Code:
$limit10 = array(10 => 'selected="selected"', 30=> '', 100=> ''); $limit30 = array(10 => '', 30=> 'selected="selected"', 100=> ''); $limit100 = array(10 => '', 30=> '', 100=> 'selected="selected"'); Code:
$limitopt_flag = 0; if (!in_array(SEARCH_DEFAULT_LIMIT,array(10,30,100))) { $limitopt_flag = 1; $limit10[SEARCH_DEFAULT_LIMIT] = ""; $limit30[SEARCH_DEFAULT_LIMIT] = ""; $limit100[SEARCH_DEFAULT_LIMIT] = ""; $limitdef = array(10 => '', 30=> '', 100=> '', SEARCH_DEFAULT_LIMIT=> 'selected="selected"'); $limitoptdef = "<option ".$limitdef[$limite].">".SEARCH_DEFAULT_LIMIT."</option>"; } $limitopt10 = "<option ".$limit10[$limite].">10</option>"; $limitopt30 = "<option ".$limit30[$limite].">30</option>"; $limitopt100 = "<option ".$limit100[$limite].">100</option>"; $limitselectopts = array(10=>$limitopt10, 30=>$limitopt30, 100=>$limitopt100); if ($limitopt_flag == 1) { $limitselectopts[SEARCH_DEFAULT_LIMIT] = $limitoptdef; ksort($limitselectopts); } $selectoptlist = ""; foreach($limitselectopts as $selectopt) { $selectoptlist .= $selectopt; } Code:
<option ".$limit10[$limite].">10</option> <option ".$limit30[$limite].">30</option> <option ".$limit100[$limite].">100</option> Code:
$selectoptlist
__________________
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. |
02-28-2005, 02:37 AM | #3 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
FaberFedor noticed that dashed words such as foo-bar are not considered one word in PhpDig v.1.8.7.
To fix, in robot_functions.php find the phpdigCleanHtml function, and in this function find: Code:
//replace foo characters by space $text = eregi_replace("[*{}()\"\r\n\t-]+"," ",$text); Code:
//replace foo characters by space $text = eregi_replace("[*{}()\"\r\n\t]+"," ",$text);
__________________
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. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PhpDig Version 1.8.5 Released | Charter | Feedback & News | 4 | 12-15-2004 10:18 PM |
PhpDig Version 1.8.4 Released | Charter | Feedback & News | 4 | 12-12-2004 02:43 AM |
PhpDig Version 1.8.3 Released | Charter | Feedback & News | 6 | 08-01-2004 02:04 PM |
PhpDig Version 1.8.2 Released | Charter | Feedback & News | 0 | 07-12-2004 05:41 PM |
PhpDig Version 1.6.3 Released | Charter | Feedback & News | 0 | 11-10-2003 05:00 PM |