Jump to content

Steven1

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by Steven1

  1. Thanks for the reply.

    I've made it open so you don't have to log in to leave a like; in fact there is no login for users, only for businesses for editing their pages/settings. The problem with Google accounts is not everyone has one.

    I just wanted to know what people thought about blocking VPN likes as this should def. reduce the amount of cheating but I wanted to know the potential drawbacks.

     

  2. I'm developing a platform to promote local business services throughout the UK and wondered what you think of this.

    I've added the ability for people to like a business page and the position of search results will be partially based on how many likes a page has. I know some businesses will try to cheat and therefore I am blocking the IP that created the business page from liking their own page but would like to further reduce any possible cheating.

    I was thinking that businesses may try to use a VPN to circumvent the IP block. Would it be wise to block anyone using a VPN from liking a page, or would this serve to interfere with genuine likes?

  3. 2 hours ago, ioannis said:

    is there any way to have two stylesheets and both working normali. do i have to give them different name or change something in the css?

    Thanks

    ioannis

    The problem in using a style sheet someone else created (bootstrap) and then adding your own styles is conflicting rules due to the duplication of rule names. You can avoid creating a convoluted mess by not using bootstrap at all.

  4. 39 minutes ago, ioannis said:

    I think that the problem is with this two link rel stylesheet that i have in the begining. If i take away the :

    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

    the dropdown is working. But i don't have then the table lines.

    Do i have to name the stylesheets by a different way?

    Ioannis

    My personal opinion is you should write your own code and not use bootstrap, however;

    Try removing ALL external dependencies and chopping your code down as small as possible so you are left with one example of what you want to achieve.

    Then, if you need to, reintroduce the external dependencies one file at a time to see what breaks.

  5. No. CSS is essential and even though it's rather simple, it's still an integral part of web design. CSS is getting a little more complicated these days with different functions for both layout and animation. I would learn as much as possible.

    • Avoiding inline CSS
    • How to make fluid layouts
    • How to make screen size independent layouts
    • How to combine fluid layouts with screen size independent layouts
    • How to make style rules universal across the design so you write less code
    • How to serve style information as quickly as possible by all critical/shared style rules in one separate file

    There's plenty to learn.

  6. There are many misconceptions about server configuration and security in .htaccess files and information online seems sporadic at best.

    I think a section on that would help immensely and could possibly become to the go to resource for the web if it is strictly monitored.

  7. With CSS, setting the background colour of the page can be approached in 3 different ways. Choose one below;

    /* Makes all backgrounds white */
    * {background:#fff;}
    html {background:#fff;}
    body {background:#fff;}

    You can override this setting on subsequent elements with subsequent styling rules.

  8. On 8/22/2019 at 3:29 PM, ConcernedAntifascist said:

    After using W3Schools for years, I will now be boycotting your website due to "fake news" advertisements your website is carrying that promote fascism.

    I am the director of technology at my company and I will be switching any online training for my subordinates to Code Academy, and any lookups for HTML, CSS, or JS standards to Stack Overflow. Your website will be blacklisted at the network level at my company.

    In addition, I will be pointing out how you are running ads promoting Trump's fascism (with false propaganda lies I might add) to my 600 thousand Twitter followers and the thousands of Reddit users I interact with daily.

    I don't much care about World Wide Web Standards if I have to program the web under a falsely installed fascist regime YOU helped promote.

    Nothing W3Schools could do at this point will change the above outcomes... but maybe you can start better filtering your ads, or even better start rejecting ads from fascist dictators for you future users.

    Thank you for your time and consideration, and have a nice day.

    Whether I agree with you or not, this isn't a place for politics, it's a place of learning and you should feel privileged that you are able to join a place such as this which offers FREE advice! I suspect your "blacklisting" of this redound website will have zero effect on its future.

    Goodbye!

    • Like 1
  9. Overall your website looks very professional and loads quickly. The only thing I'm not keen on is the bunching together of 3 elements across the width of the page. I'd reduce the amount of text and add some padding so there's a clear gap between each element and possibly even add a border around the elements, maybe with rounded corners for a bit of extra style.

    Example image attached of issue.

    Other things I noticed is the blurriness of images in the horizontal slideshow.  I'm running a desktop @ 1920 X 1080 and it doesn't look good. You may say that most people will be visiting on laptop, tablet or mobile and you may be right but you have to cater for everyone. I'd keep the original dimensions of the images or serve larger images and resize them according to screen width.

    One last thing at a glance is there is a lack of hover styles on buttons. It would be nice to have some button feedback.

    image.jpg

  10. No one will be willing to answer this question due to the massive amount of code you have posted which includes many scripts and dependencies.

    An easier option would be to point to a website with a working drop-down function similar to what you want to achieve. If you do this a coding example can be provided.

  11. The form button is the issue here as the button is a submit and will refresh the page. Here's a simple AJAX example using jQuery.

     

    <!-- Instead of this -->
    <button type="button" onclick="massflow()">submit</button>
    
    <!-- Try this -->
    <div id="sendForm">submit</div> <!-- Make your div look and act like a button using css -->
    
    <!-- Then (this is using jQuery) -->
    <script>
    // AJAX post form
    $(document).on('click','#sendForm',function() {
    var id=$(this).data("theFormTagWithTheDdata"); // This is the form tag with the data you want to capture
    $.ajax({
    url:"myupdate.php", // This is where you include your php file to handle the data
    method:"POST",
    data:{id:id},
    dataType:"text",
    success:function(data) {
    // Show buttons here or take other actions like go to a new url
    }
    });
    });
    </script>

     

     

  12. You don't need JavaScript at all. I was formerly using it for inline code but have beefed up my security settings by disallowing all forms of inline code, now I use a meta tag like this;

    <!-- Replace the zero with how many seconds of delay you want before the refresh is triggered -->
    <meta http-equiv='refresh' content='0;url=https://example.com' />

    If you really want to use JavaScript you could use this;

    <script>
    // The following replaces the current URL with a new one
    window.location.replace('https://example.com');
    
    // Or with a time delay in microseconds (currently set at 2 seconds)
    setTimeout( function() {window.open('https://example.com','_self')}, 2000);
    </script>

     

×
×
  • Create New...