Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
[QUOTE=commander204;32877301]What are good beginner/intermediate PHP projects?[/QUOTE]
I enjoyed starting off with a user system; login/register/management. I think it's a terrific project for anyone because it can be created on any experience level.
^above users pony is sexy as
I found javascript code that can turn images to grayscale (my entire forum is grayscale, everything on there should be grayscale including images)
When the page first loads can the images (when loaded) call the javascript function and turn themselves grayscale? is there an onload event for images?
[QUOTE=Sprite;32884375]^above users pony is sexy as
I found javascript code that can turn images to grayscale (my entire forum is grayscale, everything on there should be grayscale including images)
When the page first loads can the images (when loaded) call the javascript function and turn themselves grayscale? is there an onload event for images?[/QUOTE]Could you just do document.getElementByTagName('img')? Or even simpler, if you're using jQuery: $('img')
[QUOTE=Sprite;32884375]^above users pony is sexy as
I found javascript code that can turn images to grayscale (my entire forum is grayscale, everything on there should be grayscale including images)
When the page first loads can the images (when loaded) call the javascript function and turn themselves grayscale? is there an onload event for images?[/QUOTE]
yes but that's a not so good idea to do because of the load time after everything's loaded
why not have the server do it and cache the results as well?
[QUOTE=Sprite;32884375]...
is there an onload event for images?[/QUOTE]
Images, scripts and style sheets all have load and error events.
Edit: Along with <video>, <audio>, etc.
Is there a certain option you need to enable to get header() working in PHP? All of my headers work fine locally but when I upload them to my VPS nothing redirects. Currently I'm using
header('Location: [url]http://domain.com/file/');[/url]
and It doesn't work. My original redirect doesn't work either:
header("Refresh: 1; URL=http://domain.com/file/");
Does anyone know why? No errors are given even with "Show Errors" enabled. I'm running PHP 5.2.17-1, (I plan to update it soon). Would this version cause the error? Or is there an option I need to enable?
Does it work if you use output buffering?
[QUOTE=TheDecryptor;32885290]Does it work if you use output buffering?[/QUOTE]
Nope. I used a work around, I've just used a meta redirect. It will work well enough until I figure it out. Thanks for the help.
Be sure to die(); after you redirect, I don't know how many times I've seen people forget to do this as it opens up security vulnerabilities. (For restricted pages and the like)
[QUOTE=TehWhale;32880757]and you also think vbulletin is better than xenforo, so clearly you have some logic issues[/QUOTE]
Have you ever been an admin for a site that uses either of them, or are you just commenting as a user?
Is there a program like Gobby, but natively supports Mac OS X? I have worked with other people on web projects using Gobby, and I really liked how it all went. This time, the other ones I work with don't got Windows, and cannot probably install it. So, I need to find something like Gobby but for Mac natively. I looked into running Gobby on Mac, but on their page where the links to the different stuff needed was dead.
Thanks in advance.
[QUOTE=iamacyborg;32886974]Have you ever been an admin for a site that uses either of them, or are you just commenting as a user?[/QUOTE]I've looked at the source of both, though I'm not an expert at forum development, but xenForo has [i]very[/i] nice code.
I decided to practice CSS some more but I've come across problem with my footer element not being at the bottom at all times.
I want the red footer to be at the bottom always or below the content if you need to scroll.
[url]http://dl.dropbox.com/u/18280917/vortexo/index.html[/url]
Help is appreciated
quick question
are there any editors like google chrome's Dev Tools? Because that would be a pretty cool css/html editor.
-snip-
[QUOTE=mobrockers2;32894297]
Absolute Positioning
An absolute position element is positioned relative to the first parent element that has a position other than static. If no such element is found, the containing block is <html>:
Absolutely positioned elements are removed from the normal flow. The document and other elements behave like the absolutely positioned element does not exist.
Absolutely positioned elements can overlap other elements.[/QUOTE]
How does this help?
[QUOTE=Known Havok;32894333]How does this help?[/QUOTE]
try:
[css]
position:fixed;
[/css]
[editline]21st October 2011[/editline]
that'll keep it at the bottom
but i dunno how to do it if you have to scroll
[QUOTE=Known Havok;32894333]How does this help?[/QUOTE]
It doesn't, I'm stupid.
[QUOTE=Ac!dL3ak;32894348]try:
[css]
position:fixed;
[/css]
[editline]21st October 2011[/editline]
that'll keep it at the bottom
but i dunno how to do it if you have to scroll[/QUOTE]
That works good, but doesn't quite look good with the big red footer. Thanks though.
Very basic question (I guess). How do I make my website non-static, eg. Don't have to go from index.php to ex. Forums.php which has the same layout but with a forum built in to the design. If I then pressed ex. a button directing to forums.php from index.php, is there some way to make it stay at index.php and not have to load all images etc. again and just open the Forum part of the design.
[QUOTE=Median.J;32906022]Very basic question (I guess). How do I make my website non-static, eg. Don't have to go from index.php to ex. Forums.php which has the same layout but with a forum built in to the design. If I then pressed ex. a button directing to forums.php from index.php, is there some way to make it stay at index.php and not have to load all images etc. again and just open the Forum part of the design.[/QUOTE]
I made an array in Javascript and made a button that would load the array, and display it onto the website when a button was pressed, kinda like what you want, but the end result was not pretty.
[QUOTE=Median.J;32906022]Very basic question (I guess). How do I make my website non-static, eg. Don't have to go from index.php to ex. Forums.php which has the same layout but with a forum built in to the design. If I then pressed ex. a button directing to forums.php from index.php, is there some way to make it stay at index.php and not have to load all images etc. again and just open the Forum part of the design.[/QUOTE]
What I did for my school project was use a whole lot of
[code]
if ($_GET['page'] == "Forums")
{
include("Forums.php");
}
[/code]
You then make all the buttons redirect to index.php?page=Forums and it includes Forums.php while staying on index.php.
[QUOTE=mobrockers2;32906523]What I did for my school project was use a whole lot of
[code]
if ($_GET['page'] == "Forums")
{
include("Forums.php");
}
[/code]
You then make all the buttons redirect to index.php?page=Forums and it includes Forums.php while staying on index.php.[/QUOTE]
Thank you, I'll try it out later. So tired of that website..
I am getting this error:
[code]INSERT command denied to user 'oflfcxpf_toaster'@'localhost' for table 'input'[/code]
When I try to insert something into my table, when I have clearly added the user and all of his privileges
[img]http://puu.sh/7ohw[/img]
Any Idea of what to do?
[QUOTE=toaster468;32906954]I am getting this error:
[code]INSERT command denied to user 'oflfcxpf_toaster'@'localhost' for table 'input'[/code]
When I try to insert something into my table, when I have clearly added the user and all of his privileges
[img]http://puu.sh/7ohw[/img]
Any Idea of what to do?[/QUOTE]
that's for the database `oflfcxpf_guest`, not `input`.
[QUOTE=Ac!dL3ak;32907524]that's for the database `oflfcxpf_guest`, not `input`.[/QUOTE]
I can't add permissions for users to a table, or at least I don't know how.
[QUOTE=Ac!dL3ak;32907524]that's for the database `oflfcxpf_guest`, not `input`.[/QUOTE]
Uhm no, the database is called oflfcxpf_guest and the table he is trying to insert the data in is called input.
[QUOTE=mobrockers2;32907631]Uhm no, the database is called oflfcxpf_guest and the table he is trying to insert the data in is called input.[/QUOTE]
Yeah this.
[QUOTE=mobrockers2;32907631]Uhm no, the database is called oflfcxpf_guest and the table he is trying to insert the data in is called input.[/QUOTE]
oh derp
Can anybody answer this?
[B][url]http://serverfault.com/questions/323910/trying-to-play-with-apache-virtual-hosts-getting-access-forbidden-errors/323915#323915[/url][/B]
It's driving me crazy (P.S.: first answer did not work)
Sorry, you need to Log In to post a reply to this thread.