Jump to content
MakeWebGames

CainFool

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Everything posted by CainFool

  1. Annoying.. isn't it.. having to go into the header.php file and changing a tip of the day all the time, now you don't have to login to your websites control panel! I've created a user-friendly header text generator which simply, under your "Donate to Game_Name now for benefits" add's some text with a nice div background. This is my first modification, feel free to edit as you need, just remember to give me credit. SQL CREATE TABLE IF NOT EXISTS `header` ( `text` longtext NOT NULL, ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `header` -- INSERT INTO `header` (`text`) VALUES ('[b]Congratulations, Nameless_![/b] \r\nYou are the co-owner ;) '); open up header.php and find print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } add underneath $name = mysql_fetch_object($db->query("SELECT `text` FROM `header`")); echo sprintf('<div style="background: url([url]http://m.cainfool.co.cc/tablediv.png[/url])"><font color=white>%s</font></div> ',stripslashes($name->text)); note: replace my tablediv pic if you wish. open up staff_special.php and find: case 'massmailer': massmailer(); break; add underneath: case 'headerann': header_announcement(); break; case 'head_submit': header_submit(); break; CONTINUED NEXT POST..
  2. Re: [uRGENT] Help with my Code! [mcCodes v2] where should i place it?
  3. Re: [uRGENT] Help with my Code! [mcCodes v2] BUMP come on, answer
  4. Im working on a script which I can modify from the Admin cPanel which basically allows you to edit the latest news, err.. the picture might be better. I want to be able to do that, but instead of editing the header.php all the time, I want to be able to edit it by the Admin Control Panel. This is my first time doing this so please no bad comments. testing.php <?php { include "globals.php"; global $db, $ir, $c, $h; print "<h3>The Newspaper</h3>"; $q=$db->query("SELECT text FROM header LIMIT 1"); $text=$db->fetch_single($q); print " <tr> <td colspan=3>$text</td></tr> </table>"; } $h->endpage(); ?> Im using that from the newspaper and im just editing it off that temporarily until I can get it sorted. I have a table in my database called header, and a field called text, but it's not coming up. MySQL CREATE TABLE IF NOT EXISTS `header` ( `text` longtext NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `header` -- INSERT INTO `header` (`text`) VALUES ('testing text'); What am I doing wrong?
  5. Re: [REQUEST] PHP Help I've just worked out another new code. You don't need case or any of that, just small things.   if($_GET['p'] == "try") print "You've tried to hack my website- but failed :) "   Now that's alot easier. With my last codes I found, i noticed that they dont just come up on ?page=contact, they come up on the index page aswell, and the code now doesn't. And that code is alot easier I'm using now.
  6. Re: [REQUEST] PHP Help I just want to try PHP out, as I'm pretty new to it.
  7. Re: [REQUEST] PHP Help Well I was looking around the internet and I found this code: <?php switch($_GET['action']) { case contact(); break; } function contact() { echo("[email="[email protected]"]CONTACT ME![/email]"); } ?>   That seems alot easier, by the term "includes".
  8. I'm much of a noobie to PHP. I've seen people have http://mydomain.com/index.php?action=contact I know that the code for that is inside the index.php part, but I would be greatful if somebody could tell me that. Thanks.
  9. Re: *special* McCodes v3 BETA Release As I said, it is unofficial. So it's completely legal, unless its official, it is illegal. as mcCodes mainly belongs to Dabomstew.
  10. Re: *special* McCodes v3 BETA Release I may just remind everybody that the website you were looking at wasnt 2.9! That was normal 2.0. 2.9 doesn't have a demo.
  11. Hi There. As soon as I heard that mcCodes has been released, I then tried it, It wasn't very good. Then v2 came out, quite good, but I wanted to continue. I have created my own unofficial mcCodes v3, I like to call it mcCodes 2.9. I have done alot of updates, and I wanted to share with you, mcCodes 2.9. All you need to do, is PM me :- Subject: mcCode Code v2.9 Message Details: Why you want a code: Will you share the code with others: Your e-Mail: I will approve or disapprove, if I approve, I will mail you back with your code you must enter at: http://ultimatecity.co.uk/mc_codes_v3 - You type in your code there. You will then receive a download like for mcCodes v3. Easy! Of course there is alot of bugs in this with the pages, but I am working my butt off fixing them ;) -- Cain
  12. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY Here is 2 new banners, not overwritten. I will be posting lots more up, it will just take a while.
  13. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY It is because I overwrite them. From now on they will be banner1.png banner 2.png etc..
  14. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY I've been updating my Banner like crazy. Now that one, couldn't be generated online. --------- EDIT: I will have to admit, I am using a Apple Macbook Pro and I am using Adobe Photoshop CS to create these Images.
  15. Re: McCodes - Banners for 3 Pounds - PAYPAL ONLY Thats a picture I made a while ago for a McCodes Game.
  16. Hello There. I have been making professional images for years and I have decided to share them out to this forum "Criminal Existance". I know, from my stats, you probably think I am a noob, well I am not, it's only because I registered to this forum not long ago and havn't really got the chance to post any topics/posts inside. So if you would like some banners off me, just leave me a PM. I will be creating some example banners and posting them here as soon as I get the chance but right now I am incredibly busy with my McCodes v2.9 (lots of edits i did) so I may not get the chance to be on for a while. So as said, banners from me, are 3 pounds PayPal. PM me for my PayPal Address. In the personal message, I will require: -: Your Website URL (for image dimensions) If you don't want to give your website url out, you can just tell me the image dimensions The reason why you want a banner Thats all I require. - Cain
×
×
  • Create New...