WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
[closed] Link Acknowledgement Short code (10 posts)

  1. allanit
    Member
    Posted 2 years ago #

    Is there a Link Acknowledgement Short code or another way to show the submitter the information that they submitted.

    http://wordpress.org/extend/plugins/link-library/

  2. allanit
    Member
    Posted 1 year ago #

    Again

    no reply????

  3. Darryl Erentzen
    Member
    Posted 1 year ago #

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

    hover over the description.

    is this what you were looking for?

  4. allanit
    Member
    Posted 1 year ago #

    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

  5. Darryl Erentzen
    Member
    Posted 1 year ago #

    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" (http://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.

  6. Darryl Erentzen
    Member
    Posted 1 year ago #

    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.

  7. Darryl Erentzen
    Member
    Posted 1 year ago #

    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. ;)

  8. Darryl Erentzen
    Member
    Posted 1 year ago #

    oops duplicate post

  9. Darryl Erentzen
    Member
    Posted 1 year ago #

    LOL or shoot me $50 and I'll do it for you ;)

  10. esmi
    Forum Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic