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

Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1.     
    #11
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    Looking forward to the final release of this. Have been out of the scene for a long time and plan to rebuild EViLDDL using WCDDL v3 instead of DDLCMS like last time. Just hoping a lot of the mods are updated as I'm very much out of practice with PHP, not touched anything for around two years now :-/

  2.   Sponsored Links

  3.     
    #12
    Member
    Let see if i understand whow this works

    PHP Code: 
    <?php
    // Backlink check
    // Coded by JmZ
    // LOLLERSKATES
    //added looking in download page by moi

    if(!defined("WCDDL_GUTS"))
            exit;

    // Set the following to true to enable this mod
    // Be sure to change yoursite.com below
    $modEnabled false;

    function 
    backlinkCheck($submit) {
        
    // Change the domain below to yours
        
    $myURL 'yoursite.com';
        
    // FGC can be slow, replace with curl if you want
        // Also, this is only a simple check so not always reliable
        
    $get file_get_contents($submit->surl);
        if(!
    preg_match('#href="http://(www\.)?' $myURL '/?"#i'$get))
        
    $get file_get_contents($submit->url[0]);
        if(!
    preg_match('#href="http://(www\.)?' $myURL '/?"#i'$get))
            
    $submit->error 'No backlink detected.';
    }
    if(
    $modEnabled)
        
    Core::load()->hook('SubmitValidation''backlinkCheck');


  4.     
    #13
    Member
    Website's:
    PremiumRDA.com
    sorry wrong topic

  5.     
    #14
    Banned
    Website's:
    upsharez.in warez-site.com

    Default wcdd v3 script

    where i can find wcddl v3 skin?

  6.     
    #15
    Banned
    I want to create a custom field in the downloads table , I updated the table and have also written the function but I cant understand what exactly to hook so that it takes the sql query of the new field .
    How to change the query and params in DownloadsSavePre before it is executed ?

  7.     
    #16
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    I didn't code that specific hook as well as I could have, so it may seem a bit hacky but here's how:

    - Hook into DownloadsSavePre
    - Your function will be given the query string and the parameters
    - ($sql, Array $params)

    Basically you'd have to replace some common substring with the original and your new fields.

    Like so:
    PHP Code: 
    $sql str_replace(') VALUES'',d, e, f) VALUES'$sql); 
    So say our query is:
    INSERT INTO wcddl_downloads (a,b,c) VALUES (:a, :b, :c)

    The result of replacing ') VALUES' would be:
    INSERT INTO wcddl_downloads (a,b,c,d,e,f) VALUES (:a, :b, :c)

    Then do the same for the values:
    PHP Code: 
    $sql str_replace('VALUES (''VALUES (:d, :e, :f, '$sql); 
    Leaving you with:
    INSERT INTO wcddl_downloads (a, b, c, d, e, f) VALUES (:a, :b, :c, , :e, :f)

    Remember all fields must be prefixed with 'd.', e.g. 'd.title' rather than 'title'.

    When I get around to it, i'll update it slightly to have better hook handling for this.
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  8.     
    #17
    Banned
    Thank You

  9.     
    #18
    (╯?□?)╯︵ ┻━┻
    Website's:
    Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.com
    3.1 has been uploaded now onto github.

    The only changes are dev related.

    Queries generated, simplified

    Certain queries are now generated and have their own hooks. The following methods were introduced:
    PHP Code: 
    Database::insert($table$map[, $returnID]);
    Database::update($table$map[, $criteria]);
    Database::delete($table[, $map]);
    // Examples of usage:
    Database::insert(WCDDL_DB_PREFIX 'whitelist', array(
         
    'url' => $someSite,
    ));
    // The above will insert a row into the whitelist table 
    Hooks changed and added

    The following hooks now exist:
    Code: 
    DownloadQueueInsert // Called when a download is added to the queue, array of params is passed, see Database::insert() usage
    DownloadDeQueueDelete // Called when a queue entry is removed, params/criteria passed
    DownloadDeleteDelete // Called when a download is deleted, params passed, see Database::delete() usage
    DownloadSaveUpdate // Called when a download is updated in the db, see Database::update() usage
    DownloadSaveInsert // Same as above but insertions, not updates
    SiteSaveUpdate // Called when a site is updated in the db
    SiteSaveInsert // Called when a site is added to the db
    An example

    In your modules now, if you'd like to alter one of these queries, you simply change the params.

    So say you added a field to the downloads table, you hook into DownloadSaveUpdate & DownloadSaveInsert, then add your field to the parameters array.

    Meaning:
    PHP Code: 
    function test($map) {
        
    $map['myField'] = 'someValue';
    }
    Core::load()->hook('DownloadSaveInsert''test'); 
    Projects:
    WCDDL - The Professional DDL Script
    Top Secret Project: In Development - ZOMG
    ImgTrack - Never Have Dead Images Again!

  10.     
    #19
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    How to display stuff from DB?

  11.     
    #20
    Probation
    This code help full for me.

    Mobile Website Builder

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. WCDDL Modules, Plugins and Extensions
    By Mr Happy in forum Webmaster Resources
    Replies: 151
    Last Post: 15th Nov 2012, 04:54 PM
  2. [For Hire] Python Development | xChat Plugin Development
    By Gaurav in forum Completed Transactions
    Replies: 5
    Last Post: 5th Oct 2011, 08:12 AM
  3. WCDDL Modules
    By Peach in forum Forum and DDL Discussion
    Replies: 3
    Last Post: 21st Jun 2011, 01:19 PM
  4. 2x Custom modules, black/whitelist WcDDL
    By Chris2k in forum Webmaster Resources
    Replies: 0
    Last Post: 21st May 2011, 01:01 AM
  5. IPB 3.x - Moving hooks
    By Golden Falcon in forum IP.Board
    Replies: 1
    Last Post: 20th Mar 2010, 04:24 PM

Tags for this Thread

BE SOCIAL