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

  1. allanit
    Posted 4 years ago #

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


  2. allanit
    Posted 4 years ago #


    no reply????

  3. Darryl Erentzen
    Posted 4 years ago #

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

    hover over the description.

    is this what you were looking for?

  4. allanit
    Posted 4 years 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.


  5. Darryl Erentzen
    Posted 4 years 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
    Posted 4 years 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
    Posted 4 years 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:

    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
    Posted 4 years ago #

    oops duplicate post

  9. Darryl Erentzen
    Posted 4 years ago #

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

  10. esmi
    Forum Moderator
    Posted 4 years 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

  • Link Library
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic