Guest Anonymous Posted November 12, 2006 Share Posted November 12, 2006 <?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 : Your Advertisement ID : {$r['adID']} Your Advertisement Clicks : {$r['adCLICKS']} Your Advertisement Views : {$r['adVIEWS']} Thankyou for logging in to check your advertisement.Logout "; } ?> Quote Link to comment Share on other sites More sharing options...
veteran Posted November 12, 2006 Share Posted November 12, 2006 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!! Quote Link to comment Share on other sites More sharing options...
veteran Posted November 13, 2006 Share Posted November 13, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted November 13, 2006 Share Posted November 13, 2006 Re: (FREE) Fixed Advertisements on Dabomstew's MCcode v1.1 Also veteran tells me if the code does work. Thanks ;) i need some reviews! Quote Link to comment Share on other sites More sharing options...
veteran Posted November 23, 2006 Share Posted November 23, 2006 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 Quote Link to comment Share on other sites More sharing options...
Steet-thug Posted April 11, 2007 Share Posted April 11, 2007 Re: [mccode] Fixed Advertisements for mccode v1.1 once you click the paypal button it takes you onto your link what would i put for my own? Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted September 15, 2007 Share Posted September 15, 2007 Re: [mccode] Fixed Advertisements for mccode v1.1 for some reson the ads keep going they dont go off how do i make them come off Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted October 8, 2007 Share Posted October 8, 2007 Re: [mccode] Fixed Advertisements for mccode v1.1 it say forver not as many days they pay for it just stay there Quote Link to comment Share on other sites More sharing options...
Lithium Posted July 11, 2008 Share Posted July 11, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 has anyone tried this one, and successfully? seems i'm having a bit trouble to make it working :| Quote Link to comment Share on other sites More sharing options...
www.mygunwars.com Posted July 11, 2008 Share Posted July 11, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 No but I want to Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 11, 2008 Share Posted July 11, 2008 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 :-) :? Quote Link to comment Share on other sites More sharing options...
Vyp3r2oo9 Posted July 11, 2008 Share Posted July 11, 2008 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 :) Quote Link to comment Share on other sites More sharing options...
iR00T Posted July 11, 2008 Share Posted July 11, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 ahh ...thanks for that see i learn new stuff daily... Quote Link to comment Share on other sites More sharing options...
Lithium Posted July 11, 2008 Share Posted July 11, 2008 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 :) Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 10, 2008 Share Posted October 10, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 what is the code for header to show the advertisments and at the moment where will this show Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 10, 2008 Share Posted October 10, 2008 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 Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 mate someone might so anyone can you help please Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted October 18, 2008 Share Posted October 18, 2008 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 Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted October 18, 2008 Share Posted October 18, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 a simple advertisement system isn't so difficult, im sure someone on here has made one Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted October 18, 2008 Share Posted October 18, 2008 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 Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted October 21, 2008 Share Posted October 21, 2008 Re: [mccode] Fixed Advertisements for mccode v1.1 lol it was more of an ID10T error on my part. I got it fixed and going but thanks for offering to help oxi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.