|
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
|
06-13-2017
, 03:28
Re: WebLync 0.0.1
|
#2
|
Features awaiting implementation
Changes
Server Links VS Global Links
Advertising
Spoiler
WebLync supports advertising on the redirection page via Google AdSense and has three options.
1. Disabled - No ads are displayed (Default Option)
2. WebLync - Ads are displayed using WebLync's publisher id (Use this option to support WebLync)
3. My Google Ads - Ads are displayed using your Google AdSense publisher id To use My Google Ads you must have an approved Google AdSense account using your own domain name, once approved, you can obtain your publisher id via the Settings page.
Creating Custom URL Replacement Parameters
Spoiler
This feature allows third party plugins to hook into WebLync and create custom URL parameters. I currently use this feature to patch in security tokens to allow automatic login to Console.
You start off by adding a URL with the custom parameters you want to replace via the web panel. Command: custom
URL: http://test.com/{Custom}
You then register your custom replacement parameter with a callback via the WebLync_RegisterUrlParam native.
Code:
WebLync_RegisterUrlParam("{Custom}", OnReplaceCustomParam);
When a client uses the !custom command the callback fires.
In the callback we populate the buffer parameter with the replacement text for the custom URL parameter.
Note: The callback also receives the client index and the paramname in case you want to handle all your callbacks in one function.
Code:
public bool OnReplaceCustomParam(int client, const char[] paramname, char[] buffer, int maxlength)
{
format(buffer, maxlength, "%s", "something");
return true;
}
The client then hits the redirection service and is sent to http://test.com/something
__________________
Last edited by Neuro Toxin; 06-06-2018 at 03:07.
|
|
|
|