Dmoz plugin

Discussion in 'Programming' started by Marty_, Oct 18, 2007.

  1. #1
    I have a problem with a Perl Domz plugin every other category works fine apart from the "Kid and Teens" not that I know anything about Perl I believe the problem lays with how Dmoz produces the listings, I refer to for example http://www.dmoz.org/Kids_and_Teens/Arts/ we have a kind of maturity warning just after each link example : [ Kids/Teens/Mature Teens ] my script dose refer to this as seen below, but again I think the script is incorrect and I seek advise.

    snip of script code :
    sub PrepareDmozPage{
    my ($Page) = @_;
    	
    	$Page =~ s/<base target="_top">//g;
    	$Page =~ s|<img[^>]*>||gis;
    	$Page =~ s#(<small>)?\[\s*(Kids|Teens|Mature Teens)[^\]]*\](</small>)?##gis;
    
    	$Link = qq!$Script_URL?action=GetDmozCategory&Category!;
    	
    	$Page =~ s|<a\s+href="\/(.*)/">|<a href=\"$Link\=$1&Cat_ID=$Param{Cat_ID}\">|g;
    
    	return $Page;
    }
    Code (markup):
    If someone could help or I don't mind paying for a fix if I have to, please advise what my options are besides the fact that I should seek advise from the author hes useless and demands large amounts of money for the simplest of tasks, so F him.
     
    Marty_, Oct 18, 2007 IP
  2. Marty_

    Marty_ Banned

    Messages:
    1,031
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could someone then maybe recommend a different forum ?
     
    Marty_, Oct 19, 2007 IP