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

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org

    Question 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:
    Code: 
    http://evilddl.com/index.php?page=2&site=google.com
    but I can't get the site bit to show....

    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]" 
    And in funcs.php like this:
    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;
        } 
    But its still not working and I'm now confused. Any help is much appreciated.
    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

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    hmm 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");
        }
        
    ?>
    it may need some editing, as i just grabbed my file nd removed my shit. if u want my version jus tell me, site/'.$download['surl'].' << edit this.

  4.     
    #3
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    EDIT: I have fixed the problem myself. Thanks everyone whon tried to help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Check Site/Pages Loading Time From Different Places
    By viruz99 in forum Technical Help Desk Support
    Replies: 3
    Last Post: 11th May 2011, 03:13 PM
  2. 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: 2
    Last Post: 4th Jun 2009, 04:50 PM
  3. why suspend site pages come to Ist page ?
    By AoN in forum General Discussion
    Replies: 2
    Last Post: 27th Jan 2008, 06:36 PM

Tags for this Thread

BE SOCIAL