PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue May 16, 2006 9:18 am Reply with quote Back to top

Anyone have esolution running on RavenNuke ?

If so please post here ...
im looking for the edited versions of the root files where esolution is edited into....
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue May 16, 2006 2:51 pm Reply with quote Back to top

Since RN76 is phpNuke76 based, if you have the edited files for phpNuke76 then just run a compare against the RN76 files and merge the two.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Tue May 16, 2006 3:23 pm Reply with quote Back to top

well i just did and there are some changes...

for example...

at some point my phpnuke 7.6 modules.php version reads :


} else {
die ("Sorry, such file doesn't exist...");
}
}/********* E-Solution 1.5 starts*********/
elseif ($view > 3 AND is_premium($user,$name) OR is_admin($admin)) {
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
@include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
elseif ($view > 3 AND !is_user($user)
|| $view > 3 AND !is_premium($user,$name)
|| $view > 3 AND !is_admin($admin)) {
if (file_exists("modules/E-Solution/public/modulecustom.php")){
define('MODULE_ESOLUTION',TRUE);
include("modules/E-Solution/public/modulecustom.php");
}
}
/***********************End E-solution*******************/
else {
$pagetitle = "- "._ACCESSDENIED."";








while at the same point the ravennuke 7.6 edit reads :



die();
}
}
elseif($view > 3 AND is_premium($user,$name) OR is_admin($admin)) {
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
@include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
elseif ($view > 3 AND !is_user($user)
|| $view > 3 AND !is_premium($user,$name)
|| $view > 3 AND !is_admin($admin)) {
if (file_exists("modules/E-Solution/public/modulecustom.php")){
define('MODULE_ESOLUTION',TRUE);
include("modules/E-Solution/public/modulecustom.php");
}

} else {
$pagetitle = "- "._FILENOTFOUND;


So at this moment im a bit blind... Smile
Im sure you see the difference

Anyway ,the major problem seems to be that allthough the subscriber of the site in question must have access to certain modules but he doesnt.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue May 16, 2006 9:38 pm Reply with quote Back to top

As I said, you must then determine what needs to be done by merging the old with the new Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 2:23 am Reply with quote Back to top

well i hoped for more feedback from other members as well,i cant imagine nobody with ravennuke uses this,or that uses it with an upgraded nuke to ravennuke ..
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 4:32 am Reply with quote Back to top

what i did find out so far is that allthough i set it to membership only,.. the system keeps setting it to groups only ,according who can view this in modules admin..

ok so looking in the database shows that view for the testmodule is 4 !
Thats a bit weird

i set it in esolution config (module permissions) at royal members only,and when i look after that at the module permissions as to who can view this,it shows its set to groups only !

thats completely wrong and that will never work ...
So the groups is where it all goes wrong i guess....

anyone....
View user's profile Send private message
montego
Site Admin


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

PostPosted: Wed May 17, 2006 5:31 am Reply with quote Back to top

hitwalker, yes, NSN Groups and eSolution are in conflict in their use of the $view variable. I think I had seen this once before in these forums. It is not impossible to do, but you would have to change either the NSN Groups code (in all its places) or eSolution to use a value of '5' instead of '4' in the $view variable.

Hopefully someone has already done this (as you are trying to get to here).
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 5:39 am Reply with quote Back to top

Well i did tried a few ,but could be doing it wrong..
this is the modules.php, what would you make out of it...?

Code:

<?php

/********************************************************/
/* NSN Groups                                           */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright � 2000-2005 by NukeScripts Network         */
/********************************************************/

define('MODULE_FILE', true);
require_once("mainfile.php");
$module = 1;
$name = trim($name);
if(isset($name)) {
    if(eregi("http\:\/\/", $name)) { die("Hi&nbsp;and&nbsp;Bye"); }
    if(eregi("http\:\/\/", $file)) { die("Hi&nbsp;and&nbsp;Bye"); }
    $modstring = strtolower($_SERVER['QUERY_STRING']);
    if(stripos_clone($modstring,"&user=") AND ($name=="Private_Messages" || $name=="Forums" || $name=="Members_List")) header("Location: index.php");
    global $nukeuser, $db, $prefix;
    $nukeuser = base64_decode($user);
    $nukeuser = addslashes($nukeuser);
    $result = $db->sql_query("SELECT * FROM `".$prefix."_modules` WHERE `title`='$name'");
    $row = $db->sql_fetchrow($result);
    $mod_active = intval($row['active']);
    $view = intval($row['view']);
    $groups = $row['groups'];
    if(($mod_active == 1) OR is_admin($admin)) {
        if(!isset($mop)) { $mop="modload"; }
        if(!isset($file)) { $file="index"; }
        if(ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mop)) {
          $pagetitle = "- "._SOCOOL;
          include("header.php");
          OpenTable();
          echo "<center><b>"._SOCOOL."</b></center><br>";
          echo "<center>"._GOBACK."</center>";
          CloseTable();
          include("footer.php");
          die();
        } else {
          $ThemeSel = get_theme();
          if(file_exists("themes/$ThemeSel/modules/".$name."/".$file.".php")) {
            $modpath = "themes/$ThemeSel/";
          } else {
            $modpath = "";
          }
          $modpath .= "modules/".$name."/".$file.".php";
          if(file_exists($modpath)) {
            if($view == 0) {
              include($modpath);
            } elseif($view == 1 AND (is_user($user) OR is_group($user, $name) OR is_admin($admin))) {
              include($modpath);
            } elseif($view == 2 AND is_admin($admin)) {
              include($modpath);
            } elseif($view == 3 AND paid()) {
              include($modpath);
            } elseif($view > 3 AND in_groups($groups)) {
              include($modpath);
            } else {

$pagetitle = "- "._RESTRICTEDAREA;
              include("header.php");
              OpenTable();
              echo "<center><b>"._RESTRICTEDAREA."</b></center><br>";
              echo "<center>"._GOBACK."</center>";
              CloseTable();
              include("footer.php");
              die();
            }
}
elseif($view > 3 AND is_premium($user,$name) OR is_admin($admin)) {
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
@include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
elseif ($view > 3 AND !is_user($user)
|| $view > 3 AND !is_premium($user,$name)
|| $view > 3 AND !is_admin($admin)) {
if (file_exists("modules/E-Solution/public/modulecustom.php")){
define('MODULE_ESOLUTION',TRUE);
include("modules/E-Solution/public/modulecustom.php");
}

} else {
            $pagetitle = "- "._FILENOTFOUND;
            include("header.php");
            OpenTable();
            echo "<center><b>"._FILENOTFOUND."</b></center><br>";
            echo "<center>"._GOBACK."</center>";
            CloseTable();
            include("footer.php");
            die ();
          }
        }
 } else {
      $pagetitle = "- "._MODULENOTACTIVE;
      include("header.php");
      OpenTable();
      echo "<center>"._MODULENOTACTIVE."</center><br>";
      echo "<center>"._GOBACK."</center>";
      CloseTable();
      include("footer.php");
      die ();
    }
} else {
  $pagetitle = "- "._MODULENOTFOUND;
  include("header.php");
  OpenTable();
  echo "<center>"._MODULENOTFOUND."</center><br>";
  echo "<center>"._GOBACK."</center>";
  CloseTable();
  include("footer.php");
  die ();
}

if(!function_exists("stripos_clone")) {
  function stripos_clone($haystack, $needle, $offset=0) {
    return strpos(strtoupper($haystack), strtoupper($needle), $offset);
  }
}

?>

View user's profile Send private message
montego
Site Admin


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

PostPosted: Wed May 17, 2006 6:51 am Reply with quote Back to top

Quote:

what would you make out of it


Maybe a "Party Hat. Broach. Teradactile"! ROTFL

Hey, I don't pretend to know anything about eSolutions, so cannot help you there. I only know NSN Groups. It is this section of code that checks the $view variable. NSN Groups uses '4' and so does eSolutions (I am assuming).

Code:

            if($view == 0) {
              include($modpath);
            } elseif($view == 1 AND (is_user($user) OR is_group($user, $name) OR is_admin($admin))) {
              include($modpath);
            } elseif($view == 2 AND is_admin($admin)) {
              include($modpath);
            } elseif($view == 3 AND paid()) {
              include($modpath);
            } elseif($view > 3 AND in_groups($groups)) {
              include($modpath);
            } else {

$pagetitle = "- "._RESTRICTEDAREA;
              include("header.php");
              OpenTable();
              echo "<center><b>"._RESTRICTEDAREA."</b></center><br>";
              echo "<center>"._GOBACK."</center>";
              CloseTable();
              include("footer.php");
              die();
            }


Depending on which one you are thinking of converting (either NSN Groups OR eSolutions), it will change the approach. Lets say you are going to "stick" with NSN Groups using '4'. Then this would change to something like this:

Code:

            if($view == 0) {
              include($modpath);
            } elseif($view == 1 AND (is_user($user) OR is_group($user, $name) OR is_admin($admin))) {
              include($modpath);
            } elseif($view == 2 AND is_admin($admin)) {
              include($modpath);
            } elseif($view == 3 AND paid()) {
              include($modpath);
            } elseif($view == 4 AND in_groups($groups)) {
              include($modpath);
            } elseif($view > 4 AND !is_admin($admin)) {
                   if (file_exists("modules/E-Solution/public/modulecustom.php")){
                      define('MODULE_ESOLUTION',TRUE);
                       include("modules/E-Solution/public/modulecustom.php");
                   }
           
             ... maybe more eSolutions code??? ....

           } else {

$pagetitle = "- "._RESTRICTEDAREA;
              include("header.php");
              OpenTable();
              echo "<center><b>"._RESTRICTEDAREA."</b></center><br>";
              echo "<center>"._GOBACK."</center>";
              CloseTable();
              include("footer.php");
              die();
            }


Again, I know nothing about eSolutions, so you are going to have to find someone who has already done this integration or be the first. Smile
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 6:59 am Reply with quote Back to top

well i can give that a try to...
thanks....
ill will post back as soon as i know more...
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 1:11 pm Reply with quote Back to top

i wish i could be more happy about this but i cant...Smile
the only thing we gained is that the test module shows and can be used.
situation is that the module is set to subscribed only,but my test account could use the test module...so it gave access to non subscribers....
yesterday i also invited bob......as its his nsn ...bob...are you around..or anyone else who can help with this...?
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Wed May 17, 2006 4:36 pm Reply with quote Back to top

ok its solved.. Smile
Cause we were talking about a real running site we couldnt wait any longer as i tried several things..
so only thing left was to delete the ravennuke and use the normal nuke version,that worked..everybody happy,im happy ...
View user's profile Send private message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Thu May 18, 2006 8:16 am Reply with quote Back to top

Quote:
I think I had seen this once before in these forums.
Only registered users can see links on this board!
Get registered or login to the forums!


That would be me, and the topic lives on.

Do you think if I just remove nsn groups from the database everything would go back to the normal functions?

Thanks <3
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Thu May 18, 2006 8:20 am Reply with quote Back to top

no....
its clear that esolution and nsn groups that go together...
View user's profile Send private message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Thu May 18, 2006 8:26 am Reply with quote Back to top

Quote:
no....
its clear that esolution and nsn groups that go together...


Im assuming you wanted to say that its clear they dont go together?

I know this and thats why im asking if I can just remove nsn groups all together and have my good old e-solution permissions back.

Thanks man Smile
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Thu May 18, 2006 8:29 am Reply with quote Back to top

well indeed,they dont go together..
only thing you have to do is to remove every trace / code of nsn groups...
View user's profile Send private message
montego
Site Admin


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

PostPosted: Fri May 19, 2006 6:12 am Reply with quote Back to top

hitwalker wrote:
well indeed,they dont go together..
only thing you have to do is to remove every trace / code of nsn groups...


hitwalker is right. You would have to remove the additional fields and tables added for NSN Groups as well as all the code (which might not be as easy). It can be done if you have a good comparison tool, such as Winmerge or Beyond Compare, to compare the core nuke (patched) code with RN76 equivalents.
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Fri May 19, 2006 3:11 pm Reply with quote Back to top

well i installed it and everything is running..... i just have nsn groups not activated.... my site is based off who can download video instructions... and all seeems to work. like i said the only thing i saw where there is difference is where you poste above about the 4..

do you have modules that are only accessible to subscribers?? is that the problem?
View user's profile Send private message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Fri May 19, 2006 3:51 pm Reply with quote Back to top

Quote:
do you have modules that are only accessible to subscribers?? is that the problem?


Well right now I have one forum section and the downloads for subscribers.*works good still*. I would like to make a module for them but thats where the problem comes in.

Does raven have a list of the edits he did in these files for nsn groups, or should I just download nsn groups to find the edits?


Thanky
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Fri May 19, 2006 4:12 pm Reply with quote Back to top

lol...well sure it looks like it runs ok..
but you better make a few accounts....and start testing..
member 1 = is just a member,try if he has access to subscribed modules.
the rest of the samples you can think of yourself....
ive tried it all,even with the suggestions of montego...
View user's profile Send private message
viper155
Regular
Regular


Joined: Feb 18, 2006
Posts: 99

PostPosted: Fri May 19, 2006 4:19 pm Reply with quote Back to top

Your right hitwalker, I cant set any modules to be only subscribers.

The good part is that I only use the downloads and one forum to be protected.

I did want to make a module protected for subscribers only but that is indeed the real problem here.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri May 19, 2006 5:36 pm Reply with quote Back to top

I had been including a copy of the NSN Groups in the downloads but because of all the different setups these days and the size of the d/l. I stopped supplying it. You can just d/l from Bob's site and see what all the changes were.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri May 19, 2006 10:52 pm Reply with quote Back to top

I guess this will always be a problem when none core nuke modules are included in any distro.
One of my own sites is stuck at RN 1.x due to this 'conflict' and I just have not got around to looking at it.
hit - the only thing that pops into my head is where if/else statements exist for the $view variable is to ensure that the esolution check is done first, this should effectively halt the loop and redirect it to what needs to be done.
Tweaking Montego's code a little...
Code:

 if($view == 0) {
              include($modpath);
            } elseif($view == 1 AND (is_user($user) OR is_group($user, $name) OR is_admin($admin))) {
              include($modpath);
            } elseif($view == 2 AND is_admin($admin)) {
              include($modpath);
            } elseif($view == 3 AND paid()) {
              include($modpath);

           } elseif($view > 4 AND !is_admin($admin)) {
                   if (file_exists("modules/E-Solution/public/modulecustom.php")){
                      define('MODULE_ESOLUTION',TRUE);
                       include("modules/E-Solution/public/modulecustom.php");
                   
            } elseif($view == 4 AND in_groups($groups)) {
              include($modpath);
}
            ..............
...........
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin


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

PostPosted: Sat May 20, 2006 12:09 am Reply with quote Back to top

Unfortunately, that effectively disables NSN Groups from ever being usable. BUT, if that is ok with folks, it might work for eSolution.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat May 20, 2006 5:29 am Reply with quote Back to top

I haven't tried it, but it seems that it may be easier to change NSN Groups than e-Solutions? I haven't installed e-Solutions in a while but maybe I should look into this and maybe, since it is GPL, we should consider adding it to v2.10.00? Comments?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum