Forums

managing my events as comments (5 posts)

  1. RENAUT
    Member
    Posted 5 years ago #

    Hello!

    i am currently developping an agenda within WP for my own needs.

    i am enabling anybody to enter events in this agenda (like comments in posts).

    As for comments, i want to moderate those entries.

    I, of course, got largely inspired by the admin comments php files but I have a little issue.

    How can i have my emoderation.php form to go back to itself (the action attribute of the form html tag).
    Same issue for my event.php file (like post.php ...)

    my emoderation.php and event.php are hosted in a plugin folder to ease future wordpress updates.

    Thank you for your answer.

  2. RENAUT
    Member
    Posted 5 years ago #

    I finally found a solution to this issue.

    When i work on my local WAMP, every thing is perfect.

    When i have it on my host, my first screen appears ok. when i want to Edit my event i have a strange screen, sort of shrinked admin menu with the following message, "are you sure you want to do this".
    Does it have something to do with the functions around check_admin_referer ?

  3. RENAUT
    Member
    Posted 5 years ago #

    Apparently, yes.

    Can anybody tells me how it works ?

  4. vkaryl
    Member
    Posted 5 years ago #

    Someone probably can help further with this, but you might need to provide more info regarding your host, whether this is windows or linux server online, is mod_security running, is this php-as-cgi, that sort of backend info. There's sometimes a fair amount of difference between running this local and under a shared server online.

  5. RENAUT
    Member
    Posted 5 years ago #

    running a php info on the host would help ?

    http://andrerenaut.ovh.org/phpinfo.php

Topic Closed

This topic has been closed to new replies.

About this Topic