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 Groups
Author Message
dmtalon
New Member
New Member



Joined: May 10, 2006
Posts: 21

PostPosted: Wed May 10, 2006 7:23 pm Reply with quote

Ok,

Things were going well, there are a few differences that you have to watch out for because of the patch, but when I got to the modifications for the file:

block-Modules.php

Things get ugly.

The second to last "find" reads:

Code:
if ((is_admin($admin) AND $view == 2) OR $view != 2) {

                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            }


The closest thing I have to that is:

Code:


/* If you copied a new module is the /modules/ directory, it will be added to the database */
if (is_admin($admin)) {
        $content .= "<br><center><strong>"._INVISIBLEMODULES."</strong><br>";
        $content .= "<span class=\"tiny\">"._ACTIVEBUTNOTSEE."</span></center><br>";
        $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='1' AND inmenu='0' ORDER BY title ASC";
        $result = $db->sql_query($sql);
        $dummy = 1;
        while (list($title, $custom_title) = $db->sql_fetchrow($result)) {
                $mn_title = $title;
                $mn_title2 = str_replace("_", " ", $mn_title);
                if (!empty($custom_title)) {
                        $mn_title2 = $custom_title;
                }
                if (!empty($mn_title2) && file_exists("modules/$mn_title/index.php")) {
                        $content .= "<strong><big>&middot;</big></strong> <a href=\"modules.php?name=".$mn_title."\">$mn_title2</a><br>";
                        $dummy = 0;
                }
        }
        if ($dummy) {
                $content .= "<strong><big>&middot;</big></strong> <i>"._NONE."</i><br>";
        }
        $content .= "<br><center><strong>"._NOACTIVEMODULES."</strong><br>";
        $content .= "<span class=\"tiny\">"._FORADMINTESTS."</span></center><br>";
        $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='0' ORDER BY title ASC";
        $result = $db->sql_query($sql);
        $dummy = 1;
        while (list($title, $custom_title) = $db->sql_fetchrow($result)) {
                $mn_title = $title;
                $mn_title2 = str_replace("_", " ", $mn_title);
                if (!empty($custom_title)) {
                        $mn_title2 = $custom_title;
                }
                if (!empty($mn_title2) && file_exists("modules/$mn_title/index.php")) {
                        $content .= "<strong><big>&middot;</big></strong> <a href=\"modules.php?name=".$mn_title."\">$mn_title2</a><br>";
                        $dummy = 0;
                }
        }
        if ($dummy) {
                $content .= "<strong><big>&middot;</big></strong> <i>"._NONE."</i><br>";
        }
}

?>


That goes to the end of the file... I'm not sure where to stop it.

The last find is probably in this mix too... the mod script file says:
Code:


FIND
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '1', '0')");

REPLACE WITH
 $db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '', '1', '0')");



I can do minor 'changes' to the script but this appears to be a fairly fundamental one. Any help would be greatly appreciated. I've been googling for 15-20 minutes without any luck.

Thanks[/code]
 
View user's profile Send private message
montego
Site Admin



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

PostPosted: Mon May 15, 2006 6:44 am Reply with quote

dmtalon,

Very difficult for me too to get this from the post. If you will send me your version of block-modules.php and the text file of the change instructions, I'll attempt to do this for you. Send to: montego _(AT}_ montegoscripts dot com.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
dmtalon







PostPosted: Mon May 15, 2006 8:09 am Reply with quote

I SERIOUSLY appreciate your interest to help, however I ended up going with the Raven 7.6 distribution since it contained Nuke sentinal and groups 'preinstalled'

Thanks for the reply though
 
FireATST
RavenNuke(tm) Development Team



Joined: Jun 12, 2004
Posts: 654
Location: Ohio

PostPosted: Mon May 15, 2006 4:42 pm Reply with quote

EXCELLENT CHOICE..... RavensScripts
 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
natepizzle
New Member
New Member



Joined: Apr 20, 2006
Posts: 8

PostPosted: Thu Sep 14, 2006 10:47 pm Reply with quote

Yea! Way to learn something! boxing
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Groups

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 ©