Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other
Author Message
dirtbag
Regular
Regular



Joined: Nov 09, 2003
Posts: 73

PostPosted: Tue Apr 25, 2006 9:31 pm Reply with quote

Bob,

I bought the Banner Clients a couple of times but never had really any paying advertiser.. But now that i do i setup their accounts so they can see their stats but the page comes up blank where they are suppose to log into.. So i put the DISPLAY ERRORS = 1 in the config.php and this is what popped up..

Fatal error: Call to undefined function: cookierecode() in /home/subfight/public_html/modules/Banner_Clients/index.php on line 12

any ideas on how to fix this??

I got phpnuke 7.6
patched 3.0

and i am using the

NSN_Banner_Clients_UNI_127

i did a search on GOOGLE and i got a lot of pages with the same error and module that pulled up...

But i scrolled through them and here and found no solution..

anyhelp appreciated.

Regards
Rick
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Apr 26, 2006 10:02 am Reply with quote

Hmm there is no cookierecode() function in phpNuke, as far as I know.
However there is cookiedecode .. which maybe what it wants. Sorry, I don't know NSN Banners well enough and don't have the code in front of me

_________________
- Star Wars Rebellion Network -

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







PostPosted: Wed Apr 26, 2006 10:27 am Reply with quote

thanks evaders99 for time and trying to help me.. i did what you said and it did solve the first error... But know i am getting another error on line 90 Crying or Very sad one this line..

if (is_client($client)) {

here is the error it displays

Fatal error: Call to undefined function: is_client() in /home/subfight/public_html/modules/Banner_Clients/index.php on line 90
 
dirtbag







PostPosted: Wed Apr 26, 2006 10:28 am Reply with quote

here is the function its getting locked up on??

Code:
function BCMain() {

    global $stop, $clientinfo, $bgcolor1, $bgcolor2, $bgcolor3, $sitename, $prefix, $db, $cookie2, $client, $module_name, $ban_config;
    include("header.php");
     if (is_client($client)) {
          title(_BC_CLTMENU);
          BCMenu();
      } else {
        mt_srand ((double)microtime()*1000000);
        $maxran = 1000000;
        $random_num = mt_rand(0, $maxran);
        title(_BC_CLTLOG);
        OpenTable();
        if ($stop) {
            echo "<center><font color='#ff0000'><b>"._BC_LOGINC."</b></font></center><br>\n";
        }
        echo "<center><table border='0' cellpadding='2' cellspacing='2'>\n";
        echo "<form action='modules.php?name=$module_name' method='post'>\n";
        echo "<input type='hidden' name='op' value='login'>\n";
        echo "<tr><td>"._BC_CLTID.":</td><td><input type='text' name='login' size='15' maxlength='25'></td></tr>\n";
        echo "<tr><td>"._BC_PASS.":</td><td><input type='password' name='pass' size='15' maxlength='20'></td></tr>\n";
        if (extension_loaded("gd") AND ($ban_config['usegfxcheck'] == 2 OR $ban_config['usegfxcheck'] == 3)) {
            echo "<tr><td>"._BC_SECCODE.":</td><td><img src='?gfx=gfx&random_num=$random_num' border='1' height='20' width='80' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";
            echo "<tr><td>"._BC_TYPCODE.":</td><td><input type='text' NAME='gfx_check' SIZE='10' MAXLENGTH='8'></td></tr>\n";
            echo "<input type='hidden' name='random_num' value='$random_num'>\n";
        }
        echo "<tr><td align='center' colspan='2'><input type='submit' value='"._BC_LOGIN."'></td></tr>\n";
        echo "</form></table></center><br>\n";
        echo "<center>[ <a href='modules.php?name=$module_name&amp;op=ClientPassLost'>"._BC_LOSTPASS."</a> |";
        echo " <a href='modules.php?name=$module_name&amp;op=ClientNew'>"._BC_CLTREG."</a> ]</center>\n";
        CloseTable();
    }
    include("footer.php");
}
 
montego
Site Admin



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

PostPosted: Wed Apr 26, 2006 8:07 pm Reply with quote

If NSN banners is like Bob's other tools, he generally has the functions all stored in one file in the root/includes directory. I am thinking is_client() should be defined there. Are you sure all files got uploaded from his distribution?

If display errors is off or he is using @include() to pull in the functions file, you may not have seen that it is missing. (I am only assuming... I do not use this specific tool of his.)

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
dirtbag







PostPosted: Thu Apr 27, 2006 10:17 am Reply with quote

alright i looked and found what you posted... upon looking book it looks like i didnt update the code snippet in the mainfile.php Sad as there was a couple of difference the page comes up now but still wont recognize when you try to login...


I see that there is another banner ads that bob created after this that was for free and made for 7.6 which the other one was not.. does anyone know the difference between the two of them???

NSN Banner Ads 75-77
Permissions: Registered Users Only
Version: 1.3.0
Filesize: 50.96 Kb
Added on: May 23 2005, 03:16:02 EDT
Downloads: 2525
HomePage: [ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN Other

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 ©