• Resolved pare81

    (@pare81)


    Hi David,

    it would be nice, if it where possible to have the following options:

    1. On admin options a textarea to modify the plugins description instead of a single text field.

    2. On admin options a textarea to extend the .json information with a changelog section.

    3. On amin options a textarea to extend the .json information with a installation option.

    4. The option to set imagelinks to the .json file for plugin information popup.

    Is this possible, or can i modify the .json file manualy for some of these options?

    Thanks and regards
    Patrick

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi Patrick,

    Do you want to send in a patch? I’ll be happy to look at and merge things which add value.

    N.B. The changelog is automatically taken out of readme.txt or changelog.txt, and I don’t think that allowing that to be separately editable would be a good idea (you’d then have two separate changelogs which might disagree with eachother).

    David

    Thread Starter pare81

    (@pare81)

    Hi David,

    I think:
    within your options.php on line 742 you can change from…

    <label for="udm_newform_description"><?php _e('Description:', 'updraftmanager');?></label> <input id="udm_newform_description" type="text" name="description" value="<?php echo (isset($use_values['description'])) ? htmlspecialchars($use_values['description']) : ''; ?>" size="60">
    			<span class="udm_description"><em><?php echo htmlspecialchars(__('This is shown in the WordPress dashboard when showing update information.', 'updraftmanager'));?></em></span>

    to someting like this (not tested).

    <label for="udm_newform_description"><?php _e('Description:', 'updraftmanager');?></label> <textarea id="udm_newform_description" name="description" rows="10" cols="90"><?php echo (isset($use_values['description'])) ? htmlspecialchars($use_values['description']) : ''; ?></textarea>
    			<span class="udm_description"><em><?php echo htmlspecialchars(__('This is shown in the WordPress dashboard when showing update information.', 'updraftmanager'));?></em></span>

    to get a textarea for the description. It is more userfriendly for mor than one line of description.

    Additional you can add another textarea like the one for description to edit the installation instruction for example and 4 normal textfields for image path to plugin banner images. Following the parts of the .json which should be filled from wordpress options page:

    	"sections": {
    		"description": "THIS IS FILLED BY YOUR PLUGIN ALREADY",
    		"installation": "THIS SHOULD BE FILLE BY A TEXTAREA FROM OPTIONS PAGE",
    	},
    	
    	"icons" : {
    		"1x" : "https://website.xx/assets/icon-128x128.png",
    		"2x" : "https://website.xx/assets/icon-256x256.png"
        },
    
    	"banners": {
    		"low": "https://website.xx/assets/banner-772x250.png",
    		"high": "https://website.xx/assets/banner-1544x500.png"
    	},
    

    Best regards
    Patrick

    • This reply was modified 6 years, 2 months ago by pare81.
    • This reply was modified 6 years, 2 months ago by pare81.
    Plugin Author David Anderson

    (@davidanderson)

    Hi Patrick,

    Does “I think” mean that you’ve tested this and it’s working for you? I have too little time to do my own debugging of something untested, unfortunately (sorry).

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Modify / Extend .json file’ is closed to new replies.