[PLUGIN] Get value of URL Parameter

Post your completed addons to share with the community

Post » Thu Mar 15, 2012 4:31 pm

UbiGetURL

This is my very first Plugin, so please nice to me :)

This plugin adds the feature to get variables values passed on with the link.

Steps of using:
1. Add the new "UbiGetParams" Object.
2. Using "Action:ParamGet" to tell which parameter you like to read
3. get the requested value by accessing "UbiGetParams.ParamValue"

I do hope someone find this as useful as I do :)


Example:
You call your Game with the URL:
"index.html?access=fb&player=123456"

you can set the action: "ParamGet" to "player" and it will returns the value "123456"Ubivis2012-03-15 16:32:59
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Thu Mar 15, 2012 5:29 pm

Thanks Ubivis! That plugin works really well. It also works without having to export the project, which is a great help for testing. This is of great help to me and I'm sure others will find it useful too!

Thanks!
B
29
S
4
Posts: 42
Reputation: 2,391

Post » Thu Mar 15, 2012 6:46 pm

I made a plugin like this already a while ago:
Query String

Also, in the meantime, Construct is able to do this with the browser object anyway, so no additional plugin is actually required.

Still cool that you made a plugin, of course!
B
22
S
6
G
10
Posts: 1,034
Reputation: 7,514

Post » Thu Mar 15, 2012 6:54 pm

oh, okay... have not seen both :)

But I am happy anyway that I managed it to get my version running. Hope I learned enough from developing this one to work on something else :)
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Wed Nov 13, 2013 1:10 pm

Can i have a demo file please,So that i can get exact view.
B
3
Posts: 18
Reputation: 211

Post » Wed Jan 06, 2016 8:08 am

hello

thank you for useful plugin
it's work fine

but when i close construct 2 and reopen the project files it's say that there missing plugins

any help
B
14
S
2
Posts: 35
Reputation: 816

Post » Wed Jan 06, 2016 8:18 am

"The project you are opening uses addons that are not installed:

Plugin `UbiGetParams` by Gunner Steincke

Please install the missing plugins, behaviors or effects and try re-opening the project. Note projects can be opened with effects missing, but not with plugins or behaviors missing"

the plugin already exist , when you open a new project the plugin appears
B
14
S
2
Posts: 35
Reputation: 816

Post » Wed Jan 06, 2016 8:30 am

You can do it with the official browser plugin expressions
Browser.QueryParam
Browser.QueryString
Image
B
74
S
28
G
12
Posts: 515
Reputation: 12,359


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests