f.n174
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Font Changer] font not uploadedHi, 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.Forum: Plugins
In reply to: [Easy Donations] Payline only Iran?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).Forum: Plugins
In reply to: How i can view number of downloads of my pluginup
Forum: Hacks
In reply to: Can't receive $_POST or $_GET var in WP Plugin$_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.
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.
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.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.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?Forum: Fixing WordPress
In reply to: WordPress using high CPU Usagei 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.Forum: Hacks
In reply to: wordpress inserts my plugin data one into another!problem resolved.
Forum: Plugins
In reply to: Help: Plugins disappeared and there is a new mysterious user as adminhi,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.Forum: Themes and Templates
In reply to: [Interface] Comment section not showinghi , 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