Jump to content

Nathan

Administrators
  • Content count

    2,184
  • Joined

  • Last visited

  • Days Won

    60
  • Feedback

    100%

Nathan last won the day on January 23

Nathan had the most liked content!

About Nathan

  • Rank
    Founder
  • Birthday 10/07/1983

Contact Methods

Profile Information

  • Gender
    Male
  • Location
    Kansas City
  • Expertise
    Database

Recent Profile Visitors

40,461 profile views
  1. I know this is a pretty basic thing, but I've seen so many tutorials out there that are non-dynamic solutions. Normally when you google "How to force HTTPS using an .htaccess file" or "Redirect HTTP to HTTPS using an .htaccess file" you get examples like the below. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] This does work, but you have to replace www.example.com with your domain and it's then hard-coded and not dynamic. I don't like hard-coding anything unless it's absolutely necessary, so here's an example of the dynamic way to redirect to https from http requests using your htaccess file. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] View the Prodjex Blog post on How To Force HTTPS Using .Htaccess.
  2. This is an example of how to disable right clicking on a website using JavaScript and Bootstrap. You could leave Bootstrap off completely and use the basic alert functionality, but it's not as clean looking to the end user and limits some of the customization. The following is the JavaScript code used to listen and catch the right click action anywhere on your page. When a user right clicks it shows the Bootstrap Modal and stops the right click function from firing. <script> $(document).on('contextmenu', function () { $('#exampleModal').modal('show'); return false; }); </script> Below is the script inserted on an example page. You can view the demo of it in action here. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="Example of how to disable right click on a website using Javascript and a Bootstrap Modal"> <meta name="author" content="Projex"> <title>Bootstrap and Javascript Right Click Disable Example | Prodjex Web Development and Consulting</title> <link href="../css/bootstrap.min.css" rel="stylesheet"> <link href="../css/signin.css" rel="stylesheet"> <style> body{background-color: grey;} p{color: #fff;} </style> </head> <body class="text-center"> <div class="container"> <div class="col-md-12"> <img src="https://forums.prodjex.com/uploads/monthly_2017_12/5a49485fa77dd_logobig.png.0c19c7fc9cc393df1ad69f5ec30877c1.png"><br><br> <p>Right click on this page...</p> </div> </div> <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Warning</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> </div> <div class="modal-body"> Don't do that! </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-dismiss="modal">I Understand</button> </div> </div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <script> $(document).on('contextmenu', function () { $('#exampleModal').modal('show'); return false; }); </script> </body> </html> Keep in mind just because you disable the right click functionality on your website doesn't mean your content is safe. There are many other methods someone with the right knowledge could use to download media assets or copy text from your website. If you don't want your assets copied or downloaded then don't put it on the internet to begin with. View the Prodjex Web Development Blog post on How to disable right click on a website using JavaScript and a Bootstrap Modal.
  3. Changelog

    What's New in Version 1.0.15 - 02-13-2018 New functionality to filter which user groups should be included/excluded from contests.
  4. Do not list staff in Power Contest

    @ciamciaj - The new version is live to download here.
  5. Do not list staff in Power Contest

    @ciamciaj - Submitting this for approval tonight. I’ll let you know once it’s approved so you can download the newest version. Thanks for reporting and your patience.
  6. MailChimp API Subscriber Sign Up

    MailChimp allows you to create sign up forms with their builder, but they can be a pain to style and for some don’t allow enough customization. The following code is an example of how you can take advantage of the MailChimp API to subscribe new users. Doing this allows you to then create a custom sign up form and style it easily to match your own look and feel. This example assumes you’re only passing the First Name, Last Name, and email of a new subscriber. It’s easy enough to add additional fields, but this will get you started. First you’ll need to setup an API key in your MailChimp account, so login and navigate to Account -> Extras -> API Keys. Once you’ve clicked to create a new API key go ahead and copy the API key and place it in your code. Now you will need to find the list ID. This is not the ID of the list from the URL. You need to go to your lists and in the drop down select settings. Scroll all the way down and here you will find your list ID to replace in the code. You’re all set, now create your form matching the names from the following script and set your form action to “GET”. <?php /** * Created by PhpStorm. * User: Prodjex * Date: 1/31/2018 * Time: 9:04 AM */ //Grab Data Variables Passed From Form $data = [ 'email' => $_GET['email'], 'status' => 'subscribed', 'firstname' => $_GET['firstname'], 'lastname' => $_GET['lastname'] ]; syncMailchimp($data); function syncMailchimp($data) { $apiKey = 'Your API KEY'; $listID = 'Your List ID'; $memberID = md5(strtolower($data['email'])); $dataCenter = substr($apiKey, strpos($apiKey, '-') + 1); $url = 'https://' . $dataCenter . '.api.mailchimp.com/3.0/lists/' . $listID . '/members/' . $memberID; $json = json_encode([ 'email_address' => $data['email'], 'status' => $data['status'], // "subscribed","unsubscribed","cleaned","pending" 'merge_fields' => [ 'FNAME' => $data['firstname'], 'LNAME' => $data['lastname'] ] ]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERPWD, 'user:' . $apiKey); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $json); $result = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); return $httpCode; } View Blog Post
  7. Do not list staff in Power Contest

    Not currently, but that's a good suggestion. Let me take a look at adding a filter for what groups to exclude.
  8. So I've been trying to figure out the best method of mining bit coins as of late. CPU and GPU are not viable options anymore and I didn't want to actually purchase hardware to have in my home. I've found this site Hashflare that allows you to rent their hardware a year at a time at a fixed cost, will see how that goes.
  9. Version 1.0.10 Submitted to Marketplace

    It's live: https://invisioncommunity.com/files/file/8879-power-contest/
  10. With the arrival of the new version of Power Contest we will be running a new posting contest! The user that accumulates the most points from now until the end of January will have the choice of the below prizes. The winner will be the member that earns the most points, detail below. As we continue to grow so will the prize funds, so keep checking back! You must post in this thread to join the contest. StartDate: 01-01-2018 EndDate: 01-31-2018 @ 12AM CST Rules: 1. You can accumulate points by the following: New Topics New Posts New Reactions Received (Post Likes, Post Thanks, etc...) 2. Spam or junk threads/posts will not count towards your points so make sure what you post is quality! Prize Options: 1. Domain The free domain is up to $15.00 cost. (You can get a .com/.net/ect... for this price) The domain will be purchased for 1 year. Godaddy only, we will purchase then transfer to your Godaddy account. 2. Advertising Free 30 Day Text Link in Footer Follow Link 3. Web Hosting Free 30 Days of Hosting on our servers 5GB Hard Drive Space Hosting is on a multi processor enterprise server with free wildcard SSL Certificate No porn or anything illegal 4. Cash If none of the above interests you can take the cash option for $15 via PayPal *Domain of your choice based on availability and price. *Minimum 50 posts or threads to qualify. Check your standings in real-time here!
  11. The newest version of 1.0.10 has been submitted to the IPB Marketplace. Just awaiting approval then will post here with the link.
  12. Official Desktop Image Thread

    Not sure who took the picture but no filter and a storm over Kansas City years ago.
  13. InstaSaber

    Looks like fun...
×