[Solved] Save advert click to database using PHP, then open link

You will want to do something like $(function() { $(“.advertLink”).on(“click”,function(e) { e.preventDefault(); // stop the link unless it has a target _blank or similar var href = this.href; var id=this.id; // or $(this).data(“advertid”) if you have data-advertid=”advert1″ on the link $.post(“./wp-content/plugins/facilitaire-advert-widget/save-advert-click.php”, { “action”:”call_this”, “advert_ID”:id }, function() { location=href; // or window.open } ); }); }); … Read more

[Solved] Is there any free wordpress plugin to showcase client’s logo carousel in grayscale effect ?

user this plugin and add below css “Client Carousel plugin” img { filter: gray; /* IE6-9 */ -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */ filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */ } /* Disable grayscale on hover */ img:hover { -webkit-filter: grayscale(0); filter: none; } 2 solved Is there … Read more

[Solved] Malicious code found in WordPress theme files. What does it do?

After digging though the obfuscated code untangling a number of preg_replace, eval, create_function statements, this is my try on explaining what the code does: The code will start output buffering and register a callback function triggered at the end of buffering, e.g. when the output is to be sent to the web server. First, the … Read more

[Solved] Insecure call on WordPress Site

I visited your site. You are loading mixed content, as can be seen through the following Chrome console warning: Mixed Content: The page at ‘https://rideyellow.com/‘ was loaded over HTTPS, but requested an insecure video ‘http://rideyellow.com/wp-content/uploads/2017/01/RideYellow_1.mp4‘. This content should also be served over HTTPS. Also, you do have a form element in line 247, but you … Read more

[Solved] fatal error: Parse error: syntax error, unexpected $end in

You have issue with php default and short tags. <? … ?> PHP short tag <?php … ?> PHP default tag See here for more details Please replace your last few lines with following code <?php } function add_bxjs() { /*wp_enqueue_script( ‘custom-script’, plugins_url(‘/bxslider/jquery.bxslider.js’, __FILE__ ) , array( ‘jquery’ ) );*/ wp_enqueue_style(‘bxstyle’, plugins_url(‘/bxslider/jquery.bxslider.css’, __FILE__ )); wp_enqueue_script(‘jquery’,plugins_url(‘/bxslider/jquery.min.js’, … Read more

[Solved] WordPress Password Page – Wrong Password Message Not Working [closed]

Your logic isn’t right. If the cookie is set when this function is called, that means the hash didn’t match so it’s an incorrect password. function my_password_form() { global $post; $attempted = $_SESSION[‘pass_attempt’] ?: false; $label=”pwbox-” . ( empty( $post->ID ) ? rand() : $post->ID ); $wrongPassword = ”; // If cookie is set password … Read more

[Solved] Change of background using CSS

That would be nice, but no. You don’t need that hard a function, though. Simply attach the background change with the rest of the functionality of the button. I recommend in this case that you just add the background image as css inline with your js, because 6 classes of images can go wrong easy. … Read more