Geen categorie

Uw eigen Mail adres

1  Email adres Uwnaam@postloket.eu    50 MB  4 cent per dag
2e   Email adres Anderenaam@postloket.eu    50 MB  2 cent per dag
 Email adres Uwnaam@postloket.eu  250 MB  6 cent per dag

Een voorbeeld voor een heer Jan Janssen kan zijn het e-mail account j.janssen@postloket.eu wat hij kan gebruiken. Een ander voorbeeld voor m.koster zou zijn, m.koster@postloket.eu. Indien naam reeds door een ander in gebruik is kunt u, na bericht van ons, een andere gewenste naam opgeven. Na opgave per mail van gewenste naam en te gebruiken MB, verkrijgt aanmelder een retour mail met aanmeldingsnaam, password en server informatie toegezonden.

WordPress Plugin functionality

class oPasswords {

//public or private $var main different is scope, when you have doubt take public
public $options;

//Wordpress calls init while initiation the plugin. So all your predefined are initialized
    public function __construct() {
        add_action('init', array($this, 'init'));
    }
// Initiate plugin, if you have things that you will initialize. Its not required

    public function init() {

    }

}

new oPasswords();

The plugin still do nothing, that we have to develop.
First we initiate some values we use.
We also can set a hook, a hook is a place where WordPress execute a given function.
In this case, when install do “paswords_install()”, when uninstall do “passwords_remove()”.
Most of the time is that used to set some values used by the plugin but saved by WordPress.
All other function calls will explained in order of importance.

    public function init() {
        //set install hook, for adding of removing options
        register_activation_hook(__FILE__, array($this, 'passwords_install'));
        //* Runs on plugin deactivation*/
        register_activation_hook(__FILE__, array($this, 'passwords_remove'));
        //register_deactivation_hook( __FILE__, $this->passwords_remove());
        //get some CONSTANT values
        $this->defenitions();

        $ok = load_plugin_textdomain('passwords', false, dirname(plugin_basename(__FILE__)) . '/languages');

        add_action('admin_menu', array($this, 'pw_actions'));

        add_shortcode('passwords-new', array($this, 'wp_passwords_new'));
        add_shortcode('passwords-ex', array($this, 'wp_passwords_explain'));

        $this->wp_passwords_add_css_files();
        //$this->wp_passwords_add_javascript_files();

        $this->get_option();
    }

Main action done is pw_actions(), this was initiated in

public function init()

        //ADD function pw_actions() to admin menu
        add_action('admin_menu', array($this, 'pw_actions'));

This function makes the admin menu entries, and link them to sub menu items and other functions.

    public function pw_actions() {
        // Link in het admin menu
        if (is_admin()) {
            add_menu_page('CreatePasswords',        //page_title
                __('CreatePasswords', 'passwords'), //menu_title
                'administrator',                    //capability
                'passcreate',                       //menu_slug   IMPORTANT == parent_slug for others
                array($this, "load_passcreate"),    //function
                'dashicons-admin-network', 7);      //set icon
            add_submenu_page('passcreate',          //parent_slug IMPORTANT
                'Settings',                         //page_title
                'Initials',                         //menu_title
                'administrator',                    //capability
                'passinit',                         //menu_slug
                array($this, "load_passinit"));     //function
            add_submenu_page('passcreate', 
                'Settings', 
                'Documentation', 
                'administrator', 
                'passdoc', 
                array($this, "load_passdoc"));
            add_action('admin_menu', 'wp_passwords_actions');
        }
    }

There is a difference in menu_title, the firs one is __(‘CreatePasswords’, ‘passwords’) the second one is “Initials”, the difference is that the first one will translated to the local language the second one not. I will explaine later why and how.

previous

STILL IN PROGRESS

First of all we must have a idea what we want to develop, in this case:

  1. We want to develop a password generator.
  2. Generator must be useable in front and backend of the website.
  3. Shortcodes has to be for frontend available.
  4. User can choose which type of  encryption he or she want to use.
  5. User can set how many repeats the plugin use.
  6. Documentation available in menu.

 

WordPress plugin Initialisation:

/*
  Plugin Name: opasswords
  Plugin URI : http://www.abs-hosting.nl/cms/new-password/
  Description: Encrypted Passwords plugin.
  Author     : CS ABS-Hosting.nl
  Author     : CS  : ABS-Hosting.nl / Walchum.net
  Version    : 1.0
  Author URI : http://www.abs-hosting.nl
 */

Password Plugin

Thats all !,

if the above text is saved as passwords.php and installed as plugin it will do nothing only it will show your information. In WordPress it is a valid plugin and will apear in the plugin list.

  • Pluginname is now called opasswords.
  • Url to plugin form or download file.
  • Short description
  • Author
  • Version is of your choice, 1, 0.1 etc.etc.
  • Author Url, link to your own website

A litle strange is it that the file-name and class-name do not have to be the same!

The actual class :

class oPasswords {

    public $options;

    public function __construct() {
        add_action('init', array($this, 'init'));
    }

    /**
     * Initiate plugin
     */
    public function init() {
        //set install hook, for adding of removing options
        register_activation_hook(__FILE__, array($this, 'passwords_install'));
        //* Runs on plugin deactivation*/
        register_activation_hook(__FILE__, array($this, 'passwords_remove'));
        //register_deactivation_hook( __FILE__, $this->passwords_remove());
        //get some CONSTANT values
        $this->defenitions();

        $ok = load_plugin_textdomain('passwords', false, dirname(plugin_basename(__FILE__)) . '/languages');

        add_action('admin_menu', array($this, 'pw_actions'));

        add_shortcode('passwords-new', array($this, 'wp_passwords_new'));
        add_shortcode('passwords-ex', array($this, 'wp_passwords_explain'));

        $this->wp_passwords_add_css_files();
        //$this->wp_passwords_add_javascript_files();

        $this->get_option();
    }
}

This class is center point of the plugin. All functions, who are called in this class, must be available and give correct responses otherwise the plugin will not be INSTALLED by WordPress.

Previous

Next

ABS Application Server is special made for Dropshippers,  its a application module who can used standalone or with WordPress/Joomla, Opencart, Prestashop, etc.etc. All kinds of webapplications who needs Import or Export that can use the ABS =>Dropshipping Application Server (ADAS).

First beta version 0.7 is released

This module is made with the dropshippers in mind, all features are specially made for the needs of dropshipping. We have taken PHP framework CodeIgniter as starting point, we designed a special dropshipping Application Server. One of the main features is automatic Import and Export from and to CSV / XML files. Import and Export is part of the core of the dropshipping Application Server.

All normal dropshipping data services are available.

There is a special feature for redirect output to customer pages.

What will this mean? Simple, the customer becomes from the dropshipper supplier a HTML call to the Application Server, witch result in a HTML source transfer from supplier to customer webshop page article content.

No product information or pictures are necessary on customer website!

Lees verder

BATCHtools licentie 15 €
Programming pays my bills. Selling files yours? Come on, give me a fair share!
Koop nu een licentie en steun ons in de verdere ontwikkeling en onderhoud van BATCHTools
Hot Offers

Webshop.

Neem nu ook een webshop en vergroot uw verkoopmogelijkheden.


Vraag offerte aan.

Vraag vrijblijvend een offerte, laat u door onze adviseurs, adviseren en begeleiden.


Van start tot finish.

Van start tot finish begeleiden wij u bij het opzetten van uw webshop.

Online Facturatie