PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  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
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 16

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

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: 7458
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
dmtalon
New Member
New Member


Joined: May 10, 2006
Posts: 16

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

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
View user's profile Send private message
FireATST
Involved
Involved


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

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

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 Back to top

Yea! Way to learn something! boxing
View user's profile Send private message
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