• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
[QUOTE=Lukasaurus;33120528]yep :) transitional xhtml I think.[/QUOTE] If you're going to use HTML5 tags (nav), you should be using a standard HTML5 doctype: [code]<!doctype html>[/code] I think you need to give your menu a set width for margin: 0 auto; to work.
is ruby worth studying? im ok at php and whenever i show certain friends i get moaned at because php is not a 'real oop lang blablab' will ruby give me an edge over php if i study it well? like why bother learning ruby if you can make things in php?
[QUOTE=Kwaq;33122927]is ruby worth studying? im ok at php and whenever i show certain friends i get moaned at because php is not a 'real oop lang blablab' will ruby give me an edge over php if i study it well? like why bother learning ruby if you can make things in php?[/QUOTE] A) Tell your current friends to stop bitching so much about languages and actually do something with one. B) Is it worth studying? Yes, there are a ton of languages worth studying, Ruby is a very nice example. You might also want to try Python. C) Will it give you an edge? Learning new languages will give you an edge over others, regardless if it's COBOL, C or Ruby.
Right, If I code a Wordpress theme and get paid to set everything up for a site that sells cracked Minecraft accounts, can I be help accountable for anything if the owner gets sued? I mean all I've done is coded a theme? Am I right here or should I just stay away from this deal?
[QUOTE=Adzter;33123134]Right, If I code a Wordpress theme and get paid to set everything up for a site that sells cracked Minecraft accounts, can I be help accountable for anything if the owner gets sued? I mean all I've done is coded a theme? Am I right here or should I just stay away from this deal?[/QUOTE] Legally? You'll be fine. Still a shitty thing to get involved with from a moral standpoint.
[QUOTE=Adzter;33123134]Right, If I code a Wordpress theme and get paid to set everything up for a site that sells cracked Minecraft accounts, can I be help accountable for anything if the owner gets sued? I mean all I've done is coded a theme? Am I right here or should I just stay away from this deal?[/QUOTE] I wouldn't take credit for making the site. Just get paid and stay away. [editline]4th November 2011[/editline] but, that's just me being 16 years old :v:
[QUOTE=zzlawlzz;33123184]I wouldn't take credit for making the site. Just get paid and stay away. [editline]4th November 2011[/editline] but, that's just me being 16 years old :v:[/QUOTE] 7 years more experience and I agree.
Yeah I was thinking of that, just removing all evidence that I've done it, problem is it's probably my best work :'(
[QUOTE=Adzter;33123451]Yeah I was thinking of that, just removing all evidence that I've done it, problem is it's probably my best work :'([/QUOTE] Install WordPress with your theme on a subdomain and link to that in your portfolio?
[QUOTE=StinkyJoe;33123036]C) Will it give you an edge? Learning new languages will give you an edge over others, regardless if it's COBOL, C or Ruby.[/QUOTE] not sure if I totally agree with that; having face value knowledge of 15 languages is far less of an edge compared to knowing 1 or 2 languages inside out.
[QUOTE=H4Z3Y;33124872]not sure if I totally agree with that; having face value knowledge of 15 languages is far less of an edge compared to knowing 1 or 2 languages inside out.[/QUOTE] I'll have to disagree with your disagreement. Obviously you should be very good at one or two languages, but that's a natural step in the initial progression. Learning new languages makes you a better programmer, it pushes you out of your comfort zone and broadens your horizons. At this point you can put any language in front of me, give me a week and I'll know the language inside out and be productive with it - syntax is piss easy, language culture and environment is a challenge, but nothing that surrounding yourself with experienced people and some documentation doesn't fix. (typed this out while on the phone, pardon any silly wording)
[QUOTE=StinkyJoe;33125118]I'll have to disagree with your disagreement. Obviously you should be very good at one or two languages, but that's a natural step in the initial progression. Learning new languages makes you a better programmer, it pushes you out of your comfort zone and broadens your horizons. At this point you can put any language in front of me, give me a week and I'll know the language inside out and be productive with it - syntax is piss easy, language culture and environment is a challenge, but nothing that surrounding yourself with experienced people and some documentation doesn't fix. (typed this out while on the phone, pardon any silly wording)[/QUOTE] You're not really disagreeing with what I said, in your second sentence you agreed with what I said. I think you should have your core languages known through and through, then that's when you start branching out and playing with other stuff.
Does anybody here have experience with wordpress theming?
Some, but mostly with using theme frameworks, never bothered writing my own theme.
do you understand wordpress though? enough to make a theme?
I've made tonnes of WP themes (with all sorts of customizations beyond a 'standard' blog) if yo need help/pointers.
Does anyone know of a method I could use to convert a steam Custom Profile Link to the one generated by steam? For example: CustomLink = blackfire88 Old Link = 76561198036509585 [editline]5th November 2011[/editline] Preferably using PHP, Jscript or HTML
[QUOTE=jaybuz;33128454]do you understand wordpress though? enough to make a theme?[/QUOTE] Yeah, I just go the framework route because it saves lots of time.
[QUOTE=blackfire88;33131819]Does anyone know of a method I could use to convert a steam Custom Profile Link to the one generated by steam? For example: CustomLink = blackfire88 Old Link = 76561198036509585 [editline]5th November 2011[/editline] Preferably using PHP, Jscript or HTML[/QUOTE] Try searching [URL="http://steamcommunity.com/dev"]here[/URL]. (As of writing temporary unavailable, tho)
[php] public function time() { echo date('g:i:s A'); } public function date() { echo date('d/m/y'); }[/php] [html] <script> $(document).ready(function() { var refreshId = setInterval(function() { $("#time").hide().load('welcome/time').show(); $("#date").hide().load('welcome/date').show(); }, 60); }); </script>[/html] Is this an ok way of javascript usage??? It's nice and fast :v:
[QUOTE=zzlawlzz;33133507]-code- Is this an ok way of javascript usage??? It's nice and fast :v:[/QUOTE] Small jQuery tip: [code]$(function () {[/code] is faster and the same as [code]$(document).ready(function () {[/code]
[QUOTE=Darkwater124;33134195]Small jQuery tip: [code]$(function () {[/code] is faster and the same as [code]$(document).ready(function () {[/code][/QUOTE] I prefer the second one because it's readable.
Question about PHP. When you look at the code to many large projects such as Wordpress, PHPBB etc. In the comments the developer uses things such as @param str Description. Is this merely for easy identification of important parts of code in the section or does it do something more than that?
[QUOTE=twenty;33147287]Question about PHP. When you look at the code to many large projects such as Wordpress, PHPBB etc. In the comments the developer uses things such as @param str Description. Is this merely for easy identification of important parts of code in the section or does it do something more than that?[/QUOTE] I think there are editor plugins that recognize them and puts them in the tooltip
[QUOTE=Darkwater124;33147668]I think there are editor plugins that recognize them and puts them in the tooltip[/QUOTE] It's also used to generate documentation automagically.
[QUOTE=Darkwater124;32976261]Also, what is the best way to make a multiple file uploader? Ive seen several AJAX and Flash scripts, but Im not sure what to use...[/QUOTE] Sorry to ask it again, but I really need to be sure
So I was wondering, what's the best way to "parse" custom html tags in PHP, similar to what [URL="http://grabaperch.com/"]Perch[/URL] do. ( so something like <cms:yt id="wfI0Z6YJhL0" />, would return the tag and the inline attributes ) I'm not quite sure if I explained it right, but something along the lines of what Perch uses. I'm thinking regex? But yeah, a example would be nice!
[QUOTE=Darkwater124;33170060]Sorry to ask it again, but I really need to be sure[/QUOTE] [url]http://www.plupload.com/[/url]
[QUOTE=Trivkz;33170265]So I was wondering, what's the best way to "parse" custom html tags in PHP, similar to what [URL="http://grabaperch.com/"]Perch[/URL] do. ( so something like <cms:yt id="wfI0Z6YJhL0" />, would return the tag and the inline attributes ) I'm not quite sure if I explained it right, but something along the lines of what Perch uses. I'm thinking regex? But yeah, a example would be nice![/QUOTE] Regex is never a good choice for parsers. For the example you gave, you'll want to use an XML parser - PHP has tons of options in that area - and then all you need to do is work with the nodes.
[QUOTE=StinkyJoe;33170997]Regex is never a good choice for parsers. For the example you gave, you'll want to use an XML parser - PHP has tons of options in that area - and then all you need to do is work with the nodes.[/QUOTE] So, would something like SimpleXML do?
Sorry, you need to Log In to post a reply to this thread.