Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kitcorsa

Privileged
  • Joined

  • Last visited

Everything posted by kitcorsa

  1. kitcorsa replied to kitcorsa's topic in Frontend
    i have a div which has a boarder that displays NEWS at the top of the site. The news s edited in a txt file which is then included into the div via php. The txt file is edited via and admin screen ive created. If the txt file has no news, ie all the text and images deleted, then the Div is hiden ie not displayed, but if it has some text in it then it is displayed. if i let the txt file empty but didn't hide the iv the boarder is still shown as a line accross the page. its all sorted now and working great
  2. kitcorsa replied to GAR-E's topic in Frontend
    or dont make the text fully hidden, ie lightgray on a white background, so the text isn't hiden. the best think is to have keywords all over in you alt tag on pics etc
  3. then add to you CSS style sheet an img property ie #example { border: 1px solid #000; } #example p { padding: 0 0 0 0; margin 0 0 0 0; color: #000; #example img { float: left; margin: 0 0 0 0; } just for example
  4. kitcorsa replied to kitcorsa's topic in Frontend
    sorted it. i used an echo to output the file size of the empty txt fle and it out putted 2. so i change the if statment is the php i listed to smaller than 3 and it now hides the div. <?php if (filesize("includes/news.txt") >= 3) { ?> <div id="news" stye="display:block;"/> <?php include("includes/news.txt"); ?> </div> <?php } ?>
  5. kitcorsa replied to kitcorsa's topic in Frontend
    also tried <script type='text/javascript'> function display_or_not(news) { var newsnode = document.getElementById(news); //execute script after 10 milliseconds -- to allow the inside of that div to populate if they need to window.setTimeout(function(){if (newsnode.innerHTML=="") {newsnode.style.display='none';}},10); } </script> <div id="news" stye="display:block;" onload="display_or_not(this.id)"/> <?php include("includes/news.txt"); ?> </div> and didn't work
  6. kitcorsa replied to kitcorsa's topic in Frontend
    also tried <?php if (filesize("includes/news.txt") >= 1) { ?> <div id="news" stye="display:block;"/> <?php include("includes/news.txt"); ?> </div> <?php } ?> and this not work either.
  7. kitcorsa replied to luke1's topic in Frontend
    if you already know html and are used to using tables, then just replace the tables with divs and style them in a style sheet. ie <div="example"> <p>example text</p> </div> stylesheet css #example { width: 100px; border: 1px solid #000; }
  8. kitcorsa replied to kitcorsa's topic in Frontend
    nope that does the same, ie no effect.
  9. kitcorsa replied to kitcorsa's topic in Frontend
    cheers fella ill try that as check it works
  10. kitcorsa posted a topic in Frontend
    i have the following <div id="news"/> <?php include("includes/news.txt"); ?> </div> the include is a text file which is edited from a CMS ive created. The div has a border around it. When the included txt file has html code and text etc in it it works great, but when there is no news to report and all the text is removed and deleted there is still a thin line showing which is the box border but with no content. is there a way to hide/ not display this news div if the include file is empty??
  11. mk1 was using latitude and lodidude and using the a Haversine formula but as you will find in my mk1 post its not very acurate and quite buggy. this version mk2 using grid refences and using pythagoras theory to calculate the distance in meters. which i then convert to km and miles. in regard to the first part of the post code, the distance between say ts12 1 and ts12 9 is roughtly 3 miles so this is an exceptable difference as it doesn't need tp be exact. but the code could be adapted to use the full postcode all that would be required is the gide ref for all the additional postcode etc. A database can be bought from the post office which i belive may go into more detail but would need to be purchased and this database is what we are supplied with. This code can be used for so many things including ebays distance program which isn't exact or auto trader etc regards the road milage.... in one of the further reading i have been given to research regarding this project i read something about the the coutours of brittan and corners etc, went into great detail and had a massive mathmatical equasion....... but to cut it short basically you need to add 21.43788888888% (or something stupid cant member the exact number off the top of my head) to the stright line milage to get a rought road milage. i just added 22% as it was just easier and gave a more round number. so basically multiply the milage result from the pythagoras theory result by 1.22
  12. you can just do global changes on most shopping carts to change vat. Zencart can change vat from admin in 1 click. how ever if people want price to remain the same (ie make a little extra money) you need to multiply your net prices by 1.175 then devide by 1.15 so that when the 15% is added for the vat the price is the same as before VAT changed.
  13. sorry my server has has a mysql update (or something) and knocked out all the database http://www.offroadnortheast.co.uk/postcode/test.php should be running now. please test this and let me know your results. ps the road milage should be (hopefully) with in 5-10 miles difference to google maps. this is exceptable according to my course leader.
  14. MK2 available here http://www.webdesignerforum.co.uk/index.php?showtopic=13728
  15. in reply to my older thread http://www.webdesignerforum.co.uk/index.php?showtopic=13722 i have made a new postcode calculator which i would like people to test and let me know the results please. you can use googlemaps for a acurate road mileage to see the diffence between my script and googles GPS sep script http://www.offroadnortheast.co.uk/postcode/test.php <--- MK2 test here
  16. thanks i guess my maths is wrong then. off to look at the other maths i can use.
  17. aye google uses road software and taks into accound hills and corners etc which i cant do, if more people let me know their results and their are more like yours and im well sort then i might have tom look at the other maths for working this out or addin more of a %
  18. kitcorsa replied to N8OEN's topic in Server Side
    my not just move the site to a new server with php
  19. please let me know if you find any errors or not please. 9 views and no feedback yet
  20. Well for a new project im making a website for a delivary company. This company charges by the mile. Part of this site i am required to build a section of the site where a user can enter there postcode then enter the postcode of where they want their item posting. this then works out the mileage between the postcode using latitute and logitude. This isn't perfect how ever as this works out milage as the crow flies and not road miles so adding 25% is a good percentage to add to make up for hills and corners etc. as part of the project we have been supplied a postage database with latitude and longditude to work from. so far i have managed to make the program that works out the distance between the post code and then work out the total price. i have been using the RAC and AA route planner to get me the mileage from postcode then seeing if they are close to my site. could people test and let me know if you find any random errors. http://www.offroadnortheast.co.uk/postcode/example.php <-------- test here i found on from the north east uk to twikinham ts12 to tw1 is miles says 40 miles when its more like 300 but i cant figger out why unless the latiture and longtude of on the database is wrong.
  21. thats what i thought, thanks
  22. im making a quoting system where the user selects a feu options and then an online quote is given. i would then like a paynow button which links to paypal with the pricing information. whats the best way of doing this. ill be using paypals security system and no customer informtion will be collected from the customer on the quote site so no SSL or database is used on the quote site. i would then like paypal to to be used for invoicing and checking payments and gathering the customers information etc. i know paypal business account will be needed its just the passing the infor frommy site to paypal prt im not sure of. paypal do offer a button on a set price, could this set price be changed by using the information from the quote system?
  23. i can't see why you would need and empty div unless you are trying to use it to push text past an image to stop it wrapping or something?? or somethin??
  24. http://www.channelregister.co.uk/200...ank_crackdown/ http://www.seroundtable.com/archives/015589.html http://www.accountingweb.co.uk/cgi-b...%20%25B%20%25Y http://www.seroundtable.com/archives/015538.html Just a few bits of reading.
  25. linking is not a hot idea any more. Google PageRank is on the way out (will be removed shortly) Trust rank is more important these days. And whatever you do, do NOT sell links. It will kill your site Check out seo chat, search engine round table, appropriate threads at digital point, seo refugee etc etc etc, hell even Matt Cutts blogs. It is not so easy to game the search engines these days but you can optimise properly.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.