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)
Post new topic   Reply to topic
Author Message
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

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

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
Moderator


Joined: Apr 30, 2004
Posts: 2846

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

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
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

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

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
View user's profile Send private message
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

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

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");
}
View user's profile Send private message
montego
Site Admin


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

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

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.)
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

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

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 to the forums!
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum