nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Downloads.php for NSN_GR Downloads
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> mSearch
View previous topic :: View next topic  
Author Message
nuken
webmaster


Joined: Jan 02, 2009
Posts: 26

PostPosted: Mon Mar 02, 2009 4:31 pm    Post subject: Downloads.php for NSN_GR Downloads Reply with quote

Here is the file for NSN_GR Downloads 750 and ShortLinks just in case anyone needs it. Replace the modules/mSearch/modules/Downloads.php with this file.


Code:
<?php

class mSDownloads extends searchmodule {
   function mSDownloads(){
      global $prefix;
      $this->name                  = 'Downloads';
      $this->sql_table_with_prefix = $prefix.'_nsngd_downloads';}

   function formatrss($result){
      global $url;
      return '<item>
           <title>Download: '.$result['title'].'</title>
           <link>
           '.$url['scheme'].'://'.$url['host'].$url['path'].'?name=Downloads&amp;op=getit&amp;lid='.$result['rid'].'
           </link>
           <description>
           '.chopwords(strip_tags($result['desc']),192).'
           </description>
           </item>';}
   function gformatresult($result){
      return '<a href="modules.php?name=Downloads&amp;op=getit&amp;lid='.$result['rid'].'">
           '.$result['title'].'</a><br /><small>
           By '.$result['author'].', '.formatdateago($result['date']).'
           </small><br />'.chopwords(strip_tags($result['desc']),192);}
   function formatresult($result){
      return '<b>Download:</b>
           <a href="modules.php?name=Downloads&amp;op=getit&amp;lid='.$result['rid'].'&ttitle='.$result['title'].'">
           '.$result['title'].'</a><br /><small>
           By '.$result['author'].', '.formatdateago($result['date']).'
           </small><br />'.chopwords(strip_tags($result['desc']),192);}
   function doquery(){
      global $prefix, $tblname, $db;
      $q = $this->query[0][1];
      foreach ($q as $query){
         $db->sql_query('INSERT INTO '.$tblname.'
                   (`id`, `relevance`, `date`, `title`, `rid`, `desc`, `author`, `searchmodule`)
                   SELECT CONCAT("Downloads", `lid`) AS `id`, \'1\', UNIX_TIMESTAMP(`date`),
                       `title`, `lid`, `description`, `submitter`, "Downloads"
                   FROM '.$prefix.'_nsngd_downloads
                   WHERE ((title like \'%'.$query.'%\')
                       OR (description like \'%'.$query.'%\'))');}}}
?>
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> mSearch All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.03 Seconds