[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
42
S
9
G
6
Posts: 437
Reputation: 5,626

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
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

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
42
S
9
G
6
Posts: 437
Reputation: 5,626

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
10
S
1
Posts: 30
Reputation: 478

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
10
S
1
Posts: 30
Reputation: 478

Post » Wed Jan 06, 2016 8:30 am

You can do it with the official browser plugin expressions
Browser.QueryParam
Browser.QueryString
Image
B
59
S
21
G
10
Posts: 479
Reputation: 10,212


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests