Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 12:21 pm EST

Geeklog Forums

"more from"


Status: offline

tmarquez

Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
I have upgraded to the new release (1.3.10) and everything wen flawlessly, however I do notice one thing. On my articles, under the section "What's Related" if I click on the "more from " or "more from " it just brings up the search page with the parameters in the address bar, but does not perform the search. I notice it does the same thing on this site as well. Any hints? I'm going to try an look more into it this weekend, but thought I would see if anyone had a quick fix/solution for this. Thanks.
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
 Quote

Status: offline

tmarquez

Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
Has anyone else had this problem too? If not what theme are you using? Trying to narrow down some things.
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The problem is in search.php. See if this fixes it.

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
it's working ...

tnx
 Quote

Status: offline

Gray Mouser

Forum User
Newbie
Registered: 03/08/03
Posts: 1
The fix in the CVS is good. In addition, there is a bug in the search.class.php file -- the links section has always disregarded the user when you do the advanced search or the more by user search. To correct this, I altered the following in function _searchLinks():

Text Formatted Code
if ( $this->_query != "" AND (($this->_type == 'links') OR ($this->_type == 'all')) ) {

 



to this (The Fix in CVS already takes care of what the above line is trying to do), i.e. !="":
Text Formatted Code
 if (($this->_type == 'links') OR ($this->_type == 'all'))  {

 


and inserted:
Text Formatted Code
 
if (!empty($this->_author)) {$sql .= "AND ({$_TABLES['links']}.owner_id = '$this->_author') ";
            }

 


just after the lines:

Text Formatted Code
 
if (!empty($this->_dateStart) AND !empty($this->_dateEnd)) {
$delim = substr($this->_dateStart, 4, 1);
$DS = explode($delim, $this->_dateStart);
$DE = explode($delim, $this->_dateEnd);
$startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]);
$enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]);
$sql .= "AND (UNIX_TIMESTAMP(date) BETWEEN '$startdate' AND '$enddate') ";
            }

 


Hope this helps anyone that has been wondering about the "links" dump in all searches.

Please let me know if there is a better way.
 Quote

Status: offline

tmarquez

Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
Thanks Dirk. Really appreciate it. Happy Holidays to you and yours.
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
 Quote

All times are EST. The time is now 12:21 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content