PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Susann
Spouse Contemplates Divorce


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

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

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 Visit poster's website
montego
Site Admin


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

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

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....
View user's profile Send private message Visit poster's website
Susann
Spouse Contemplates Divorce


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

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

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.
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

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'];
   }
}
View user's profile Send private message Visit poster's website
Susann
Spouse Contemplates Divorce


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

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

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.
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

Excellent.
View user's profile Send private message Visit poster's website
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 939

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

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
Spouse Contemplates Divorce


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

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

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest Đ 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is Đ copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum