Author |
Message |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Tue May 16, 2006 9:18 am |
|
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.... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue May 16, 2006 2:51 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 16, 2006 3:23 pm |
|
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...
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue May 16, 2006 9:38 pm |
|
As I said, you must then determine what needs to be done by merging the old with the new ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 2:23 am |
|
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 .. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 4:32 am |
|
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.... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed May 17, 2006 5:31 am |
|
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). |
_________________ 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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 5:39 am |
|
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 and Bye"); }
if(eregi("http\:\/\/", $file)) { die("Hi and 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);
}
}
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 6:51 am |
|
Quote: |
what would you make out of it
|
Maybe a "Party Hat. Broach. Teradactile"!
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](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 6:59 am |
|
well i can give that a try to...
thanks....
ill will post back as soon as i know more... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 1:11 pm |
|
i wish i could be more happy about this but i cant...
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...? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 17, 2006 4:36 pm |
|
ok its solved..
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 ... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
viper155
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 18, 2006
Posts: 99
|
Posted:
Thu May 18, 2006 8:16 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu May 18, 2006 8:20 am |
|
no....
its clear that esolution and nsn groups that go together... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
viper155
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu May 18, 2006 8:26 am |
|
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](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu May 18, 2006 8:29 am |
|
well indeed,they dont go together..
only thing you have to do is to remove every trace / code of nsn groups... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 19, 2006 6:12 am |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
dirtbag
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Nov 09, 2003
Posts: 73
|
Posted:
Fri May 19, 2006 3:11 pm |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
viper155
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 19, 2006 3:51 pm |
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 19, 2006 4:12 pm |
|
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... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
viper155
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 19, 2006 4:19 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 19, 2006 5:36 pm |
|
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. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri May 19, 2006 10:52 pm |
|
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);
}
..............
...........
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat May 20, 2006 12:09 am |
|
Unfortunately, that effectively disables NSN Groups from ever being usable. BUT, if that is ok with folks, it might work for eSolution. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat May 20, 2006 5:29 am |
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|