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 

Nuke Royal Digital_Goods Sitemapped
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm)
View previous topic :: View next topic  
Author Message
dirtbag
webmaster


Joined: Mar 13, 2006
Posts: 7

PostPosted: Tue May 02, 2006 6:28 pm    Post subject: Nuke Royal Digital_Goods Sitemapped Reply with quote

Code:


if(!defined('ADMIN_FILE') and !defined('MODULE_FILE')) { header("Location: ../../../index.php");  die(); }

class seoDigital_Goods extends searchmodule {
   function seoDigital_Goods(){
      global $prefix;
      $this->name                  = 'Digital_Goods';
      $this->module                = 'Digital_Goods';
      $this->sql_table_with_prefix = $prefix.'_royal_memberships_downloads_deluxe';
   }

   function formatGoogleResult($result){
      global $url;
      return $this->formatGoogleURL($url['host'].$url['path'].'?name=Digital_Goods&op=getdetailed&lid='.$result['rid']);
   }
   function formatSitemapResult($result){
      return '<a href="modules.php?name=Digital_Goods&op=getdetailed&lid='.$result['rid'].'">'.$result['title'].'</a>';
   }
   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("Digital_Goods", `lid`) AS `id`, \'1\', UNIX_TIMESTAMP(`date`),
                       `title`, `lid`, `description`, `submitter`, "Digital_Goods"
                   FROM '.$prefix.'_royal_memberships_downloads_deluxe
                   WHERE ((title like \'%'.$query.'%\')
                       OR (description like \'%'.$query.'%\'))');}
      }
   }


this worked for it on my site..
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm) 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.02 Seconds