WordPress.org

Ready to get started?Download WordPress

Forums

Donate Extra
Sortcode with iFeature (11 posts)

  1. Ziv
    Member
    Posted 1 year ago #

    Hello,

    I'm using the iFeature pro theme.
    when I enter the [donateextra] sortcode at one of the Boxes, it’s just showing me the shortcode and not the outcome.

    When I'm dragging the widget, it looks fine.
    http://www.ziporagendler.com/en/

    I’d love some help on that.

    Thanks,
    Ziv

    http://wordpress.org/extend/plugins/donate-extra/

  2. justinesmithies
    Member
    Plugin Author

    Posted 1 year ago #

    Are you sure that your are placing the shortcode in the html box ?

    Justine

  3. justinesmithies
    Member
    Plugin Author

    Posted 1 year ago #

    Can the boxes in your theme execute shortcode ( php ) ?

    You could always edit the php template and place this in the location to display the form.

    <?php echo do_shortcode('[donateextra]'); ?>

    Hope this helps ?

    Justine

  4. justinesmithies
    Member
    Plugin Author

    Posted 1 year ago #

    Ahha i see your using text widgets, in that case you can get the Snippets plugin and add this snippet to allow the text widgets to execute php too.

    add_filter('widget_text', 'php_text', 99);
    
    function php_text($text) {
     if (strpos($text, '<' . '?') !== false) {
     ob_start();
     eval('?' . '>' . $text);
     $text = ob_get_contents();
     ob_end_clean();
     }
     return $text;
    }

    Then you can put the line from the previous post and run the shortcode from your text widget.

  5. Ziv
    Member
    Posted 1 year ago #

    I've installed the Snippets (Updated: 2009-9-22), added the code from the last post to it and went to the text/HTML widget and placed:
    <?php echo do_shortcode('[donateextra]'); ?>
    I got a blank box.

    Any idea?
    Should I install a different version of Snippets?

  6. justinesmithies
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry use this plugin Code Snippets

    Justine

  7. Ziv
    Member
    Posted 1 year ago #

    I'm placing the Snippets code as is (one chunk), to a Field Name text.
    There's a textarea and checkbox as well, but I've tried them already.

    The middle Widget with the recognition checkbox responds great!
    I really want it up and running. Is there anything I can do?

  8. Ziv
    Member
    Posted 1 year ago #

    Almost got it.
    At the Snippets setup I've created box1-en
    At the Snippets I've entered the code which enable php at the text box
    And at the text Box - <?php echo do_shortcode('[donateextra]'); ?>

    But where should I insert the "box1-en" I've created at the Snippets setup? As far as I understand, no one is executing the code to enable php

    Thanks!

  9. Ziv
    Member
    Posted 1 year ago #

    I'm sorry, I just now realized that the plugin is Code Snippets.

    OK I got it. quite easy :)
    But two DonateExtra wont shrink. I think the Email option is stuck there, although I've unchecked it from the settings (and it's working just fine on the left Box).

    Thanks

  10. justinesmithies
    Member
    Plugin Author

    Posted 1 year ago #

  11. Ziv
    Member
    Posted 1 year ago #

    Sorry man, two of the three checkboxe "Put my Donation on the Recognition Wall" are not reacting.

    I can send you credentials if you want a testing site. It's not my production site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic