Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter allanit

    (@allanit)

    Again

    no reply????

    Dashboard->Link Library->General Moderation Options->Link Acknowledgement URL

    hover over the description.

    is this what you were looking for?

    Thread Starter allanit

    (@allanit)

    Hi erentzenco

    Now that the other problem is fixed I can reply to this one.

    When the short code [link-library-addlinkcustommsg] is put on the Link Acknowledgement URL page what you get is what was typed in at ‘New Link Message’ + ‘New Link Moderation Label’ on the Library Settings page.

    What I want is a way to put the information that the person filled in when making their link request as a conformation of what they filled in.

    thanks
    AllanIT

    Comment out lines 251 and 252 in “usersubmission.php”

    if ($valid == false && ($options['showcaptcha'] == true || $options['showcustomcaptcha'] == true))
    {

    and line 300

    }

    This will force the form variables to be passed in the query_string regardless of the status of the submission.

    Then you can use a plugin like “Exec-PHP” (https://bluesome.net/post/2005/08/18/50/) to enable php in your admin posts/pages/widgets and output the data using

    echo '<p>Label: ' . $_GET['variablename'] . '</p>';

    or a foreach loop or what-have-you.

    You’re limited by the maximum length of a query string, but since it’s usually a few thousand characters (depends on server, browser, language) you’re probably safe there.

    You may also want to add length checks to all incoming data to prevent buffer overrun attacks via this page.

    The downside to this is that to preserve your changes you’ll have to edit “usersubmission.php” every time there’s an update to the plugin.

    The above is a quick-and-dirty kludge.

    The really elegant solution would be to make the variables available via a shortcode, but this isn’t an option I have time to explore right now.

    Maybe Jack will get around to it at some point, since I think a lot of people would like to be able to do this.

    lol if you DO want to put the variables into shortcodes because you don’t want to mess with buffer overflow issues, here’s how:

    //[foobar]
    function foobar_func( $atts ){
     return "foo and bar";
    }
    add_shortcode( 'foobar', 'foobar_func' );

    This will create [foobar] shortcode that returns as: foo and bar.

    I’m sure you get the idea. It’s pretty simple.

    If you go this route, give your code to Jack so he can include it in the next update and you don’t have to worry about losing your work. ??

    oops duplicate post

    LOL or shoot me $50 and I’ll do it for you ??

    Or try https://jobs.wordpress.net/
    Topic now closed as per the Forum Rules

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Link Library] Link Acknowledgement Short code’ is closed to new replies.