sachinsud Posted December 3, 2014 Share Posted December 3, 2014 Hello everyone, I run a small url shorting service. I have bought the script and everything which short long urls. And i want to use a php code in one of the pages. Let me explain you in detail first. My site is https://786.pw and user goes there and enter the long url and the short url becomes something like https://786.pw/shorturl ( for example) Now when this short url which is https://786.pw/shorturl is hit the user is redirected to the original long url. And thats how it is supposed to work. But in between i have the option to show a splash page which can be a advertisement or a timer or anything " The code of splash.php is :- <?php defined("APP") or die() // Media Page ?> <?php include_once("analyticstracking.php") ?> <section> <div class="container splash"> <?php echo $this->ads(728,FALSE) ?> <div class="row"> <div class="col-md-4 thumb"> <div class="panel panel-dark panel-body"> <img src="<?php echo $url->short ?>/i"> </div> </div> <div class="col-md-8"> <div class="panel panel-default panel-body"> <h2> <?php if (!empty($url->meta_title)): ?> <?php echo $url->meta_title ?> <?php else: ?> <?php echo e("You are about to be redirected to another page.") ?> <?php endif ?> </h2> <p class="description"> <?php if (!empty($url->meta_description)): ?> <?php echo $url->meta_description ?> <?php endif ?> </p> <br> <div class="row"> <div class="col-sm-6"> <a href="<?php echo $this->config["url"] ?>/?r=<?php echo base64_encode($url->url) ?>" class="btn btn-primary btn-block redirect" rel="nofollow"><?php echo e("Redirect me"); ?></a> </div> <div class="col-sm-6"> <a href="<?php echo $this->config["url"] ?>" class="btn btn-default btn-block" rel="nofollow"><?php echo e("Take me to your homepage") ?></a></a> </div> </div> <hr> <p class="disclaimer"> <?php echo e("You are about to be redirected to another page. We are not responsible for the content of that page or the consequences it may have on you.") ?> </p> </div> </div> </div> </div> </section> Now, I want to add solve media php script in it. Which means any user who is using our url shortner service needs to complete the captcha before he can be finally directed to the destination url. The script supports solvemedia captcha solving. I spoke to the creator of this script and he told me this. "You will need to have some basic php knowledge to achieve this. To add the catpcha you need to use <?php echo Main::captcha() ?> which will echo the captcha To validate the result you need to use <?php if(Main::check_captcha($_POST) == "ok") { // If captcha is ok do something here }else{ // else do something here } ?> " I dont have any php knoweldge., How can i enter this code in splash.php in order to show the captcha ? Please suggest. And ask any question if you need Quote Link to comment Share on other sites More sharing options...
hansford Posted December 4, 2014 Share Posted December 4, 2014 You can either hire a freelance PHP programmer - this is not the forum to do that - or you can try and tackle it yourself using a Search to look up basic IF/ELSE clauses and how to use them. Who knows, you might enjoy what you learn and you'll save some money. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.