Results 1 to 10 of 152
Threaded View
-
21st Feb 2012, 09:36 AM #11Respected MemberWebsite's:
DL4Everything.com Soft2050.in@Mr Happy
You might want to fix a slight bug in the Filehost module while checking for backlink
If a website has code like this:
Code:<a href="http://someanotherddl.com" rel="nofollow">SomeAnotherDDL</a><a href="http://www.google.com">Google</a>
Then the module will show as nofollow.
Example:
PHP Code:<?php
function backlink($page, $data) {
if(!$page || !$data)
return 'error';
$page = strtolower($page);
$regex = '<a(.*)'.$data.'(.*)>';
preg_match($regex, $page, $match);
if($match) {
if ((strpos($match[1], 'nofollow') || strpos($match[2], 'nofollow')))
return 'nofollow';
return false;
}
else
return 'backlink';
}
echo backlink('<a href="http://someanotherddl.com" rel="nofollow">SomeAnotherDDL</a><a href="http://www.google.com">Google</a>', 'google.com');
?>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
WCDDL - Development How-To (Modules, Hooks, etc)
By JmZ in forum Web Development AreaReplies: 19Last Post: 25th Jan 2014, 09:09 AM -
WCDDL Modules
By Peach in forum Forum and DDL DiscussionReplies: 3Last Post: 21st Jun 2011, 01:19 PM -
Ultimate WordPress Free Plugins Thread !-Sharing top plugins.
By alex17 in forum Webmaster ResourcesReplies: 3Last Post: 2nd Jun 2011, 04:05 PM -
2x Custom modules, black/whitelist WcDDL
By Chris2k in forum Webmaster ResourcesReplies: 0Last Post: 21st May 2011, 01:01 AM -
Best WCDDL plugins
By bunnny in forum Forum and DDL DiscussionReplies: 25Last Post: 7th Apr 2011, 06:56 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...