• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
[QUOTE=fauxpark;46131106]Have a look at [url]https://developers.google.com/maps/documentation/javascript/reference#MapOptions[/url]. I think disableDefaultUI, scrollwheel, panControl and streetViewControl are some of the options you're looking for.[/QUOTE] Brilliant, thanks man. Ended up like this: [CODE]// Google map if(0 < $('#map').length) { var coordinates = $('#map').attr('data-coordinates').split(','); var myLatlng = new google.maps.LatLng(parseFloat(coordinates[0]), parseFloat(coordinates[1])); var mapOptions = { zoom: 8, draggable: false, zoomControl: false, panControl: false, rotateControl: false, scrollwheel: false, streetViewControl: false, center: myLatlng } var map = new google.maps.Map(document.getElementById('map'), mapOptions); var marker = new google.maps.Marker({ map: map, draggable: false, position: map.getCenter(), icon: './img/marker.png' }); }[/CODE]
So I bought a domain name, this happened. [QUOTE]Thank you for your email. The domain you purchased is on the NXD list. This is a list of domains that are set aside by the registry and ICANN due to the high quality of the name. Since you were able to purchase the domain and it is in your account, you will be able to use and have complete control over the domain once ICANN has completed their review. Unfortunately, this will not be until 2015 at the earliest. I am terribly sorry for the inconvenience. [/QUOTE] Has this happened to anyone else? What do?
[QUOTE=farmatyr;46131362]So I bought a domain name, this happened. Has this happened to anyone else? What do?[/QUOTE] What the hell kind of name did you get? :o
[URL="http://whois.icann.org/en/lookup?name=dev.bio"]dev.bio[/URL]
[QUOTE=Slater;46131357] [CODE]if(0 < $('#map').length) {[/CODE] [/QUOTE] [url]http://en.wikipedia.org/wiki/Yoda_conditions[/url]
Are there any free hosting sites that arent shit and actually work for say, a simple blog, mediawiki, and maybe a forums, with a existing domain?
[QUOTE=ChloeBlackSythe;46137902]Are there any free hosting sites that arent shit and actually work for say, a simple blog, mediawiki, and maybe a forums, with a existing domain?[/QUOTE] [url]https://www.x10hosting.com/[/url] is really good for being a free host. With cPanel. Was a couple of years since I last used them, but they were good back then and probably still is. I disregard you from going with a free host though.
Need a bit of help with boot strap. So I was making my pages and stuff, and I had an index.html file with all of my landing page stuff. I changed this so the index.html only had the nav bar and then used ng-view to display the landing page below. It worked fine besides one small problem, the jumbotron image is no centered and squashed and not stretched like it was before. I want it using 100% of the width of the screen, but right now its like ---|----------|--- Any ideas how I can fix it?
[QUOTE=Over-Run;46146968]Need a bit of help with boot strap. So I was making my pages and stuff, and I had an index.html file with all of my landing page stuff. I changed this so the index.html only had the nav bar and then used ng-view to display the landing page below. It worked fine besides one small problem, the jumbotron image is no centered and squashed and not stretched like it was before. I want it using 100% of the width of the screen, but right now its like ---|----------|--- Any ideas how I can fix it?[/QUOTE] It most likely is in a container, or a "col". If you want it to be full width, make sure you close your <div class="container">, then insert the jumbotron, then open the container again to center other text.
[QUOTE=Over-Run;46146968]Need a bit of help with boot strap. So I was making my pages and stuff, and I had an index.html file with all of my landing page stuff. I changed this so the index.html only had the nav bar and then used ng-view to display the landing page below. It worked fine besides one small problem, the jumbotron image is no centered and squashed and not stretched like it was before. I want it using 100% of the width of the screen, but right now its like ---|----------|--- Any ideas how I can fix it?[/QUOTE] .container-fluid is a full width container that you can use.
[QUOTE=Cyberuben;46147751]It most likely is in a container, or a "col". If you want it to be full width, make sure you close your <div class="container">, then insert the jumbotron, then open the container again to center other text.[/QUOTE] The way I have it is in my index.html I have [code]<div ng-view class = "container"></div>[/code] At the bottom of the page. Then I have the landing_page.html file which is like this: [code]<div class="jumbotron"> <div class="container" id = "jumbo_container"> <h1 class = "text-center">Welcome to PubHub!</h1> <p class = "text-center"> PubHub is an easy way to see what events are going on at pubs around you! From large nightclub events to small acoustic sets, PubHub will keep you updated! </p>[/code] Can't seem to figure it out [editline]4th October 2014[/editline] [QUOTE=Svenskunganka;46147927].container-fluid is a full width container that you can use.[/QUOTE] I did that and it fixed it quit a bit but it still isn't fully using the entire width. Now it's like -|----------------------|- [editline]4th October 2014[/editline] I changed it to container-full and it fixed the problem :). Thanks for the help!
What's a good webhost (wordpress based portfolio) with good support and won't spam me with emails / advertisements
[QUOTE=Sylerr;46150482]What's a good webhost (wordpress based portfolio) with good support and won't spam me with emails / advertisements[/QUOTE] [URL="https://wordpress.com/"]https://wordpress.com/[/URL]
I am using the font Myriad Pro, and there always no matter what seems to be a push on it downwards. See picture below: [img]http://puu.sh/bZx3C/fa19930fce.png[/img] It has no style sheets added or anything, but it ALWAYS has that empty space on the bottom, and makes working with it very hard. Does anyone know anything about this?
[QUOTE=TH3_L33T;46152165]I am using the font Myriad Pro, and there always no matter what seems to be a push on it downwards. See picture below: [img]http://puu.sh/bZx3C/fa19930fce.png[/img] It has no style sheets added or anything, but it ALWAYS has that empty space on the bottom, and makes working with it very hard. Does anyone know anything about this?[/QUOTE] Try with 0 instead of 0px. Also, why are you not putting the text in a paragraph or span, or any other text element? It's good practice. [code] <p style="font-family:'Myriad Pro';padding:0;margin:0;">test</p> [/code]
[QUOTE=Svenskunganka;46152360]Try with 0 instead of 0px. Also, why are you not putting the text in a paragraph or span, or any other text element? It's good practice. [code] <p style="font-family:'Myriad Pro';padding:0;margin:0;">test</p> [/code][/QUOTE] Was just testing it. [img]http://puu.sh/bZAc5/21cf451646.png[/img] Still has space on the bottom which throws off padding and what not.
[QUOTE=TH3_L33T;46152474]Was just testing it. [img]http://puu.sh/bZAc5/21cf451646.png[/img] Still has space on the bottom which throws off padding and what not.[/QUOTE] Happens on all browsers or just IE?
[img]http://puu.sh/bZBUw/8563c36a8e.png[/img] There it is in firefox. Looks okay in firefox.... is there a way to make it render differently in IE?
[QUOTE=TH3_L33T;46152643][img]http://puu.sh/bZBUw/8563c36a8e.png[/img] There it is in firefox.[/QUOTE] Seems fine to me in firefox. Otherwise set the line-height to 1 or 100% as all the major browser's defaults is 1.2 or 120%
[QUOTE=Svenskunganka;46152655]Seems fine to me in firefox. Otherwise set the line-height to 1 or 100% as all the major browser's defaults is 1.2 or 120%[/QUOTE] Well thats stupid...
got a bit of strange problem. So i try my first steps with OOP PHP, but i kinda got an weird error. [URL="http://pastebin.com/GrdpGBmk"]Script on Pastebin[/URL] the page i get is empty. Nothing at all. i also tried to debug it with some echo 'test'; at the beginning, in the if, in the try, but i'm not even get them. is there an major flaw with my script or it's just an missconfig of my webserver?
[QUOTE=Tomelyr;46152684]got a bit of strange problem. So i try my first steps with OOP PHP, but i kinda got an weird error. [URL="http://pastebin.com/GrdpGBmk"]Script on Pastebin[/URL] the page i get is empty. Nothing at all. i also tried to debug it with some echo 'test'; at the beginning, in the if, in the try, but i'm not even get them. is there an major flaw with my script or it's just an missconfig of my webserver?[/QUOTE] The problem is that you have disabled errors. You most likely get a blank page (an error) because of this: [code] require './SourceQuery/SourceQuery.class.php'; // Which I'm sure should either be: require 'SourceQuery/SourceQuery.class.php'; // Which does basically the same as your original, but might solve it. // or require '../SourceQuery/SourceQuery.class.php'; [/code] Enable errors with: [code] ini_set('display_errors', 1); error_reporting(E_ALL); [/code] At the top of your script. [editline]5th October 2014[/editline] Also, a tip for the [B]isset()[/B] function. You can add as many variables to one isset statement, like this: [code] if(isset($_GET["ip"], $_GET["port"]) {} [/code]
Still Empty page on FF and Opera [url]http://puu.sh/bZDnL/11089d90eb.jpg[/url]
[QUOTE=Tomelyr;46152763]Still Empty page on FF and Opera [url]http://puu.sh/bZDnL/11089d90eb.jpg[/url][/QUOTE] Odd, check your access.log and error.log in /var/log/apache or /var/log/nginx, depending on your web-server. Seems like your web-server is not passing the script to the PHP CGI, but if that was the case, you'd be seeing the code in plain-text. In case you use nginx: [code] watch tail -n 15 /var/log/nginx/access.log watch tail -n 15 /var/log/nginx/error.log [/code] Edit: As jung3o stated, you're not passing any GET params to the script... Missed that one.
you have an if-statement on get request to make sure that they exist. of course nothing shows you need the ip and the port [editline]4th October 2014[/editline] also [img]http://i.imgur.com/QSyfvKB.png[/img] something wrong with the script.
i am passing the requests, somehow they will only show when i mark the url. the problem was the define, i removed them from my script and hardcoded the _GET into the SourceQuery build, now it works. Thanks for the help. edit:// Like on Facepunch. [URL="http://puu.sh/bZECF/2c4d54a97b.png"]Normal[/URL] and [URL="http://puu.sh/bZEY1/9080cd4fb4.png"]marked[/URL]
[QUOTE=Tomelyr;46152874]i am passing the requests, somehow they will only show when i mark the url. the problem was the define, i removed them from my script and hardcoded the _GET into the SourceQuery build, now it works. Thanks for the help. edit:// Like on Facepunch. [URL="http://puu.sh/bZECF/2c4d54a97b.png"]Normal[/URL] and [URL="http://puu.sh/bZEY1/9080cd4fb4.png"]marked[/URL][/QUOTE] Notice anything here? [code] define( 'SQ_SERVER_ADDR', $ip ) define( 'SQ_SERVER_PORT', $port ); define( 'SQ_TIMEOUT', 1 ); define( 'SQ_ENGINE', SourceQuery :: SOURCE ); [/code] A hint: ";"
Guys, I'm a complete idiot when it comes to coding websites, but is it possible to change some of the javascript on a webpage through a userscript, before the page loads? For example, would it be possible to change a javascript counter that's 60 seconds long to be 5 seconds instead? Thanks
Hey guys, I'm pretty new to PHP and don't know all the quirks so far. I was restructuring my site, which was working up until my changes, and it looks like I've broken something completely. Nothing shows on the page now and viewing the page source is blank too. Can anybody see any glaring errors with this? [code]<!DOCTYPE html> <html> <head> <title>mtmilo</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); }); </script> </head> <body> <?php @require('functions.php'); <header> <img class="topbanner" src="logo.png" /> </header> <aside> <nav> @include('navbar.php'); </nav> <div> <p>"Created by Miles Flavel"</p> </div> </aside> <div class="content" if(isset($_GET['page'])) { if(isValidPage($_GET['page'])) { @include($_GET['page'] . '.php'); } else { @include('invalidpage.php'); } } else { @include('main.php'); } </div> <footer> <p class="copyright">"Be fair and share, don't be that jerk who steals"</p> </footer> ?> </body> </html>[/code]
[QUOTE=HiddenMyst;46156482]Hey guys, I'm pretty new to PHP and don't know all the quirks so far. I was restructuring my site, which was working up until my changes, and it looks like I've broken something completely. Nothing shows on the page now and viewing the page source is blank too. Can anybody see any glaring errors with this? [code]<!DOCTYPE html> <html> <head> <title>mtmilo</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js?onload=onLoadCallback'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); }); </script> </head> <body> <?php @require('functions.php'); <header> <img class="topbanner" src="logo.png" /> </header> <aside> <nav> @include('navbar.php'); </nav> <div> <p>"Created by Miles Flavel"</p> </div> </aside> <div class="content" if(isset($_GET['page'])) { if(isValidPage($_GET['page'])) { @include($_GET['page'] . '.php'); } else { @include('invalidpage.php'); } } else { @include('main.php'); } </div> <footer> <p class="copyright">"Be fair and share, don't be that jerk who steals"</p> </footer> ?> </body> </html>[/code][/QUOTE] All HTML within your <?php and ?> must be echo'd. as following: [code] <?php echo "<html>"; echo "<body>"; echo "<p style=\"myClass\">Hello world!</p>"; echo "</body>"; echo "</html>"; ?> [/code] So to answer your question, yes, every line within your <?php ?> block contains about one error.
Sorry, you need to Log In to post a reply to this thread.