Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author justinesmithies

    (@justinesmithies)

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

    Justine

    Plugin Author justinesmithies

    (@justinesmithies)

    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

    Plugin Author justinesmithies

    (@justinesmithies)

    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.

    Thread Starter Ziv

    (@zivweinberggmailcom)

    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?

    Plugin Author justinesmithies

    (@justinesmithies)

    Sorry use this plugin Code Snippets

    Justine

    Thread Starter Ziv

    (@zivweinberggmailcom)

    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?

    Thread Starter Ziv

    (@zivweinberggmailcom)

    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!

    Thread Starter Ziv

    (@zivweinberggmailcom)

    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

    Plugin Author justinesmithies

    (@justinesmithies)

    Thread Starter Ziv

    (@zivweinberggmailcom)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Sortcode with iFeature’ is closed to new replies.