Jump to content
MakeWebGames

[mccode] Fixed Advertisements for mccode v1.1


Recommended Posts

Guest Anonymous
Posted

<?php
include "mysql.php";
global $c;
if($_SESSION['ad']== 0 && !$_POST['username'] && !$_POST['password'])
{
print "
Want to see your advertisement?

Want to see the Statistics so far?

Login with the details.


Username :

Password :


";
}
if($_POST['username'] && $_POST['password'])
{
$uq=mysql_query("SELECT * FROM ads WHERE adLOGIN='{$_POST['username']}' AND adPASS='{$_POST['password']}'",$c) or die(mysql_error());
if(mysql_num_rows($uq)== 0)
{
die("
Invalid Username/Password.

>Retry Login

");
}
else
{
$s=mysql_fetch_array($uq);
$_SESSION['ad']=1;
$_SESSION['adid']=$s['adID'];
print << You have successfully logged in

EOF;
} }
if($_SESSION['ad']== 1)
{
global $c;
$is=mysql_query("SELECT * FROM ads WHERE adID='{$_SESSION['adid']}'",$c) or die(mysql_error());
$r=mysql_fetch_array($is);
print "
You have logged in as your Advertisement.

Your Advertisement URL : {$r['adURL']}

Your Advertisement Image : {$r[

Your Advertisement ID : {$r['adID']}

Your Advertisement Clicks : {$r['adCLICKS']}

Your Advertisement Views : {$r['adVIEWS']}

Thankyou for logging in to check your advertisement.

Logout
";
}
?>
Posted

Re: (FREE) Fixed Advertisements on Dabomstew's MCcode v1.1

where do i find the first part of this code so we can do the database tables and the other parts that are missing!!

Posted

Re: (FREE) Fixed Advertisements on Dabomstew's MCcode v1.1

 

veteran it doesnt need databases it all comes with Dabomstew's MCcode 1.1,1.0 codes. all you need to do is follow 'em instructions

Hope it does some good work.

ok thanks mate

Guest Anonymous
Posted

Re: (FREE) Fixed Advertisements on Dabomstew's MCcode v1.1

Also veteran tells me if the code does work. Thanks ;) i need some reviews!

  • 2 weeks later...
Posted

Re: (FREE) Fixed Advertisements on Dabomstew's MCcode v1.1

any chance of posting the link to display the ad.php

i know its ad.php?adID=1 (1 being the number of the advert)

and how do you view the banners

  • 4 months later...
  • 5 months later...
  • 4 weeks later...
  • 9 months later...
Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

I am testing right now

Results:Decent (Here's why)

No link to make a advertisement

And i couldent find no where in there where the link like on some v1 and v2 stuff it will say like ad.php?action=makeadd or something i didn't find that in nothing up there .... :? someone help me wid that

and

We'll from beside's all that i haven't yet found a error in there so it works just no way to make one lol

--------------------------------

if($ir['userid'] != 1)

{

die("Disabled for you.");

}

--------------------

^^ does that mean that if ur id[1] you can't do it or does it mean that if ur not id 1 you cant do it the ! confused me i know about the other ones its just that one always get's me :-) :?

Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

Think of ! as NOT, try and translate PHP

if($ir['userid'] != 1)

{

die("Disabled for you.");

}

If UserID not 1 .. Disabled :)

Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

even with the obvious missing pointers, it seems to me that it lacks one or two main functions :| i manage to make a "work around" though it keeps not wanting to do the trick, as main directions on to the install are also not that obvious as they seem to be :S, so if anyone out there was able to pull this out, well, i don't ask for the code, only a pointer to the solution as it is not obvious for me :)

  • 2 months later...
Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

[mccode] Fixed Advertisements for mccode v1.1

? on: November 12, 2006, 04:45:53 AM ?

This topic is like 2 years old, CE is non-existent to Netcodes.

He aint gonna help. lol

Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

lol I know this is an old post but has anyone got this to work on V2?? I have been trying but keep hitting some damn snags and its starting to piss me off lol. So if someone could be so kind to help me out it would be greatly appreciated. Thanks

Posted

Re: [mccode] Fixed Advertisements for mccode v1.1

Wow, 2 years back. That's a lot of progress I've made since, lol.

Anyways, I can help you if you wish - but I never stated that support is provided anyway.

But, anyway, times changed. ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...