garvinhicking wrote:So what else did you have to hack to get it running? Just curious!
Regards,
Garvin
oh, sorry, in include/functions.inc.php line 488 and below
serendipity_db_query(
//@sprintf(
//"UPDATE %s%s
//SET count = count + 1
//WHERE scheme = '%s'
//AND host = '%s'
//AND port = '%s'
//AND path = '%s'
//AND query = '%s'
//AND day = '%s'
//%s",
$serendipity['dbPrefix'],
$list,
serendipity_db_escape_string($url_parts['scheme']),
serendipity_db_escape_string($url_parts['host']),
serendipity_db_escape_string($url_parts['port']),
serendipity_db_escape_string($url_parts['path']),
serendipity_db_escape_string($url_parts['query']),
date('Y-m-d'),
($entry_id != 0) ? "AND entry_id = '". (int)$entry_id ."'" : ''
);
if (serendipity_db_affected_rows() == 0) {
serendipity_db_query(
//sprintf(
//"INSERT INTO %s%s
// (entry_id, day, count, scheme, host, port, path, query)
//VALUES (%d, '%s', 1, '%s', '%s', '%s', '%s', '%s')",
$serendipity['dbPrefix'],
$list,
(int)$entry_id,
date('Y-m-d'),
serendipity_db_escape_string($url_parts['scheme']),
serendipity_db_escape_string($url_parts['host']),
serendipity_db_escape_string($url_parts['port']),
serendipity_db_escape_string($url_parts['path']),
serendipity_db_escape_string($url_parts['query'])
);
you can see I just commented out entering the info into the table.
I also had to remove 2 ")" after
($entry_id != 0) ? "AND entry_id = '". (int)$entry_id ."'" : '' and
serendipity_db_escape_string($url_parts['query'])
to get rid of some parse errors