Thread: Ajax Search
View Single Post
  #7  
Old 24th November 2010, 06:11
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink remplace Genre for seeders
oki yes sorry ^^

you have not installed GENRE MOD
so replace genre by seeders


in ajaxsearch.php

replace:
PHP Code:
switch (strtolower($config['systemtype']))
                {
                    case 
"drupal":
                        
$storytable "torrents";
                        
$titlefield "name";
                        
$bodyfield "genre";
                        
$storyid "id";
                        
$desturl "details.php?id=--storyid--";
                        break; 
with this:
PHP Code:
switch (strtolower($config['systemtype'])) 
                { 
                    case 
"drupal"
                        
$storytable "torrents"
                        
$titlefield "name"
                        
$bodyfield "seeders"
                        
$storyid "id"
                        
$desturl "details.php?id=--storyid--";
                        break; 
and replace this:
PHP Code:
 echo "<p style=\"cursor: pointer;\" onclick=\"document.location='$linkurl'\"<strong>" $row[$titlefield] . "</strong> - $contents</p>"
by this:
PHP Code:
echo "<p style=\"cursor: pointer;\" onclick=\"document.location='$linkurl'\"<font color=navy><b>" $row[$titlefield] . "</b> - $contents Seeders</font></p>"
is work :bubble:

Last edited by lafouine022; 25th November 2010 at 00:20.
Reply With Quote
The Following 4 Users Say Thank You to lafouine022 For This Useful Post:
FENIX (26th January 2013), Marco (16th October 2013), nicukent (27th February 2011), PAX (5th March 2012)