redbullmarky
Staff Alumni-
Posts
2,863 -
Joined
-
Last visited
Never
Everything posted by redbullmarky
-
@BM re jcombs, agreed - the logo is good - nice job! [b]edit[/b]:jcombs, what fonts are in that? bottom heavy => the footer of your site has far too much prominence compared to everything else. it's dark and full width of screen. the rest of your site is light and bunched up, notably your logo. means the eyes drift to the bottom of the page first, which is the last thing that should be looked at. as for the replies aimed back at akitchen, unfortunately he has a more than a point and i agree 100% with him. none of the previous advice is anywhere to be seen here, meaning everyone that's cared to offer advice previously has, to be frank, pretty much been wasting their time. still - i like to keep replying, as even though you're not personally taking it on board, i like to think there are members here and guests that watch these threads that are learning from it. lets face it - nearly 40 posts over 3 pages is more than enough reading material for "how to build a site that doesnt suck eggs.", covering pretty much every HTML/CSS/design topic ever invented. cheers Mark
-
[url=http://takegame.com/arcade/htm/chipschallenge.htm]Chip's Challenge[/url] download
-
http://news.bbc.co.uk/1/hi/technology/6083856.stm
-
Hi all Anyone have any idea why some browsers create a huge gap underneath floats when using either <div> or <br /> styled with clear:both, and how to avoid it? it normally happens within a DIV that has a margin of, say, 200px to allow for a left-floated menu that sits outside of it. when i remove the menu, and the margin, the problem goes away. cheers Mark
-
[b]GOTCHA edit:[/b]http://en.wikipedia.org/wiki/Sokoban http://en.wikipedia.org/wiki/Chip%27s_Challenge ignore the rest of this post.... grrrrrr i hate it when i have to think of something like this. i just HAVE to know and wont stop til i do ;D yeah i know the game. I don't think its one game in particular as there was many different versions. Some would let you push the blocks by a single square, some would result in a pushed block sliding until it hit the nearest wall. One variation was based on atoms (well, colourful balls anyway but they had to be linked in a certain way). the closest i can think of for now is [url=http://www.google.co.uk/images?hl=en&q=bomberman&btnG=Search+Images]Bomberman[/url] but I know that's not the game, it's just as close to "layout" of the game you're on about that I can think of right now.
-
A cool way to do a content management...
redbullmarky replied to Nitroware's topic in Website Critique
erm...hate to be critical, but i have a few problems with it: 1, it has a flash banner. i hate flash (but thats a personal opinion, not a dig at what you've done with it) 2, it's very grey 3, it's phpBB. nowadays, there are so many better, still free forums. 4, so it tells the weather. on a forum. hope i havent missed the point, but why is that a good thing? oh, and it doesnt tell me the weather here in Bedfordshire, so is useless to me. 5, content management system? please go on, i'm curious. cheers [b]edit[/b]: whoops, this aint website critique... -
I know this was posted the other day....
redbullmarky replied to almightyegg's topic in PHP Coding Help
[quote author=almightyegg link=topic=112705.msg457631#msg457631 date=1161809059] nope didnt work still...just shows .'... :-X [code=php:0][code] [/code][/code] [/quote] i think you may be taking the examples a little too literally and just plonking the code into yours and hoping for the best. as it stands at the moment, you have your $short = join(...etc line out on a limb, when i'm guessing that you want it to trim every message (as indicated by your first post in this thread). try this. i've also changed some of it to make it clearer/easier to read. IMO, embedding tonnes of HTML into a PHP string in a single 'echo' is a bad idea, especially with tables - makes it bloody hard to find issues or reorganise your layout in the future: [code] <?php $grabposts = mysql_query("SELECT * FROM im WHERE toid ='{$mem['id']}' ORDER BY `time` DESC LIMIT 100"); while($posmes = mysql_fetch_array($grabposts)) { $short = join(' ', array_slice (explode(' ', $postmes['message']), 0, 4)); ?> <tr bgcolor="#222222"> <td> <?php echo $posmes['from']; ?> </td> <td> <a href="http://www.lordoftheabyss.com/im/viewmessage.php?id=<?php echo $posmes['id']; ?>"><?php echo $short; ?>...</a> </td> <td> <?php echo $posmes[time]; ?> </td> </tr> <?php } ?> [/code] -
without reading your latest fully, i have a problem with this line: [code] $form_start="FORM METHOD=\"post\"ACTION= [/code] it doesnt have a closing quote, and doesnt really resemble HTML (no opening <, no space between the method and the action, no closing > and </form> anywhere to be seen, etc. maybe i'm not understanding fully here, but things seem to be a little random and void of any real structure. kudos for sorting out all your ifs and elses, as it seems to be normal now, but things like the afformentioned will cause you more problems still.
-
no worries ok, so you've re-aligned the code, but the problem is still there. without also knowing/guessing what you want to do, i cant put the ifs/elses/brackets in the right places for you. consider this part of your code: [code] //if not posted, check that an id has been passed via the url } else { [/code] the closing bracket, }, doesnt close an opening bracket, so is redundant. and consider this part of your code: [code] $msg = "No user selected"; } else { [/code] the opening { bracket does not get closed. so as for: [quote] I'd still love to know whats wrong with this code though !! [/quote] the problem is your use of if/else/brackets. look back at my first reply - the second chunk of code i posted shows an example of how you should use if/else, etc. every opening bracket needs a closing bracket, with no exceptions. cheers Mark
-
[quote author=mjdamato link=topic=112598.msg457443#msg457443 date=1161790970] Ok, the problem is not the IF/ELSES. The problem is in the places where you do this: [/quote] i hate to piss on your chips, but take a look at the code again. the use of IF/ELSE/brackets are EXACTLY the problem. cheers Mark
-
@obsidian - there's a strong link between people who have an interest in music (performance rather than listening) and maths/logic, which is generally what alot of programming/coding revolves around. also the fact that both are creative and involve serious concentration means they both have similar appeal. i read all that somewhere a while back. also yeah i'm amazed by the amount of offspring us lot have collectively too. blowing the myth of "bedroom geeks" out the water ;D
-
[code] // Build UPDATE query $update = "UPDATE details SET user='$fn', model='$ln', engine='$en', bhp='$bn' WHERE Id=$id"; // execute query and check for success if (!mysqli_query($link, $update)) { $msg = "Error updating data"; } else { $msg = "Record Successfully updated:"; //write table row confirming data $table_row = <<<EOR <TR> <TD>$fn</TD> <TD>$ln</TD> <TD>$en</TD> <TD>$bn</TD> </TR> EOR; } //if not posted, check that an id has been passed via the url } else { if (!isset($_GET['id'])) { $msg = "No user selected"; } else { $id = $_GET['id']; // Build and execute the query $select = "SELECT user, model, engine, bhp FROM details WHERE Id=$id"; $result = mysqli_query($link, $select); [/code] check again. i started trying to indent your code a little better so i could see what's going on, and stopped when i found an } else { for no reason. you seem to have if's, else's and brackets all over the place. your last block doesnt have a closing } either. go through the code carefully, making sure that you've got these in the right place, then try again. should be like: [code] if (condition) { ...code... } else { ... code } if (condition) { ...code... } else if (condition) { ...code... } else { ...code... } [/code] cheers
-
Firefox 2 Compatibility
redbullmarky replied to HuggieBear's topic in PHPFreaks.com Website Feedback
according to Moz website, it's been changed to Alt+Shift+{whatever key}. tis mentioned in the 'Known Issues' on the release notes page: http://www.mozilla.com/en-US/firefox/2.0/releasenotes/ -
sure, i understand. i edited my original post possibly whilst you were typing, to add a couple of links. the first one was my introduction to mapping, and gets the basics across very well. applying that to what you want should be easy enough. the tricky bit will come when it comes to tiling the pieces together and feeding them to the user. i'm not personally comfortable with this type of use of AJAX to advise, sorry. hope that helps cheers Mark
-
why would you want to re-invent the wheel when in this case the wheel is a top of the range Goodyear with genuine silver alloys? there are plenty of PHP wrappers out there that will allow you to easily integrate Google maps into your site, and the API is such that you've pretty much got full control over everything you need displaying. mapping itself is a complex subject, and doing it yourself can be costly. finding a suitable map with the right projection, dealing with the scripts to plot latitudes/longitudes correctly, finding the latitude/longitude data in the first place (which gives you other problems, as the data is HUGE - i have a DB of about 3million+ cities from around the world with all their lat/long data), and then piecing it all together. it's a huge job, and one that i gave up in favour of google maps several months ago. [b]edit:[/b] however, if you're up for the challenge, you can start here: http://www.web-max.ca/PHP/article_1.php and you can get the data from here: http://www.maxmind.com/app/geolitecity
-
here's one that looks a little better structured: http://www.phpshop.org/ and here's a demo site: http://www.opensourcecms.com/index.php?option=com_content&task=view&id=2115
-
this may help: http://www.opensourcecms.com/
-
remember that these packages like osCommerce, etc, are designed to allow users to built any sort of commerce site, meaning they tend to be overblown with all sorts that won't ever be used. if you can do without the bells and whistles, they're actually much easier to make than you'd think, especially if you've got a framework to support it already. the trickiest bits are generally the payment integration, but if you've no particular worries with this or have done it before, you wont have too many issues at all.
-
[quote author=ober link=topic=112560.msg456948#msg456948 date=1161717239] ...but my problem is the lack of ability to get through the days where I come in here and screw off. You can't do that with your own business and I'm not there yet. [/quote] how do you mean? [quote author=cmgmyr link=topic=112560.msg456951#msg456951 date=1161717466] I have about $30,000 worth of musical stuff that I have accumulated over the years ;D But I would sell my kidneys before I gave any of that up. [/quote] to a non musician, that sounds like madness. but as the owner of a genuine Gibson Les Paul that I wanted ever since seeing it in Sweet Child O' Mine, and gettin one after 15 years of dreaming, I fully understand :)
-
some of the original advice still counts: http://www.phpfreaks.com/forums/index.php/topic,109268.0.html
-
[quote author=obsidian link=topic=112560.msg456927#msg456927 date=1161715553] Ober, congrats, man! I've got two, and we're hoping for a third. Enjoy the coding time you have now, because kids definitely change the time equation a bit ;). [/quote] ditto! will turn your world upside down in more ways than you'll ever know, but totally for the better. and obsidian, you couldnt have put that last bit better. before the most recent one arrived, it was pretty peaceful and easy enough - now i tend to work til small hours in the morning or just about any other hour i can snatch :) good luck, and enjoy it. sincerely. cheers Mark
-
tis amazing how much but how little you know people when you've been sharing forum wisdom for ages... i'm 26, born and bred in Birmingham (England) but living in Bedfordshire nowadays with my better half and two kids - one is 3 (gf's from a previous), the other 7mths. i've been self-employed for 5 of my 8yr work history, currently as Director of a Construction (civil/structural/housing) agency but most of my time goes into my web work be it for our company or otherwise. However, when all that's out the way, I enjoy writing/recording music and spending quality time with the family and watching the boys grow up, drinking copious amounts of Fosters with a couple of Marlboro lights to go with it...*cough*
-
can still get £50 (about $93) for a PS2 on ebay. not great, but if youre upgrading, every penny counts.
-
yeah - if mess is a prime concern, then something along the MVC road is gonna help tonnes. I personally like CodeIgniter (www.codeigniter.com) as it's pretty lightweight and only includes what you use. If you're after something a little more simple, then try templating using a template engine. Smarty seems to be the most popular, but I find it trickier to use than many. there's a simple one here, with an explaination of why i didn't choose smarty: http://www.massassi.com/php/articles/template_engines/ and another recommendation is here: http://phpsavant.com/yawiki/ Whichever you choose, the end result is seperation of your business logic from your presentation - leaving a set of nice clean HTML documents and a set of nice PHP scripts.
-
Texelate - Leeds Web / Multimedia Design Studio
redbullmarky replied to texelate's topic in Website Critique
testing on safari 1.3 here. no sign of problem steve pointed out on this version. i'm impressed. as steve pointed out, some of the page/file sizes can run a little too big and the text seems a little too small, but otherwise i can't pick out any other personal dislikes or faults at all. good job!