Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
Right, I've come away from the footer until the rest of my site is done.
I need to make a contact form. Would something like this be hard with HTML&CSS? Any advice on where to start?
[QUOTE=ENG.jonny;43729803]Right, I've come away from the footer until the rest of my site is done.
I need to make a contact form. Would something like this be hard with HTML&CSS? Any advice on where to start?[/QUOTE]
You're going to need a backend language to do a contact form unless you decide to leverage something like wufoo.com
It's pretty simple actually with PHP, there's a guide here [url]http://www.phpeasystep.com/phptu/8.html[/url]
You will need a mail server to test it though, if you've got a hosting service with a mail server built in then it should just work
Is there an elegant/intuitive way to allow a client to manipulate the order of a list and notify the server of changes in HTML without JS? And if not, is [url=http://jsfiddle.net/3vsAA/4/]my solution[/url] reasonable? I would use jQuery UI but I'm already using MooTools and don't want to add the dependency for something so trivial.
Also how would you recommend relaying the order information to the server? I was planning on iterating over the rows to populate an ajax request, but I could just as well POST it, I suppose.
I'm having a problem posting links to youtube videos?
I use the [ ] tags in the right way but this happens:
[video=youtube;Zf6C-pZ3heY]https://www.youtube.com/watch?v=Zf6C-pZ3heY[/video]
[IMG]http://i.imgur.com/aTg8VUE.jpg[/IMG]
but my image tags work?
[QUOTE=Four20;43734256]I'm having a problem posting links to youtube videos?
I use the [ ] tags in the right way but this happens:
[video=youtube;Zf6C-pZ3heY]http://www.youtube.com/watch?v=Zf6C-pZ3heY[/video]
[IMG]http://i.imgur.com/aTg8VUE.jpg[/IMG]
but my image tags work?[/QUOTE]
Change the https to http
oh wow, lol
Thank you :)
Hello gentlemen.
I have tried to make this work for a while, but without luck.
I'm trying to make a html panel show the steam id.
Im using this piece of code atm
[CODE]<?php
$communityid = $_GET["steamid"];
$authserver = bcsub($communityid, '76561197960265728') & 1;
$authid = (bcsub($communityid, '76561197960265728')-$authserver)/2;
$steamid = "STEAM_0:$authserver:$authid";
echo "This is your steam ID.<br>";
echo "$steamid";
?>
[/CODE]
And it displayes just fine, but for some reason the steam ID that is printed out is in the format of:
[CODE]STEAM_0:0:-X.XXXXXXXXXXXXXE+16[/CODE]
Any ideas?
Any help is very welcome :)
I've been considering a VPS for some time now, because it seems like a more professional approach!
I have some experience with Linux (since what I am looking at is an unmanaged VPS), and I even tried in a virtualbox. Everything seems to be understandable, setting up the general thing worked perfectly and all.
However, would this be the best choice? I was considering [URL="http://afterburst.com/"]afterburst[/URL], though I am always so insecure of doing things wrong and what to choose. Even if I did choose afterburst then the choice is between Ubuntu and Debian. Different opinions.
I honestly can't decide, too scared to make the wrong move.
Thoughts?
[QUOTE=Moofy;43736551]I've been considering a VPS for some time now, because it seems like a more professional approach!
I have some experience with Linux (since what I am looking at is an unmanaged VPS), and I even tried in a virtualbox. Everything seems to be understandable, setting up the general thing worked perfectly and all.
However, would this be the best choice? I was considering [URL="http://afterburst.com/"]afterburst[/URL], though I am always so insecure of doing things wrong and what to choose. Even if I did choose afterburst then the choice is between Ubuntu and Debian. Different opinions.
I honestly can't decide, too scared to make the wrong move.
Thoughts?[/QUOTE]
I can't really help you with a host but you can't really do a lot wrong with a VPS if you're just installing software and configuring it. If something goes wrong you can always just reinstall the distro and start all over again.
Personally I'd go for Debian(Stable) since I don't really see a use to use Ubuntu for a server since it's basically Debian anyway, unless you have something really specific that REALLY needs Ubuntu but I can't imagine that.
[QUOTE=Moofy;43736551]I've been considering a VPS for some time now, because it seems like a more professional approach!
I have some experience with Linux (since what I am looking at is an unmanaged VPS), and I even tried in a virtualbox. Everything seems to be understandable, setting up the general thing worked perfectly and all.
However, would this be the best choice? I was considering [URL="http://afterburst.com/"]afterburst[/URL], though I am always so insecure of doing things wrong and what to choose. Even if I did choose afterburst then the choice is between Ubuntu and Debian. Different opinions.
I honestly can't decide, too scared to make the wrong move.
Thoughts?[/QUOTE]
Personally I would recommend Afterburst, since I've always gotten good support from them, and I've been a customer to and from during the past three years. When choosing a distro, so would I recommend going with the one you know the most about, since performance wise, they don't differentiate so very much. Maybe 5-10%, but unless you're running something that need to negate that difference, you're more often better off with a dedicated.
[QUOTE=pdkm931;43737064]Personally I would recommend Afterburst, since I've always gotten good support from them, and I've been a customer to and from during the past three years. [B]When choosing a distro, so would I recommend going with the one you know the most about[/B], since performance wise, they don't differentiate so very much. Maybe 5-10%, but unless you're running something that need to negate that difference, you're more often better off with a dedicated.[/QUOTE]
I've used Ubuntu mostly before, but it Debian uses apt-get too (obviously) so wouldn't make much of a difference in the terminal right?
[QUOTE=Moofy;43737648]I've used Ubuntu mostly before, but it Debian uses apt-get too (obviously) so wouldn't make much of a difference in the terminal right?[/QUOTE]
They're about 90% the same, just some of the compile code that can be different between programs running on them. Since Ubuntu mostly is just Debian that allows commercial and non-GPL licensed programs (as I understand it). As well as Debian more often taking less HDD space than Ubuntu.
[QUOTE=pdkm931;43737700]They're about 90% the same, just some of the compile code that can be different between programs running on them. Since Ubuntu mostly is just Debian that allows commercial and non-GPL licensed programs (as I understand it). As well as Debian more often taking less HDD space than Ubuntu.[/QUOTE]
hm.
You know what, screw it I'm getting a VPS :v:
[QUOTE=Moofy;43737862]hm.
You know what, screw it I'm getting a VPS :v:[/QUOTE]
Feel free to ask questions whenever you need help.
As a starter so do I recommend getting cygwin or putty for SSH access to your VPS.
[QUOTE=Moofy;43737862]hm.
You know what, screw it I'm getting a VPS :v:[/QUOTE]
Learn [url=https://wiki.opscode.com/display/chef/Home]Chef[/url] :) (and if you're only going to manage one server look up knife solo once you start understanding chef)
It will make your life soooo much easier in the long run.
I feel like such an idiot for posting quick questions like this, but hey I've got to start somewhere.
I've been looking around for HTML code on getting an image to change when the mouse hovers over. This is what I've come up with...
[code]<p>Like my Facebook page</p>
<a href="facebookurl">
<img src="content/images/contact/facebook.png" alt="Facebook pic" onmouseover="this.src='content/images/conatct/facebook-over.png" onmouseout="this.src='content/images/contact/facebook.png"/></a>
[/code]
From what source I used ([URL="http://www.spiceupyourblog.com/2009/10/how-to-make-rollover-mouse-over-image.html"]source[/URL]), I followed it to how it says but the image doesn't change when my mouse hovers over it... What am I doing wrong?
(I removed the Facebook URL from this topic, it would normally be there)
[QUOTE=ENG.jonny;43738449]I feel like such an idiot for posting quick questions like this, but hey I've got to start somewhere.
I've been looking around for HTML code on getting an image to change when the mouse hovers over. This is what I've come up with...
[code]<p>Like my Facebook page</p>
<a href="facebookurl">
<img src="content/images/contact/facebook.png" alt="Facebook pic" onmouseover="this.src='content/images/conatct/facebook-over.png" onmouseout="this.src='content/images/contact/facebook.png"/></a>
[/code]
From what source I used ([URL="http://www.spiceupyourblog.com/2009/10/how-to-make-rollover-mouse-over-image.html"]source[/URL]), I followed it to how it says but the image doesn't change when my mouse hovers over it... What am I doing wrong?
(I removed the Facebook URL from this topic, it would normally be there)[/QUOTE]
You could use CSS to accomplish the same thing if you want to:
[code]
.facebutton {
background-image: url("to/facebook.button");
}
.facebutton:hover {
background-image: url("to/hover.button");
}
[/code]
Other than possibly (I don't know the precise way to set an image as content via CSS, but there is possibly a way) that, you may need to set the height and width of the button. But I believe the usage of CSS instead of JS is that the button will get loaded together with your content, otherwise it will need to fetch the image when you hover over the button.
[QUOTE=ENG.jonny;43738449][code]<p>Like my Facebook page</p>
<a href="facebookurl">
<img src="content/images/contact/facebook.png" alt="Facebook pic" onmouseover="this.src='content/images/conatct/facebook-over.png" onmouseout="this.src='content/images/contact/facebook.png"/></a>
[/code][/QUOTE]
I don't know if it could be the reason or not, but you forgot to close the single quotes.
Can't hurt to try.
[QUOTE=Moofy;43736551]I've been considering a VPS for some time now, because it seems like a more professional approach!
I have some experience with Linux (since what I am looking at is an unmanaged VPS), and I even tried in a virtualbox. Everything seems to be understandable, setting up the general thing worked perfectly and all.
However, would this be the best choice? I was considering [URL="http://afterburst.com/"]afterburst[/URL], though I am always so insecure of doing things wrong and what to choose. Even if I did choose afterburst then the choice is between Ubuntu and Debian. Different opinions.
I honestly can't decide, too scared to make the wrong move.
Thoughts?[/QUOTE]
Feel free to give me a shout directly jack @ afterburst.com if you have any questions (or via ticket, better idea as all staff would see rather than just myself)
[QUOTE=Moofy;43736551]I've been considering a VPS for some time now, because it seems like a more professional approach!
I have some experience with Linux (since what I am looking at is an unmanaged VPS), and I even tried in a virtualbox. Everything seems to be understandable, setting up the general thing worked perfectly and all.
However, would this be the best choice? I was considering [URL="http://afterburst.com/"]afterburst[/URL], though I am always so insecure of doing things wrong and what to choose. Even if I did choose afterburst then the choice is between Ubuntu and Debian. Different opinions.
I honestly can't decide, too scared to make the wrong move.
Thoughts?[/QUOTE]
I love CentOS. I tried using Debian on my VPS a while ago and it was impossible for me to use. That's just personal preference though.
CentOS is great because it's got the reputation of being great at being a web server and by consequence it's got so much more support from the web community.
Mostly this translates to easier development due to finding guides on how to install or run such-and-such on CentOS by default.
[QUOTE=01271;43740093]CentOS is great because it's got the reputation of being great at being a web server and by consequence it's got so much more support from the web community.
Mostly this translates to easier development due to finding guides on how to install or run such-and-such on CentOS by default.[/QUOTE]
I've found the opposite to happen with Ubuntu. Solution X and helpful software Y for it, but not for CentOS.
(Also, I remember it giving me lots of headaches back when I first mounted one of my VPS)
[QUOTE=KmartSqrl;43738257]Learn [url=https://wiki.opscode.com/display/chef/Home]Chef[/url] :) (and if you're only going to manage one server look up knife solo once you start understanding chef)
It will make your life soooo much easier in the long run.[/QUOTE]
Bookmarked!
[editline]31st January 2014[/editline]
Aah, perfect. Previous host ending in 4 days and moving my domain to namecheap now! Hyped!
How would I get my content to look like this?
[img]http://puu.sh/6G4Bs.png[/img]
My current content CSS looks like this...
[code]
#Content {
width: 900px;
margin-right: auto;
margin-left: auto;
background:url(content/images/content.jpg);
padding: 25px;
}
[/code]
My footers are fine, at the moment my content looks like
[img]http://puu.sh/6G4HD.png[/img]
[QUOTE=ENG.jonny;43748355]How would I get my content to look like this?
<pics>[/QUOTE]
You're setting padding for the top too. You'd have to replace padding:25px to
[code]padding-left:25px;
padding-right:25px;
padding-bottom:25px;
[/code]
to avoid that.
Also, you may want to set the div's height if you want it to be as long as the 1st pic.
[QUOTE=Coment;43748382]You're setting padding for the top too. You'd have to replace padding:25px to
[code]padding-left:25px;
padding-right:25px;
padding-bottom:25px;
[/code]
to avoid that.
Also, you may want to set the div's height if you want it to be as long as the 1st pic.[/QUOTE]
My CSS now looks like:
[code]
#Content {
width: 900px;
margin-right: auto;
margin-left: auto;
background:url(content/images/content.jpg);
padding-left:25px;
padding-right:25px;
padding-bottom:25px;
}
[/code]
and nothing different has happened..
The padding is just the spacing around the text or inner content. Add margin-top: 0px;
Didn't change anything :/ My entire code is so scruffy it's probably conflicted with something else to prevent it from happening ;/
I'm not fully sure what your problem is, here is what I imagine you want
[url]http://jsfiddle.net/6aqkt/1/[/url]
've shrunk the width so you can see how it's centered
Sorry, you need to Log In to post a reply to this thread.