Plugin Directory

Changeset 2035722


Ignore:
Timestamp:
02/21/2019 09:05:56 AM (7 years ago)
Author:
andygi
Message:

v1.0.1 bugfix: allways appear login alert in case of anonymous user function is disable

Location:
gd-mylist
Files:
44 added
3 edited

Legend:

Unmodified
Added
Removed
  • gd-mylist/trunk/README.md

    r2028424 r2035722  
    1 === My Wish List ===
    2 Contributors: AndyGi
    3 Donate link: http://www.gekode.co.uk
    4 Tags: item lists, wish list, wishlist, posts and pages bookmark
    5 Requires at least: 3.9.0
    6 Tested up to: 5.0.3
    7 Requires PHP: 5.6.32
    8 Stable tag: 1
    9 License: GPLv2 or later
    10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     1# My Wish List #
    112
    123You can create a favorite list of pages or posts in easy and faster way.
    134
    14 == Description ==
     5## Description ##
    156This plugin allows you to create wish lists or bookmark for your website pages, posts or product sheet, and display them on any post or page with simple shortcode or code into your theme as well.
    167It add items by AJAX system and it's check if user is login or not, you can add or remove list only as login user.
    178GD MyList use Handlebars Js as template framework, and Fontawesome (v5.0 free) as icons.
    189
    19 = Features =
     10### Features ###
    2011
    21 * [new] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly
    22 * [new] refactoring template files with Handlebars Js. Now are only two files
    23 * [new] add the GD MyList button directly
    24 * [new] update Fontawesome library with v5.0 free
    25 * [new] performing improvement
     12* [v1.0] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly
     13* [v1.0] refactoring template files with Handlebars Js. Now are only two files
     14* [v1.0] add the GD MyList button directly
     15* [v1.0] update Fontawesome library with v5.0 free
     16* [v1.0] performing improvement
    2617* [v0.4] **items counter**, active or not (active by default)
    2718* [v0.4] improve share component with: **Twitter**, **Email** and **Whatsapp** (please read note)
     
    3526
    3627
    37 = Development =
     28### Development ###
    3829* [https://github.com/andygi/gd-mylist](https://github.com/andygi/gd-mylist "https://github.com/andygi/gd-mylist")
    3930
    40 == Installation ==
     31## Installation ##
    4132
    42331. Upload plugin .zip file to the `/wp-content/plugins/` directory and unzip
     
    45364. You can chouse if the user have to login or not, **the plugin not request to be login by default**
    4637
    47 == Frequently Asked Questions ==
     38## Frequently Asked Questions ##
    4839
    49 = How call myList's button? =
     40### How call myList's button? ###
    5041
    5142There are three ways by your needs:
     
    6758if you needs to put the buttom in themes code, just write
    6859
    69 `<?php
     60```
     61<?php
    7062$arg = array (
    7163    'echo' => true
    7264);
    7365do_action('gd_mylist_btn',$arg);
    74 ?>`
     66?>
     67```
    7568
    7669where do you want that button will show it
    7770
    78 = How call myList's list? =
     71### How call myList's list? ###
    7972
    8073yuo can show MyList list by shortcode, just create a page (eg: myList) and put into the content the shortcode
     
    9487`
    9588
    96 = How change login permission? =
     89### How change login permission? ###
    9790
    98 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonimous user.
     91Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonymous user.
    9992
    10093
    10194*Note*
    10295
    103 In case has anonimous user, the user's id data will be storage in a cookie by GD-Mylist.
     96In case has anonymous user, the user's id data will be storage in a cookie by GD-Mylist.
    10497Cookie name is: `gb_mylist_guest`, the expiration date is 30 days, and store only the Guest ID in order the create the list.
    10598
    106 = Can I Template customization? =
     99### Can I Template customization? ###
    107100
    108101Yes, I use Handlebars Js as template.
     
    113106- button.html
    114107
    115 = Icon customization =
     108### Icon customization ###
    116109
    117110I use **Font Awesome** as icon framework [Font Awesome](https://fontawesome.com/icons).
    118111You can change the class name from Control Panel (Settings/GD Mylist).
    119112
    120 == Screenshots ==
     113## Screenshots ##
    121114
    1221151. Frontend - MyList Log Bottom Add MyList
     
    1251183. Control Panel
    126119
    127 == Changelog ==
     120## Changelog ##
    128121
    129 = 1.0 =
     122### 1.0.1 ###
     123* bugfix: allways appear login alert in case of anonymous user function is disable
     124
     125### 1.0 ###
    130126* create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, fontawesome icon, hook button to content
    131127* refactoring template files with Handlebars Js
     
    134130* performing improvement
    135131
    136 = 0.4 =
     132### 0.4 ###
    137133* add wish items counter
    138134* add Twitter, Whatsapp and Email as share method
    139135* fix share link
    140136
    141 = 0.3.2 =
     137### 0.3.2 ###
    142138* fix post title not appare on the list on not Multilingual sites (thank’s ‘svenol’)
    143139
    144 = 0.3.2 beta =
     140### 0.3.2 beta ###
    145141* Multilingual support (English, Italian) with template .pot file
    146142* Support **mqtranslate** and **qtranslate-x**
     
    148144* Fix call code into template (thank’s ‘nabjoern’)
    149145
    150 = 0.2.1 =
     146### 0.2.1 ###
    151147* Fix view problems on wishlist’s list page
    152148
    153 = 0.2 =
     149### 0.2 ###
    154150* Add login/no login case
    155151* Now you can put the button into the content
    156152
    157 = 0.1 =
     153### 0.1 ###
    158154* Initial release
    159155
    160 == Upgrade Notice ==
     156## Upgrade Notice ##
    161157
    162 = 1.0 =
     158### 1.0 ###
    163159new functions and fix
    164160
    165 = 0.4 =
     161### 0.4 ###
    166162new functions and fix
    167163
    168 = 0.3 =
     164### 0.3 ###
    169165new functions
    170166
    171 = 0.2 =
     167### 0.2 ###
    172168second release
    173169
    174 = 0.1 =
     170### 0.1 ###
    175171first release
  • gd-mylist/trunk/gd-mylist.php

    r2028424 r2035722  
    9898    public function gd_setcookie()
    9999    {
    100         if ($this->stored_setting()['is_anonymous_allowed'] === 'true') {
     100        if ($this->stored_setting()['is_anonymous_allowed'] === 'true' && !is_user_logged_in()) {
    101101            if (!isset($_COOKIE['gb_mylist_guest'])) {
    102102                $id_guest = $this->var_setting['guest_user'];
     
    226226        $gd_query = $wpdb->get_results($gd_sql);
    227227
    228         if ($this->stored_setting()['is_anonymous_allowed'] === 'true') {
     228        if (($this->stored_setting()['is_anonymous_allowed'] === 'true') || is_user_logged_in()) {
    229229            if ($gd_query != null) {
    230230                //in mylist
  • gd-mylist/trunk/readme.txt

    r2028425 r2035722  
    66Tested up to: 5.0.3
    77Requires PHP: 5.6.32
    8 Stable tag: 1.0
     8Stable tag: 1.0.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1919= Features =
    2020
    21 * [new] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly
    22 * [new] refactoring template files with Handlebars Js. Now are only two files
    23 * [new] add the GD MyList button directly
    24 * [new] update Fontawesome library with v5.0 free
    25 * [new] performing improvement
     21* [v1.0] create setting control panel (find it in Settings/GD Mylist) with the cabality to control: user login, use font awesome icon, hook button to content directly
     22* [v1.0] refactoring template files with Handlebars Js. Now are only two files
     23* [v1.0] add the GD MyList button directly
     24* [v1.0] update Fontawesome library with v5.0 free
     25* [v1.0] performing improvement
    2626* [v0.4] **items counter**, active or not (active by default)
    2727* [v0.4] improve share component with: **Twitter**, **Email** and **Whatsapp** (please read note)
     
    9696= How change login permission? =
    9797
    98 Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonimous user.
     98Go to the setting panel (Settings/GD Mylist) and check Yes in case you whant allow the anonymous user.
    9999
    100100
    101101*Note*
    102102
    103 In case has anonimous user, the user's id data will be storage in a cookie by GD-Mylist.
     103In case has anonymous user, the user's id data will be storage in a cookie by GD-Mylist.
    104104Cookie name is: `gb_mylist_guest`, the expiration date is 30 days, and store only the Guest ID in order the create the list.
    105105
     
    126126
    127127== Changelog ==
     128
     129= 1.0.1 =
     130* bugfix: allways appear login alert in case of anonymous user function is disable
    128131
    129132= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.