With nuke 7.4 there is a banners.php file in the main html directory for clients to log into their banners account and see their stats.
I assume it should be accessed like this:
Only registered users can see links on this board! Get registered or login to the forums!
However that dosent work. If the login id is correct and the password is wrong you get a message stating that the login id is incorrect. If the id and password are both correct you get the standard Page Cannot Be Displayed Error.
Is that URL correct? What is the correct URL to give a client so that they can log in and see their statistics?
well maybe i understand you completely wrong but there isnt a login for banner clients.
but im maybe wrong....
i stopped using it since i discovered it holds back on referers.
but the the banner.php in your root controls your banners ...thats all....
the banner login or with clients whatever thats the big version.....and can be bought at nukescripts.net
and he also offers a free/but with less options version.
When this function executes with a valid advertising client that has no banners and no data it displays the tables correctly.
When this function executes with a valid advertising client that has banners and data you get a page cannot be displayed standard error message.
When an invalid username and/or password is passed you get the incorrect login message and the go back option.
Can anyone suggest ways for me to track this problem down please?
Code:
/*********************************************/
/* Function to display the banners stats for */
/* each client */
/*********************************************/
function bannerstats($login, $pass) {
global $prefix, $db, $sitename;
$row = $db->sql_fetchrow($db->sql_query("SELECT cid, name, passwd FROM " . $prefix . "_bannerclient WHERE login='$login'"));
$cid = intval($row['cid']);
$name = $row['name'];
$passwd = $row['passwd'];
if($login=="" AND $pass=="" OR $pass=="") {
echo "<center><br>Login Incorrect!!!<br><br><a href=\"javascript:history.go(-1)\">Back to Login Screen</a></center>";
} else {
I tried again to make this work. There is a while loop that is not executing. It dosent execute even once, when there is data there which should let it execute.
Does anyone see any syntax errors or design errors that would prevent this while loop from being true at least one time? (it is true one time for my test accounts, however the program does not flow into the loop.)
Joined: Aug 27, 2002 Posts: 15235 Location: Kansas
Posted:
Fri Apr 15, 2005 10:24 pm
I haven't tried this in 7.4 but I am using it in 6.9. Are you using the virgin 7.4 or what? What is supposed to happen is that you get a very ugly login page.
I don't mind the ah, unique login page colors. I could spiff it and the subsuquent tables up if I wanted to. I just don't know how to fix these bugs.
I've tried on several occasions....
This is nuke 7.4 downloaded from here with chatserv's patches... Version 2.6 I believe.
The first message in this thread described the problem.
There are no errors printed to the screen, except for the standard page cannot be displayed error. No visible php errors anywhere...
The last user created can login with his PW and can get to the page that is supposed to show the status of his banners.
That last person does not have any data filled into his tables though.
If you put an echo statement in as a test you can see that you never fall into the while loop in the message above that is supposed to be prefilling the table with data.
Code:
while ($row2 = $db->sql_fetchrow($db->sql_query("SELECT bid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE cid='$cid' AND active='1'"))) {
echo "Kilroy was here";
}
Even though there is a record in nuke_banners where cid=5 and active=1, and the table does have the following fields of bid, impotatal, impmade, clicks and date, you still don't get to see the message Kilroy was here.
I don't understand why the while loop is not dropping down into the area where it parses the information....
That's why I was asking if there was a syntax error, or logic error with it.
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