Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
xGSTQ
Involved
Involved



Joined: Feb 03, 2006
Posts: 269

PostPosted: Mon Oct 23, 2006 1:03 pm Reply with quote

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 Very Happy
 
View user's profile Send private message Send e-mail
xGSTQ







PostPosted: Mon Oct 23, 2006 3:05 pm Reply with quote

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

PostPosted: Mon Oct 23, 2006 3:33 pm Reply with quote

Is this E-Solutions designed to work with your version of phpNuke?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
xGSTQ







PostPosted: Mon Oct 23, 2006 3:39 pm Reply with quote

Im using 7.6 platinum everything else works fine ?
 
xGSTQ







PostPosted: Mon Oct 23, 2006 3:47 pm Reply with quote

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 ^^ Confused
 
xGSTQ







PostPosted: Mon Oct 23, 2006 4:05 pm Reply with quote

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







PostPosted: Mon Oct 23, 2006 4:14 pm Reply with quote

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

PostPosted: Mon Oct 23, 2006 6:10 pm Reply with quote

Not a problem, glad you are working ok now.
I'm sure you'll be back if the Paypal doesn't work Wink I think there was an issue with that in v1.5 and v2.0
 
View user's profile Send private message Send e-mail
xGSTQ







PostPosted: Tue Oct 24, 2006 1:59 am Reply with quote

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







PostPosted: Tue Oct 24, 2006 2:17 am Reply with quote

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







PostPosted: Tue Oct 24, 2006 2:25 am Reply with quote

Thx Guardian, im recieving payments for one off items (themes) but ill remember that and thx again !

Ped
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©