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

    HTML & CSS "Forgot password" code problem!

    In your form, this line may be the problem: <input type="text" name="Uname" id="Uname" placeholder=> Should be: <input type="text" name="Uname" id="Uname" placeholder="" /> It's possible that tag being incorrect is somehow causing the browser to misinterpret the rest of your HTML code...
  2. Mutiny

    JavaScript Help with Upload javascript

    You might need to leave the filename in the JS as-is. Because you're essentially faking an upload of a file from the Javascript, you need a filename you can pass to the PHP script, same as if the user were to hit browse and pick a file from their hard drive.
  3. Mutiny

    JavaScript Not sure where to start In regards to writing a program to be able to edit two PDF documents simultaneously

    I'm not quite sure, but my guess would be that you would need some back end library that can work with PDF files to actually save the bookmarks to the PDF file. If you're going the Javascript route, you would likely need to use server-side Javascript, eg Node.js. Here's some compatible Node JS...
  4. Mutiny

    JavaScript Create a hover dropdown list to an exsting button

    What does the HTML for the button the user will hover over look like and what does the HTML for the container + three links look like?
  5. Mutiny

    JavaScript Help with Upload javascript

    Ah, I had an extra slash at the beginning of the uploads directory path. Try changing: $new_filepath = "/uploads/" . uniqid() . ".". $extension; to: $new_filepath = "uploads/" . uniqid() . ".". $extension;
  6. Mutiny

    Answered How minify HTML, CSS ? (offline)

    You can use gulp to minify your site's assets. This is the setup I use on my personal setup: https://medium.com/swlh/setting-up-gulp-4-0-2-for-bootstrap-sass-and-browsersync-7917f5f5d2c5
  7. Mutiny

    JavaScript Help with Upload javascript

    Try this, take this code: if (!move_uploaded_file($_FILES["${type}-blob"]["tmp_name"], $uploadDirectory)) { echo (" problem moving uploaded file"); } Replace with: $new_filepath = "/uploads/" . uniqid() . ".". $extension; if (!move_uploaded_file($_FILES["${type}-blob"]["tmp_name"]...
  8. Mutiny

    JavaScript Help with Upload javascript

    Change your code like this, at line 16: $extension = pathinfo($filePath, PATHINFO_EXTENSION); die("My extension is: " . $extension); That will stop execution of your script and should also output the extension you are expecting given the file you uploaded. If all is working as it should, you...
  9. Mutiny

    JavaScript Help with Upload javascript

    What is the extension that your call to pathinfo is returning when you try to upload a file? Maybe it is not saving with the correct extension on the server.
  10. Mutiny

    JavaScript function query

    What is this function supposed to be doing? The call on line 3 looks like the function is calling itself, but I'm not sure what the end result of this code is supposed to be? Is this supposed to be just timing how long the function takes to complete?
  11. Mutiny

    HTML & CSS Wikipedia like website

    The term would be: Wiki There's also likely a plugin already out there that will get you most of what you need. I found a few doing a quick search: https://blog.hubspot.com/website/best-wordpress-wiki-knowledge-base-plugins
  12. Mutiny

    HTML & CSS Wikipedia like website

    If you have just a limited group of people, you may be able to use Wordpress for this. Wordpress can handle the user roles for your site and you can give people different permissions to edit different content. Plus, it's PHP and MySQL based, so if you do need custom functionality that can't be...
  13. Mutiny

    HTML & CSS Wikipedia like website

    So, you're looking to create a wiki-type website? What is your background? Are you starting from absolutely no coding experience, or do you have experience in any coding languages? If you're already experienced in some coding, it would likely be beneficial to use the languages you already...
  14. Mutiny

    JavaScript Help with Upload javascript

    Yeah, so because Javascript runs in the browser, everything it does is editable by the end user if they are tech-savvy enough. So, I can go to your site and read your code and see that you are changing the filename in your Javascript. I can also see that when your file is saved, there's a .php...
  15. Mutiny

    JavaScript Help with Upload javascript

    Well, there are two ways to tackle the problem, either rename the file on the client (Javascript) or rename on the server (PHP). You want to be renaming on the server, as if someone can just pass in the same filename by editing your code, they can overwrite the file on your server.
  16. Mutiny

    JavaScript Help with Upload javascript

    @chrisj when you say the file is overwritten, that sounds like a server code problem in the "save1.php" file. What does the code for that look like? I'm thinking you will need to update that file so the filename saved to the filesystem is unique, likely based on the current timestamp plus some...
  17. Mutiny

    CSS Changing appearance of link A

    To remove the underline, text-decoration: none; should do the trick. Maybe it's being overwritten? You might need to add an !important, like text-decoration: none !important;. Also, for the before and after content, you may need to make the parent link position: relative, then make the before...
  18. Mutiny

    I'm happy to find a forum.

    Welcome! Good to have another PHP coder here. :)
  19. Mutiny

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

    @Malcolm yes, I plan to keep improving it and adding to it. First step is implementing some feedback based on what people here as well as on ForumPromotion have said. Then I want to add more language customization to the script. Right now there's a lot hard coded for EntitledStories as far as...
  20. Mutiny

    HTML & CSS Updating website content regularly

    Now that you have your database, next step is to upload your files to your web server. Here is the basic installation instructions from Wordpress: https://wordpress.org/support/article/how-to-install-wordpress/ If you have questions with any of that let us know.
Back
Top Bottom