toooni
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Steam Auth] WP 4.9.5I found the reason/faulty code for this issue.
Reason: Steam API was changed. After login when your redirected with 302, then the parameters have changed.
Faulty Code in: wp-steam-auth.php LINE 93
Replace this:
$pattern = “/^http:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/”;
With this:
$pattern = “/^https:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/”;After that all works again because the preg_match command on Line 94 works again.
Forum: Plugins
In reply to: [WP Steam Auth] WP 4.9.5Error is located in wp-steam-auth.php on line 106 ($findUser = get_users($args)) –> This function returns all Users instead of only the searched one with args.
The next line 107 then takes the first of this found users ($findUser = $findUser[0])
I will further analyse.. i think the real error happens earlier… maybe the preg_match on line 94 doesn’t work anymore because openid delivers an other format.
Thanks for your answer. Unfortunately not what im looking for.
You can close this thread, I will create a new one with a more specific question.
I tryed exactly what your asking with the Full Version. In my point of view it is not possible.
Reason: All the wpdatatables code is executed with the wordpress admin user.. not with the logged in user. Therefore you can’t do anything user-specific.
1. Adding some variables dynamically to the shortcode –> Not possible because the shortcode is executed before your user-dynamic part is executed (php)
2. Create tables based on some dynamic json script –> Not possible. The php file which should give the user-specific json to datatables is executed with a general user, not with the logged in user. So your json-generating script will never give you any user specific answer.
3. the same as on 2. for serialized php array
- This reply was modified 7 years, 8 months ago by toooni.
Forum: Plugins
In reply to: [PHP Text Widget] Update for the post WP4.8 aeraYou can still display it..but its really annoying ??
1. Go to the widget page and open your text widget
2. Open the developer tool (F12)
3. Refresh the site to see the code in the developer tool
4. Search for the input.. and set the type to “” instead of “hidden”.Forum: Plugins
In reply to: [PHP Text Widget] Update for the post WP4.8 aeraYeah the same here, the plugin is broken.
The text (code) of the widget isn’t displayed anymore (Some CSS problem). If you have a look at the html code of the site, then the code is still there.
Can be closed. Its simply not possible to do a really dynamic table with your plugin.
I need the following which is simply not possible:
1. php script which generates the json output based on some user meta-data. (Done).
2. I want to include this script for the datatable
3. 2nd isn’t possible because the script isn’t runned in user-context when implemented in the datatable. The dynamic data based on the user-meta can’t be generated by the script when executed by datatables.So you can’t: Create a table dynamically based on some datas of the logged in user.
Tryed things:
– Adding variables dynamically to the shortcode which is implemented in a site. –> Doesn’t work…shortcode is somehow executed before the php code in the site?!– Creating table based on serialized array –> Doesn’t work. The script isn’t executed in the user-context.
– Creating table based on a dynamic json output of a php script –> Doesn’t work, the script isn’t called in the user-context and therefore i can’t generate the data there.
Can be closed.
Serialized php array seems to be the only way.
Forum: Plugins
In reply to: [WP Steam Auth] Not fully working when using steam onlyI’ve analyzed the code. Seems like this must be changed in the BuddyPress Plugin ??