•  

Prevent Duplicate URL

This thread is over 4 months old
The content and issues discussed here maybe out of date or inaccurate.

Check you are running the latest version of your PremiumPress theme then look for a more recent forum post or submit a support ticket.
  1. u 11310
    offline
    Alok
    Posted 1 year ago

    Hi,

    I can't seem to get to this. I want to prevent duplicate URL's from being entered either from the front-end or the back-end.

    I tried the unique-url-v7 plugin but it doesn't seems to work from the either end.

    Any help will be highly appreciated.

  2. u 828
    offline
    Danie
    Posted 1 year ago

    havent checked the plugin for latest update, have it working fine on a previous V7 install, will check for you and update,

    The computing scientist’s main challenge is not to get confused by the complexities of his own making.
    http://www.web-directory.co.za
    http://www.eish.it
  3. u 11276
    offline
    Jean-Francois
    Posted 1 year ago

    I'm asking a lot but it will be great if this plugin check the description also !

    Something like:
    '
    function checkDupe($description){
    $description = str_replace('"','',$description);
    $desc_cut=wordwrap(stripslashes($desc),100,"",1);
    $cut = explode('', $desc_cut);
    $cut = $cut[0] ;
    $url = 'http://www.google.fr/search?hl=fr&q="'. urlencode($cut).'"&filter=0';
    if (function_exists('curl_init')) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    $data=curl_exec ($ch);
    curl_close ($ch);
    }
    else {
    $data= file_get_contents($url);
    }
    $page = $data ;
    $result = explode('environ ', $page);
    $result1 = $result[1] ;
    $result2 = explode('pour', $result1);
    $result3 = $result2[0] ;
    $result3 = trim(strip_tags(str_replace(' ', '', $result3)));

    // If more than 5 results found, stop the process
    if ($result3 > 5){
    return true;
    }
    else {
    return false;
    }
    }
    '

    Sharing is my goal !
  4. u 828
    offline
    Danie
    Posted 1 year ago

    hey, plugin is free, hack the code as you like

  5. u 11276
    offline
    Jean-Francois
    Posted 1 year ago

    lol
    It was only a suggestion !

  6. u 11310
    offline
    Alok
    Posted 1 year ago

    So did you get any luck with this plugin?

    I think Mark could have integrated this plugin right inside the theme and made it as a on/off option.

  7. u 11310
    offline
    Alok
    Posted 12 months ago

    Hey buddy, did you get any success with this plugin? I need this somehow or the other as I have lot of links to add and its often a tedious job to keep track of which link was added.

  8. u 11276
    offline
    Jean-Francois
    Posted 12 months ago

    About my code, is for the Freeglobes Directory script !
    It was only an example !

  9. u 11310
    offline
    Alok
    Posted 11 months ago

    How about Mark coming forward with a some solution. I desperately need it.

  10. u 828
    offline
    Danie
    Posted 10 months ago

    Hey, had some time to make an upgrade for this plugin, and make it work with DP 7099.
    I have updated the demo link, as well as the plugin download available on the old link.
    You can visit the link in my forum signature for the old links, or just visit the link below to grab the download.
    Have tested it, and it seems to be working great now.
    Please let me know if you have any hassles with the plugin, or if you spot any issues.
    http://www.create-web-directory.com/unique-url-plugin/

  11. u 11276
    offline
    Jean-Francois
    Posted 10 months ago

    Thanks !

  12. u 828
    offline
    Danie
    Posted 10 months ago

    NP It's still best value ... free, and code is open source so get hacking

  13. u 1
    offline
    Mark
    Posted 10 months ago

  14. u 132
    offline
    Emma
    Posted 10 months ago

    Thank you @Danie, I added your plugin a couple of weeks ago and then this week have been getting some sneaky buggers so will download your new version and hope it keeps them out

  15. u 828
    offline
    Danie
    Posted 10 months ago

    Hey Emma, let me know if any sneaky buggers get through this time, and how, and can make some tweaks, hopefully this works now, tests have been good up to date