Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author f.n174

    (@fn174)

    Hi, sry for too late support.
    I do not update this plugin until i rewrite it in oop.
    Also in my tests it works fine for me. But sounds like the plugin has problems with few themes and needs too much time for test and debug.
    Please wait until i release the version 2.
    Thanks.

    Plugin Author f.n174

    (@fn174)

    Hi, Plugin works fine for iranian and non iranian users of payline.
    That text is just to tell you payline is an iranian gateway and currently they only accept rials. Also you need a bank card that is connected to the iran shetab network (for using that gateway).

    Thread Starter f.n174

    (@fn174)

    up

    $_POST not works in wordpress endponts. you must receive posted data and store it in a global variable directly in plugin file then you can access that global variable every where. also you can use admin-ajax.php which is provided by wordpress for receiving posted data in wordpress.

    Thread Starter f.n174

    (@fn174)

    My problem resolved but after too much searching and testing.
    And as i said in post 5 , i think this topic must be closed (because as you mentioned by using nonces and sanitizing everything is fine).

    But the only concern is that everyone who like me decides to create a plugin that uses ajax in frontend, first place that he reads is www.remarpro.com docs .

    Then i think in docs must mention that $_POST only not works in wordpress endpoints and you can use it directly in plugin files, So if a plugin is not working in admin side another possible way behind using admin-ajax is to use $_POST directly.

    Thanks.

    Thread Starter f.n174

    (@fn174)

    Ryan i know that it is possible to edit .htaccess to allow server to access it. but what about a user that is using this plugin ? some of them even don’t know how to edit a htaccess file. And what about inserting a direct link to wp-admin in my plugin js ?
    If we can do the job in an easier way , then why i must say hey, my user go and edit htaccess for my plugin to works.

    Thread Starter f.n174

    (@fn174)

    Thank you ryan for nonces and sanitizing.
    It sounds like we have diffrent Viewpoints.
    Because if what i say is not a good idea then wordpress must improves what is provided in core. for example at least wordpress developers must add sth like admin-ajax or admin-post into main wp folder or wp-content. so when user moves wp-content to diffrent folder or sets password on wp-admin and other things like this do not breaks my plugin !
    I think this topic must be closed.
    Thank you Ryan and Samuel for help.

    Thread Starter f.n174

    (@fn174)

    Thank you .
    But what if user sets password on wp-admin ? and what about this fact that when i want use admin-ajax in frontend i must print link to the wp-admin folder ? (and many other problems in this approach which makes developer works too much for just sending or receiving a little strings).
    Also the other reason is that everything in both ways is same, because when i receive posted data in my plugin , then i store the value in a global variable. and for example i wait until wordpress init happens then i hook into init action hook and by running my function i have access to the core then i can print something and then using die() , or i can serialize and save received data.
    I tested this and it works fine , i mean my plugin have access to all core functions without any problem. also i printed and received data in this way and there is no problem in accessing core functions.
    My opinion is that receiving data directly in plugin file is better but im not sure about security and other problems that may happens for users .
    what you think about security?

    i have same problem in my multisite . some times when i use wordpress import the hosting cpu gets up to 66 % and if i use that again it goes to 100%.
    for resolving that i see when i rename wp-admin cpu comes back to its normal.
    maybe it helps you too.

    Thread Starter f.n174

    (@fn174)

    problem resolved.

    hi,i suggest you use wordfence security plugin. it can scan all your files contents. also there is another feature which i check every time for showing links that users are accessed in your site ! this way you can easily find from where that problem occured.

    hi , i have found solution to that problem go to inc > structure
    then open file content-extensions.php and search for this :
    interface_theloop_for_single
    or directly scroll into line 261
    then scroll down until you see closing tag of article and section, like this :
    </articele>
    </section>
    then between or after them add this code :
    <?php
    comments_template( get_template_directory() . ‘/comments.php’, true );
    ?>

    keep in mind this is not the best solution but resolved my problem

Viewing 12 replies - 1 through 12 (of 12 total)