Author |
Message |
xGSTQ
Involved
Joined: Feb 03, 2006
Posts: 269
|
Posted:
Mon Oct 23, 2006 1:03 pm |
|
Hi .. Only Me !
Ive got everything running okay !
Ive just turned on my subscriptions part of the E-Solutions and ive made a module acsessable to just subscriptions only. It works BUT
When and only when im logged in as admin and i view that particualr module i get a white screen and a message stating Sorry, such file doesn't exist...
But i know its there .. lol as because if i logout of admin its there !
Does any cleverer person than me perhaps know why it could be not allowing me access ?
Thanks Ped |
|
|
|
|
xGSTQ
|
Posted:
Mon Oct 23, 2006 3:05 pm |
|
Well it gets worse !
I made my test account a subscriber for a month i then logged into my test acount in IE (i use firefox 99%) and checked Your Account it said i was a subscriber.
Went to the module that i set up for subscribed members and it did the same as above "Sorry, such file doesn't exist..."
Noooooo ... nightmare !
What do you think it could be ? |
|
|
|
|
evaders99
Former Moderator in Good Standing
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Mon Oct 23, 2006 3:33 pm |
|
|
|
|
xGSTQ
|
Posted:
Mon Oct 23, 2006 3:39 pm |
|
Im using 7.6 platinum everything else works fine ? |
|
|
|
|
xGSTQ
|
Posted:
Mon Oct 23, 2006 3:47 pm |
|
Sry ive been looking into it a bit more and the edits i had to make to modules.php was as below
Code:/********* 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*******************/
|
Thats where its pulling the Sorry, such file doesn't exist... from does any code chappy understand that ^^ |
|
|
|
|
xGSTQ
|
Posted:
Mon Oct 23, 2006 4:05 pm |
|
This is from the installation instructions for modules.php ... mine is ever so slighlty diffrent... ill post the instructions first from nuke royal
Code:In the below code snippet you can find modules.php find and add the following code to modules.php
FIND:
Code:
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
} elseif ($view == 2 AND !is_admin($admin)) {
$pagetitle = "- "._ACCESSDENIED."";
include("header.php");
title("$sitename: "._ACCESSDENIED."");
OpenTable();
echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
.""._MODULESADMINS.""
.""._GOBACK."";
CloseTable();
include("footer.php");
die();
} else if ($view == 3 AND paid()) {
$modpath .= "modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
AFTER ADD:
Code:
/********* E-Solution 1.5 starts*********/
elseif ($view == 4 AND is_premium($user,$name) ) {
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
elseif ($view == 4 AND !is_user($user)
|| $view == 4 AND !is_premium($user,$name)
|| $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");
}
}
/***********************End E-solution*******************/
|
This is what ive got in my current modules.php for the above snippet
Code: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);
}
/********* 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 = "- "._RESTRICTEDAREA;
|
Thx in advanced guys, sry evaders99 thx for the fast responce.
Ped |
|
|
|
|
xGSTQ
|
Posted:
Mon Oct 23, 2006 4:14 pm |
|
Sry to the admins, i think i fixed it ... it was the wrong edit.
I tried the edit for nuke platinum lol and its now working fine
here is the edit
Code:/********* E-Solution 1.5 starts*********/
elseif ($view == 4 AND is_premium($user,$name) ) {
include($modpath);
}
elseif ($view == 4 AND !is_user($user)
|| $view == 4 AND !is_premium($user,$name)
|| $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");
}
}
/***********************End E-solution*******************/
|
A moderator can delete this thread sry for wasting peeps time ! |
|
|
|
|
Guardian2003
Site Admin
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Oct 23, 2006 6:10 pm |
|
Not a problem, glad you are working ok now.
I'm sure you'll be back if the Paypal doesn't work I think there was an issue with that in v1.5 and v2.0 |
|
|
|
|
xGSTQ
|
Posted:
Tue Oct 24, 2006 1:59 am |
|
Im using v2.0 now , the only difrence between v1.5 and 2.0 are the files .. the file edits remane the same ...
Fingers crossed it will all work fine now. |
|
|
|
|
Guardian2003
|
Posted:
Tue Oct 24, 2006 2:17 am |
|
Not a problem. I was referring to a change that actually occured at Paypal which required specific data returned via the IPN feature. For some, a minor change was required to the E-Solution code to introduce an additional variable which was not at the time being returned.
If you have a problem let me or Hitwlaker know as I think we are the only ones who still have the fix somewhere. |
|
|
|
|
xGSTQ
|
Posted:
Tue Oct 24, 2006 2:25 am |
|
Thx Guardian, im recieving payments for one off items (themes) but ill remember that and thx again !
Ped |
|
|
|
|
|