-
Posts
3,137 -
Joined
-
Last visited
-
Days Won
35
Content Type
Profiles
Forums
Events
Everything posted by Djkanna
-
Well it damn sure is tempting! Back in a moment. *Grabs coat* EDIT: Darn it, I've had it wrong all these years, my bad.
-
Sod it, no one else is staying on topic. :) EDIT: Well you're just freakin' lucky, to live quite close to a 24 hour shop, unlike some of us. :( EDIT 2: I predict post deletion in 3.2.1... :P
-
We're supposed to be helping this fella out, not bitching at each other... Page out of Octarine's book; Back ON --- But before we do, darn it I now want a Topic, sheesh.
-
Selling a MCCodes game, license goes with it. Providing you have a license that is. Simplez.
-
<?php class Template { public function __construct() { ob_start(); return; } public function __destruct() { $content = ob_get_contents(); ob_end_clean(); ob_start(); $this->getHeader(); $this->getMenu(); echo $content; $this->getFooter(); ob_end_flush(); return; } private function getHeader() { //Head things (doctype and such) } private function getMenu() { //Menu } private function getFooter() { //Footer things (closing body/html tags and such) } } $template = new Template(); <?php require_once ('path/to/file'); echo 'Some content here'; Spudinski (well I think it was him :cool:), showed us this simple technique a while back, perhaps it may be of some use to you.
-
Post the installer file, and remove your password from the error in the first post, especially if you use it elsewhere.
-
Do these templates come with PSD resources?
-
Bargin price, you say?
-
Nice catch. Nickson has added the js to all possible themes, and it's currently displaying code on each. :D
-
Semantically speaking, you should use list items.
-
Excellent Photoshop skills you have there, Octarine. :o
-
Hi to All! A Text Based Mafia game - Trigger Happy Mafia!
Djkanna replied to KashBFD's topic in Game Projects
Welcome to MakeWebGames. :) -
There is no doubt MCCodes isn't the most well written script out there, but as a learning experience it has it's potential. You will learn some things from MCCodes, and even perhaps force yourself to learn 'best practices' whilst trying to overcome MCCodes shortcomings. Not to mention there is a community of "A**holes" to help you out when you're in a bind. As previously mentioned, if your trying to learn a language, MWG is probably not the best place you could be at, there is very little discussion on languages here (it's a game dev community, there should be a lot more discussions on languages). However if you're working with MCCodes, I don't think there is a better community for you, than MWG. Anyway to answer your original question, there is many resources available on the web take some time to read through tutorials. Quick Google search (some resources here); Pixel2life Tutorials NetTuts+ (PHP category) Tutorials on a number of languages and subjects. PHP Builder Tutorials. PHP Manual Self explanatory. Tizag Tutorials Learn CSS (Tuts+) Specific Tuts+ course, learn HTML&CSS in 30 days (spend 10-15 minutes a day watching a video). Stack OVerflow Great resource, if you have a question, 9/10 times it's already been answered so search first. PHP Freaks Tutoriasl/Forums. This a**hole will get back to doing what he was doing now. ;)
-
Add another div in you <div id="contentt">, call it innerContent (or something). in css for menu add float: left; css for innerContent, add float: right; Tweak till everything fits snug, add your content into the new <div id="innerContent"></div> Edit, forgot to mention; Css, for contentt, add either overflow:hidden; or if not plausable, add the clearfix hack in the html (as shown above), to the contentt div and don't forget to apply widths. :)
-
http://prntscr.com/5nq2n <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="author" content=""> <meta name="viewport" content="width=device-width,initial-scale=1"> <!--Inline whilst writing, makes it easier on me for this example--> <style> html, body { margin:0; padding:0; background: #e0e0e0; } body { width:1140px; /* General rule, 1140px seems to be a pretty decent size for most users, better if you take to responsive */ margin: 0 auto; } #header { background: #c0c0c0; border:1px solid #bbb; height: 100px; margin-bottom:10px; } #content { width:830px; float: right; background: #c0c0c0; border: 1px solid #bbb; min-height:400px; /* added just for looks */ } #menu { width:300px; float: left; background: #c0c0c0; border: 1px solid #bbb; min-height:400px; /* added just for looks */ } #footer { clear: both; } #footer p { font-size:.8em; text-align: right; } </style> </head> <body> <div id="header"> <!--Header Content--> </div><!--/#header--> <div id="content"> <p>Some Content</p> </div><!--/#content--> <div id="menu"> <p>Menu</p> </div><!--/#menu--> <div id="footer"> <p>Footer</p> </div><!--/#footer--> <!--[if lt IE 7 ]> <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script> <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script> <![endif]--> </body> </html> Play around, but I presume this is the sort of positioning you're after? edit: Whoops, didn't see the responses (wasn't there when I began to write this) :P At Octarine's post: [CSS] .clearfix:before, .clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; } .clearfix { zoom: 1; } [/CSS] Clearfix hack (taken from HTML5 Boilerplate)
-
Prototype Creations -- Prototype
Djkanna replied to W3Theory || Peter's topic in Collaboration Experiences
Somewhat getting of track here, both parties have made their own statements, lets wait for them to settle it amongst themselves. :) -
What MCCodes version are you using?
-
Don't worry about it, it happens. :)
-
I shall call you another one, that doesn't get my name right. :P Thanks for these articles, and tests it's definitely got me and others, rethinking our methods (always good).
-
Prototype Creations -- Prototype
Djkanna replied to W3Theory || Peter's topic in Collaboration Experiences
Technically you're still guilty of copying someone elses code/design. Moral of the story, always verify the authenticity of the things you use in your projects. To answer your problem, All these can be used to create 'content sliders/slideshows'. RevolverJS Responsive Slides Nivo Slider. Each option are free to use under a MIT license. -
Get in touch with W3Theory || Peter, (if you haven't already) he's pretty much the resident designer. You can see some of the stuff he's done via the forums here, and W3Theory (Portfolio Page).
-
Checking length is probably a good idea. I wouldn't use mysql_select_db, until I needed it (in this case, once the checks have passed) makes sense to put it after the checks.
-
Code from first post (I assume you still cannot see things in code tags) as well as table definitions. http://pastebin.com/59DRjrRC
-
Unknown whether this mod has been updated since it's original release but this should be a working SQL for you. CREATE TABLE IF NOT EXISTS `chat` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `msg` text NOT NULL, `time` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; ^Taken from page two/with the removal of the second AUTO_INCREMENT.