Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12134

    Hey there,

    For some reason i can’t use the shortcodes;

    I went with firebug over the shortcode pop-up window and it says “Missing argument 2 for add_action …

    You can see it in this picture:

    http://tellingbeatzz.net/wp-content/uploads/2012/05/Bildschirmfoto-2012-05-06-um-01.43.53.png

    I don’t know anything about php so, i really need help with this one, besides that, i love the theme.

    This is the dialog.php file, maybe it helps…

    <?php

    $paths = array(

    "../../..",

    "../../../..",

    "../../../../..",

    "../../../../../..",

    "../../../../../../..",

    "../../../../../../../..",

    "../../../../../../../../..",

    "../../../../../../../../../..",

    "../../../../../../../../../../..",

    "../../../../../../../../../../../..",

    "../../../../../../../../../../../../.."

    );

    #include wordpress, make sure its available in one of the higher folders

    foreach ($paths as $path)

    {

    if(@include_once($path.'/wp-load.php')) break;

    }

    $shortcode_css = AVIA_BASE_URL.'css/shortcodes.css';

    if(!current_user_can('edit_posts')) { die(""); }

    add_action('avia_shortcode_dialog');

    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    </head>

    <body>

    <div id="scn-dialog">

    <div id="scn-options">

    <h3>Customize the Shortcode</h3>

    <table id="scn-options-table">

    </table>

    <div style="float: left">

    <input type="button" id="scn-btn-cancel" class="button" name="cancel" value="Cancel" accesskey="C" />

    </div>

    <div style="float: right">

    <input type="button" id="scn-btn-preview" class="button" name="preview" value="Preview" accesskey="P" />

    <input type="button" id="scn-btn-insert" class="button-primary" name="insert" value="Insert" accesskey="I" />

    </div>

    </div>

    <div id="scn-preview" style="float:left;">

    <h3>Preview</h3>

    <iframe id="scn-preview-iframe" frameborder="0" style="width:100%;height:250px" ></div>

    </div>

    <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/column-control.js";?>"></script>

    <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/tab-control.js";?>"></script>

    <div style="float: right"><input type="button" id="scn-btn-cancel"

    class="button" name="cancel" value="Cancel" accesskey="C" /></div>

    </div>

    <script type="text/javascript" src="<?php echo AVIA_PHP_URL."avia_shortcodes/tinymce/js/dialog.js";?>"></script>

    </div>

    </body>

    </html>

    #74452

    Anybody??

    #74453

    If nobody can help me, i need at least all shortcodes, so i can insert them manually…

    #74454

    Please..

    #74455

    Hi, Ive got the same issue using the latest version of wordpress 3.3.2. My previous install is fine on wordpress 3.3.1. Any suggestions anyone?

    many thanks

    #74456

    Same for me too, Anyone?

    #74457

    Hi All,

    Can you try going through the list I posted here in regards to getting the shortcode functionality to work: http://www.kriesi.at/support/topic/unable-to-enter-shortcodes-via-the-magic-wand-button#post-55181

    You can use the code in this link in your visual editor to get a list of all shortcodes: http://pastebin.com/ZyDVH0Z4

    It seems like the issue might be a bit more widespread now so if we can find a common cause hopefully a fix will follow shortly :)

    Regards,

    Devin

    #74458

    Hi!

    in addition to devins suggestion: please update your theme to the latest version! We have added a lot of shortcode fixes lately so your issues might be solved by one of those :)

    Regards,

    Kriesi

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘SHORTCODE ISSUE (Missing Argument..)’ is closed to new replies.