Results 1 to 3 of 3
-
19th Jun 2011, 07:37 PM #1OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.orgFix Pages in Site Downloads Mod??
Can anybody help me fix the pages in the "site Downloads" mod for WCDDL v2??
When viewing a site the pages need to be like:
Code:http://evilddl.com/index.php?page=2&site=google.com
This is what I have tried...
In wcfg.php I have changed it like this:
PHP Code:"default" => "index.php?page=[PAGE]",
"search" => "index.php?page=[PAGE]&q=[Q]",
"type" => "index.php?page=[PAGE]&type=[TYPE]",
"search_type" => "index.php?page=[PAGE]&type=[TYPE]&q=[Q]",
"site_downloads" => "index.php?page=[PAGE]&site=[SITE]"
PHP Code:public function pageHTML($nums) {
if(!is_array($nums) || intval($nums[0]) != $nums[0])
return false;
$html = "";
$url = $this->pageURLs['default'];
if(!isset($this->q) && !isset($this->type))
$url = $this->pageURLs['default'];
elseif(isset($this->q) && !isset($this->type))
$url = $this->pageURLs['search'];
elseif(isset($this->type) && !isset($this->q))
$url = $this->pageURLs['type'];
elseif(isset($this->type) && isset($this->q))
$url = $this->pageURLs['search_type'];
elseif(isset($this->site) && !isset($this->q))
$url = $this->pageURLs['site_downloads'];
$url = $this->processDataHook("pageURLPattern",$url);
foreach($nums as $num) {
if($num == $this->page)
$html .= '<strong>[ '.$num.' ]</strong> ';
else {
$numURL = str_replace(
array("[PAGE]","[Q]","[TYPE]","[SITE]"),
array(intval($num),$this->qURL,$this->type,$this->site),
$url);
$html .= '<a href="'.$numURL.'">'.intval($num).'</a> ';
}
}
$html = $this->processDataHook("pageHTMLData",$html);
return $html;
}
DEViANCE Reviewed by DEViANCE on . Fix Pages in Site Downloads Mod?? Can anybody help me fix the pages in the "site Downloads" mod for WCDDL v2?? When viewing a site the pages need to be like: http://evilddl.com/index.php?page=2&site=google.combut I can't get the site bit to show.... This is what I have tried... In wcfg.php I have changed it like this: "default" => "index.php?page=", "search" => "index.php?page=&q=", Rating: 5
-
19th Jun 2011, 10:29 PM #2BannedWebsite's:
WarezRelease.org ThatHosting.cohmm create a new file in modules/ called "wcddl_site" and add: (ive just written the same 4 my site with extra additions, so i no this works.)
PHP Code:<?php
/*BEGIN_INFO
Show the downloads for an specific site & show the arrowup by Chris2009...
END_INFO*/
if(!defined("WCDDL_GUTS"))
exit;
$modEnabled = true; //Change to false if don't use
if($modEnabled) {
if(isset($_GET['site'])) {
$core->site = $_GET['site'];
if (preg_match('#^[A-Z0-9.-]+\.[A-Z]{2,4}$#i', $core->site)) {
$core->siteSQL = mysql_real_escape_string($core->site);
$core->siteSURL = $core->processURL($core->site);
core->sqlOrder = "views DESC"; //order the downloads list by views, comment if want to show by date
}
function siteDownloads($where) {
global $core;
$lastSiteData = "";
function lastSiteData($download) {
global $lastSiteData,$core;
if(empty($download) || !isset($download['title']) || !isset($download['sname']) || !isset($download['surl']))
return $download;
if($download['surl'] == $lastSiteData)
$download['siteLink'] = '<center><img src="images/arrowup.gif"></center>';
else
$download['siteLink'] = '<a href="site/'.$download['surl'].'" target="_blank" title="'.$download['sname'].'">'.$download['sname'].'<img src="images/ranks/'.$download['rate'].'.gif" border="0" title="Site Rank '.$download['rate'].'"/></a>';
$lastSiteData = $download['surl'];
return $download;
}
$core->attachDataHook("fetchDownloadsRow","lastSiteData");
}
?>
-
20th Jun 2011, 10:36 AM #3OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.org
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Check Site/Pages Loading Time From Different Places
By viruz99 in forum Technical Help Desk SupportReplies: 3Last Post: 11th May 2011, 03:13 PM -
LE - DDLHeLLZ - Get you Link a Site with Over 30,000 Downloads per Week! [ROM SITE]
By wildfire95 in forum Traffic Market (Buy, Sell and Trade)Replies: 2Last Post: 4th Jun 2009, 04:50 PM -
why suspend site pages come to Ist page ?
By AoN in forum General DiscussionReplies: 2Last Post: 27th Jan 2008, 06:36 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...