WordPress.org

Ready to get started?Download WordPress

Forums

Arty Popup
[resolved] Contribution to Arty Popup (7 posts)

  1. Cristian Tacchi
    Member
    Posted 1 year ago #

    Hi EnigmaWeb,
    I downloaded your plugin. it works great, but i found that the size of the popup is fixed at 800px (width) and 650px (height).

    I'm not a developer, but i found that this values are recorded and readed from the wordpress database, so i added some lines of code in setting_page.php, after "Popup Image" title, to be able to change them.

    <tr valign="top">
    	<td>Popup Image Size</td>
    	<td>
    	<p><input type="text" name="arty_settings[popup_width]" id="popup_width" size="3" value="<?php echo $options['popup_width']; ?>"> Width of the image</p>
    	<p><input type="text" name="arty_settings[popup_height]" id="popup_height" size="3" value="<?php echo $options['popup_height']; ?>"> Height of the image</p>
    	</td>
    </tr>

    I hope you can add this code (or a better one) to the official version.

    Have a nice day!

    http://wordpress.org/extend/plugins/arty-popup/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Cristian, I'm glad you managed to make it the size you want with this.

    Yeah I considered having more options in the settings including custom size like you suggest, but the question is always where to draw the line with features... I just wanted to make this popup as simple and lightweight as possible. But I'll definitely keep a list of any request from users and if this keeps coming up then I'll include it in later version.

    Thanks again for your input. :-)

  3. dainismichel
    Member
    Posted 1 year ago #

    hi, is there an easy "is user logged in" switch?

    can that be added to the php file easily?

  4. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    @dainismichel

    The first option is a box to 'show popup to admin only' which you can use for testing purposes.... is this what you mean?

  5. dainismichel
    Member
    Posted 1 year ago #

    close, i mean the other way around: only show the popup to visitors who are not logged in.

    this one:

    http://codex.wordpress.org/Function_Reference/is_user_logged_in

  6. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    No sorry, not a feature at present.

  7. giovanirfreitas
    Member
    Posted 1 year ago #

    Cristian Tacchi, a great contribution!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic