Num. of web pages/modules: 1
Description of requirements/features: I have a YOURLS system (see http://yourls.org/) that shortens links via GET from a link that people receive via mail.
Basically people are sent a link with two attributes 'token' and 'uid'
For example https://www.example.com?token=ffe21bd341b8af66af99206f0be4ee14&uid=123
These links need to be shortended via YOURLS.
As there are two attributes in the links, the YOURLS API can not be used directly via URL call (without editing the YOURLS core files).
In an API call like this:
the YOURLS API strips the "&uid=123" part as it does not recognise it as part of the link but interprets it as a separate attribute that is not read by YOURLS. So the links are corrupted.
Now I am trying to setup a site that gathers the 'token' and 'uid' information and creates an api call to YOURLS instead of the direct URL call to yourls-api.php.
Attached there is a php file that contains an example link. This '$url' already works but should be composed from the three GET attributes:
The users would receive a link like this:
The file would read the GET attributes and make an API call like this:
for the "domain=exa" part there should be an extendable array of several domains:
exa = http://www.example.com
abc = http://anotherdomain.com
def = and so on...
If the domain= attribute is not set/empty, a default url can be set.
So in the end the $url variable is built from three GET attributes. url + token + uid
I'm more of a script kiddie than a real programmer, so I would have to do a lot of trial and error (which I want to avoid as this script handles login links). But basically this should only be a few simple lines of code.
If you have already worked with YOURLS that would be a bonus as you already know what you are doing.
The attached file illustrates what I want to do. It already works (with the correct login information which I will supply once the job is set up).
If this part is done the code has to be turned into a simple Wordpress shortcode plugin that shows the output from the code on a wordpress site when an api call has been made.
If no api call has been made on the site (if there is no token and uid attribute in the URL), no output is being displayed.
In the next step the output hast to be made css stylable. So it sais:
Your Short URL is: https://sho.rt/1a2b3
Consisting of three css classes that can be styled individually.
1: Your short URL is:
For any questions don't hesitate to get back to me.
Extra services needed: Customization
Simon W.100% (7)
Create an account now and send a proposal now to get this project.Sign up
Clarification Board Ask a Question
I have been through your requirement, and would like to discuss more with you regarding same.
Could you please let me know the time convenient to you for further discussion? This would help me to provide you with exact quote and days required for the same.
Looking forward to hear from you soon.