Activity Stream
48,167 MEMBERS
61073 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default Hosts Bot Chk DDL - BBcode

    hi

    this is the bot too chk for hosts:

    the problem is it only chks live links, eg.

    www.oron.com/myfile.txt <-- the bot can see this "live link" btw

    [ c o d e ]www.oron.com/myfile.txt[ / c o d e ] <-- it cnt see it. why? beccos its got tags aaround...

    how to make it chk inside tags to........?
    Chris2k Reviewed by Chris2k on . Hosts Bot Chk DDL - BBcode hi this is the bot too chk for hosts: the problem is it only chks live links, eg. www.oron.com/myfile.txt <-- the bot can see this "live link" btw www.oron.com/myfile.txt <-- it cnt see it. why? beccos its got tags aaround... Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Super Member
    Work around/more ideas in this thread:

    http://www.besthostingforums.com/64-...clickable.html

    So kiss me and smile for me, say that you'll wait for me <'3

  4.     
    #3
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Well, the whole checking of code is:
    PHP Code: 
    <?php

    $hosts 
    = array('test''www.oron.com');

    foreach(
    $hosts as $host) if(strpos('[code]www.oron.com/myfile.txt'$host)) echo 'Yeah, it contains ' $host ' link. <br />';

    ?>
    You could add a statement to check whether it founds anything or not. Because strpos returns the position of the text you find. So if the string starts with the string to search, then it wont work

    PHP Code: 
    <?php

    $hosts 
    = array('test''www.oron.com');

    foreach(
    $hosts as $host) if(strpos('www.oron.com/myfile.txt'$host) !== false) echo 'Yeah, it contains ' $host ' link. <br />';

    ?>
    So it will work for this case too

    Reposting since original post got deleted. Removed the original code since its some other user work this time though

  5.     
    #4
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    so, forgive me if im asking dumb question btw wud this work:
    PHP Code: 
        foreach($hosts as $host)  
        if(
    strpos('[code]'.$host.'[/code]')) $keyword[] = $host; else if(strpos($file['content'],$host)) $keyword[] = $host
    it should work?

  6.     
    #5
    Member
    This site is using a hacked database of W junction
    Last edited by Gavo; 4th Jan 2015 at 02:37 PM.

  7.     
    #6
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by Chris2009 View Post
    so, forgive me if im asking dumb question btw wud this work:
    PHP Code: 
        foreach($hosts as $host)  
        if(
    strpos('[code]'.$host.'[/code]')) $keyword[] = $host; else if(strpos($file['content'],$host)) $keyword[] = $host
    it should work?
    Well, theres no need to check for string with codes

    Try this:
    PHP Code: 
     foreach($hosts as $host) if(strpos($file['content'], $host) !== false$keyword[] = $host

  8.     
    #7
    Member
    Website's:
    tehMoviez.com 0Senes.com GeekFaceGames.com
    use regex if you want more certainty
    PHP Code: 
    $string '[code]www.oron.com/myfile.txt'//your string here
    $host 'oron.com'//mind the format, host.com, no www.
    $host str_replace('.''\.'$host); //escape dots
    $pattern '/(w{3}|)\.' $host '[a-zA-Z0-9_\\-.:#\/~}]/i'//pattern to use
    $found preg_match($pattern$string);

    echo (
    $found 'found' 'not found'); 

  9.     
    #8
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    hi i think soft2050 is on the rite track... btw will it chk live links aswll as linkss in tags likee [code] and <pre>

  10.     
    #9
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Well, it does work for [code] and <pre> tags. because it does work for:

    PHP Code: 
    <?php

    $hosts 
    = array('test''www.oron.com');

    foreach(
    $hosts as $host) if(strpos('[code]<pre>www.oron.com/myfile.txt</pre>[/code]'$host) !== false) echo 'Yeah, it contains ' $host ' link. <br />';

    ?>
    For the live links, no it wont check those. You need to get the links and check them then.

    Also, the above method will check for the string in the page, it will add it if it found even the domain name in the page. so either you have to specify the full link starter (eg: filesonic.com/file) or use regex so that no one can spoof.

  11.     
    #10
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    so the code i gave in post #4 not work...

    cos its chking if it has tags and if it dont.......

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Hiring] PHP Dev for BBCODE
    By tarung2010 in forum Completed Transactions
    Replies: 0
    Last Post: 5th Jan 2012, 05:43 PM
  2. vb 4.1.4 BBCode
    By muditha in forum vBulletin
    Replies: 0
    Last Post: 27th Jul 2011, 07:34 AM
  3. Youtube plugin icon/bbcode after "Slide Tag" bbcode?
    By CyberAff in forum Feedback and Suggestions
    Replies: 9
    Last Post: 20th May 2011, 03:35 PM
  4. BBcode help
    By zay in forum Webmaster Resources
    Replies: 4
    Last Post: 17th Mar 2011, 02:28 AM
  5. CMS that allows [bbcode]
    By Hatefed in forum Webmaster Discussion
    Replies: 2
    Last Post: 31st Dec 2010, 09:29 AM

Tags for this Thread

BE SOCIAL