Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository
Author Message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Mar 04, 2008 4:22 pm Reply with quote

Can someone confirm there isn´t a issue with dynamic titles with NSN GR Downloads in RavenNuke vers. 2.20.01.
It just doesn ´t work correctly looking at the categories of the downloads.
Its possible I broke somewhere the code of the thousand NSN GR files by changing all br and img etc. to make this more XHTML compatible.
I have another site where it works without any problems but its not RN version 2.20.01
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Mar 04, 2008 10:08 pm Reply with quote

Susann, I am running 2.20.01 on Montego Scripts now and I see that I forgot to make sure that I did not overwrite the NSN GR Downloads statements. We cannot use the stock RavenNuke DynamicTitles with NSN GR Downloads.

You will need to re-replace the Downloads section within the new RN dynamic_titles.php with what I provided in the 1.2.0 download from my site.

Remember, RavenNuke does not come with native NSN GR Download support... So, its the same issue with ShortLinks. I always have to remember to merge code rather than just overwrite....

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Susann







PostPosted: Wed Mar 05, 2008 4:42 am Reply with quote

I have all required rules for NSN GR within the .htaccess and in includes/dynamic titles:
Code:


// Downloads for NSN GR Downloads
elseif ($name == 'Downloads') {
   global $op, $cid, $lid;
   if ($cid) {
      $sql = 'SELECT title, parentid, cdescription FROM '.$prefix.'_nsngd_categories WHERE cid=\''.intval($cid).'\'';
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      $asDTText['category'] = $row['title'];
      $asDTText['text'] = substr($row['cdescription'], 0, $text_size);
      if ($row['parentid'] == 0) {
         $newpagetitle = $asDTText['category'].$dt_delim.$asDTText['text'].$dt_delim.$sitename;
      } else {
         $sql = 'SELECT title FROM '.$prefix.'_nsngd_categories WHERE cid=\''.intval($row['parentid']).'\'';
         $result = $db->sql_query($sql);
         $row = $db->sql_fetchrow($result);
         $newpagetitle = $asDTText['category'].$dt_delim.$asDTText['text'].$dt_delim.$row['title'].$dt_delim.$sitename;
      }
   } elseif ($op == 'getit') {
      $sql = 'SELECT title, description FROM '.$prefix.'_nsngd_downloads WHERE lid=\''.intval($lid).'\'';
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      $newpagetitle = $row['title'].$dt_delim.substr($row['description'], 0, $text_size);
   }
}


Still don´t know why this doesn´t work.
edit: There isn´t a description only the name of the download within the title.
 
montego







PostPosted: Wed Mar 05, 2008 6:10 pm Reply with quote

Susann, not sure it will help, but this is what I am running on Montego Scripts:

Code:


/*
 * NSN GR Downloads
 */
elseif ($name == 'Downloads') {
   global $op, $cid, $lid;
   if ($cid) {
      $sql = 'SELECT title, parentid, cdescription FROM '.$prefix.'_nsngd_categories WHERE cid=\''.intval($cid).'\'';
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      $asDTText['category'] = $row['title'];
      $asDTText['text'] = $row['cdescription'];
      if ($row['parentid'] == 0) {
         $newpagetitle = $asDTText['category'] . $dt_sDelim . $asDTText['text'] . $dt_sDelim . $sitename;
      } else {
         $sql = 'SELECT title FROM '.$prefix.'_nsngd_categories WHERE cid=\''.intval($row['parentid']).'\'';
         $result = $db->sql_query($sql);
         $row = $db->sql_fetchrow($result);
         $newpagetitle = $asDTText['category'] . $dt_sDelim . $asDTText['text'] . $dt_sDelim . $row['title'] . $dt_sDelim . $sitename;
      }
   } elseif ($op == 'getit') {
      $sql = 'SELECT title, description FROM '.$prefix.'_nsngd_downloads WHERE lid=\''.intval($lid).'\'';
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      $newpagetitle = $row['title'] . $dt_sDelim . $row['description'];
   }
}
 
Susann







PostPosted: Wed Mar 05, 2008 7:30 pm Reply with quote

Montego thanks.
I have two different versions and there is one line different thats what I found out:
So I prefer the working version with this line:
Code:


$asDTText['text'] = $row['cdescription'];
      if ($row['parentid'] == 0)


instead of:
Code:
$asDTText['text'] = substr($row['cdescription'], 0, $text_size);

      if ($row['parentid'] == 0)


Its seems this is solved.
 
montego







PostPosted: Sat Mar 08, 2008 1:45 pm Reply with quote

Excellent.
 
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Tue Jul 08, 2008 12:32 pm Reply with quote

What do I need to do with this module? I am confused on edits I should make... Thank you.
 
View user's profile Send private message Visit poster's website
Susann







PostPosted: Tue Jul 08, 2008 5:13 pm Reply with quote

Quess you don´t have the same problem I had month before with my different versions of code and RavenNuke.
So if I where you I would only check out at montegoscripts if there is already a new version of dynamic titles for NSN GR downloads available.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Gr Downloads - a.k.a NukeDepository

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©