Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Mutiny

    EntitledStories.com - I built my own PHP based Reddit clone where users can share stories!

    @Tealk I'll have to look into ActivityPub, that looks interesting. Maybe I should include the libraries locally instead of using CDNs. There's pros and cons I think to both approaches, either hosting locally or loading from a CDN. I'll also consider your advise about the cookies. The cookies...
  2. Mutiny

    EntitledStories.com - I built my own PHP based Reddit clone where users can share stories!

    Thank you! Emailing the best stories of the day is a good idea! I will certainly consider that as a feature!
  3. Mutiny

    HTML & CSS Updating website content regularly

    The best way is to create a database inside of your hosting panel and upload the files from the Wordpress download yourself. Then install Wordpress using its own built-in self installer. This way Wordpress will be able to update itself as new security patches come along, something that...
  4. Mutiny

    EntitledStories.com - I built my own PHP based Reddit clone where users can share stories!

    Hi Everyone, I wanted to show off my latest project, EntitledStories.com. It's a custom PHP based Reddit clone that I wrote completely from scratch. The premise behind the site is that users can share stories like those seen on Reddit, such as Entitled Parents, Pro Revenge, Malicious...
  5. Mutiny

    CSS Changing appearance of link A

    What is working and what isn't? Does nothing work? I would recommend first get the style for the visited link working on all the links, so you get the arrow placement correct. Then, take that code you know works and get the logic for visited / unvisited working. Then style your unvisited...
  6. Mutiny

    PHP Help with if/else statement for WordPress function

    So, the first version of your code I think fails because you only check the first item, if that fails you break out of the for loop and get the message. What I recommend is rather than trying to do your for loop to display the events while also doing your calculation of whether an event is in...
  7. Mutiny

    JavaScript Limit variable

    Change your rotate function to something like this: function rotate(grader) { let min = -20; // Minimum Degrees let max = 90; // Maximum Degrees let new_rotation = grader + current_rotation; if(new_rotation < min || new_rotation > max) { console.log("Cannot...
  8. Mutiny

    HTML & CSS Updating website content regularly

    How customizable those items are depends on the theme and the settings the developer made available to you within the theme, but those are pretty standard things that I think Wordpress theme developers make available for the theme. As far as installing Wordpress and keeping it secure, I would...
  9. Mutiny

    JavaScript Help with Upload javascript

    Do you get any errors on mobile? Does it fail to upload on both Android and iPhone, or just one? I know iPhones can be particularly tricky. You might have to debug using a tool like LambdaTest (https://www.lambdatest.com/) so you can get the output of the mobile Javascript console...
  10. Mutiny

    JavaScript Help with Upload javascript

    I think you are trying to get the file using $_FILES when you should be getting it from $_POST. Treat the file just like any other form field, you should get a blob that contains the code for the file. You should be able to take that blob data and write it to the database or to the file system.
  11. Mutiny

    HTML Recording data in forms

    That's going to be hard for local development. I know with Chrome OS you can install a local Linux instance. You'll likely need to install Linux locally, then set up the Linux install to act as a web server. This might help...
  12. Mutiny

    JavaScript Help with Upload javascript

    Do you get any errors when trying to upload? What do you see in your browser's network console, does a file upload request appear to start and then fail with a server error?
  13. Mutiny

    HTML Recording data in forms

    What does your local development environment look like? You will need a local web server running PHP in order to work with PHP, you can't just load it in a browser like with HTML. I recommend WAMPServer if you're on Windows: https://sourceforge.net/projects/wampserver/ For Mac a good one is...
  14. Mutiny

    HTML Recording data in forms

    So, a HTML form by itself doesn't have any ability to save data. For that you'll need a server side language, such as PHP as well as possibly a database like MySQL. Here's a simple example of how to capture the form values and display them back to the user...
  15. Mutiny

    HTML & CSS CSS Flexbox Layout

    Take a look at: https://developer.mozilla.org/en-US/docs/Web/CSS/flex Basically, the number has to do with how big the element is in relation to the container. So, I'm guessing the template you have is a navbar on one side and an article on the other? The navbar has a value of 1, so it would...
  16. Mutiny

    With which languages should I be able to code, so I can code anything.

    There is no language that can code everything. The languages you use to make a web app will be completely different from those you use to make a mobile app, for instance. What is it you want to code? Do you want to make mobile apps, websites, Windows applications, video games or something else?
  17. Mutiny

    JavaScript Help with Upload javascript

    Try changing async function uploadFile to function uploadFile, you don't need to asynchronously call that function since the user is pressing a button to trigger it.
  18. Mutiny

    JavaScript Help with Upload javascript

    How is your uploadFile function being called? It doesn't appear anything actually ever calls it. Maybe you need to do: <button id="fileupload" onclick="fileUpload()">
  19. Mutiny

    HTML & CSS Need Help Fixing Dropdown Menu Error

    Do you know what template language this is? There are elements like {% that look like a templating language, but I am not familiar with that language.
  20. Mutiny

    HTML & CSS trouble with css selectors combining

    I think the problem is that the ~ selector selects from siblings of the selector. When the label, input and article are all on the same level, they are siblings, but with the input inside of the label it is no longer a sibling to article. You could put the article inside of the label, that...
Back
Top Bottom