Raised This Month: $61 Target: $400
 15% 

[CS:GO] Easy Web Shortcuts (V1.11, 31/12/2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Plugin ID:
5898
Plugin Version:
1.11
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Easy Web Shortcuts for CSGO
    Old 11-04-2017 , 10:02   [CS:GO] Easy Web Shortcuts (V1.11, 31/12/2017)
    Reply With Quote #1

    Easy Web Shortcuts (V1.11)
    Web Shortcuts with chat triggers and commands

    By Byte

    🔹 Description 🔹
    A web shortcuts plugin for CSGO.
    Supports multiple chat triggers and commands per URL.

    🔹 Commands 🔹
    sm_web <target> <url> - Open URL for a specific target (generic admins)
    sm_ews_reload - Reload Web Shortcuts (root admin)

    🔹 Instructions 🔹
    1. Download and setup VGUI URL Cache Buster (https://forums.alliedmods.net/showthread.php?t=302530) on your server
    2. Compile easywebshortcuts.sp
    3. Copy easywebshortcuts.smx to your server.
    4. Copy easywebshortcuts.txt to /addons/sourcemod/configs/
    5. Edit easywebshortcuts.txt with shortcuts you want (instructions inside the file)
    6. Reload the plugin, change the map or use sm_ews_reload as a root admin to update changes

    🔹 Example easywebshortcuts.txt 🔹
    HTML Code:
    // Easy Web Shortcuts
    // Configuration File
    //
    // Enter your shortcuts in this file. One per line.
    // Empty lines or lines begging with '//' are ignored
    //
    // Format: "triggers" "commands" "dimensions" "url"
    //
    // dimensions must either be "full" (for client max screen size), "hidden" (invisible window) or in "widthxheight" format (i.e. 1280x720)
    // url should start with "http://", "https://" or be the exact string "about:blank"
    
    //Triggers only (1280x720 resolution)
    "!vip" "" "1280x720" "http://www.example.com/vip"
    
    //Commands Only (full resolution)
    "" "sm_wikipedia" "full" "http://www.wikipedia.org"
    
    //Multiple triggers and commands
    "!forums|!website|!home" "sm_forums|sm_website|sm_home" "full" "http://www.example.com"
    
    //Play Hidden video in background
    "!funnyvideo" "" "hidden" "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    
    //Stop playing hidden video in background
    "!stop" "" "hidden" "about:blank"
    
    //Using string replacements
    "!gametracker" "" "full" "https://www.gametracker.com/server_info/{SERVERIP}:{SERVERPORT}}/"
    "!serverswiththismap" "" "full" "https://www.gametracker.com/search/csgo/?search_by=map&query={MAPNAME}"
    "!mysteamprofile" "" "full" "http://steamcommunity.com/profiles/{STEAMID64}"
    🔹 URL String Replacements 🔹
    The following strings are replaced if they appear in the URLs specified in easywebshortcuts.txt:

    {SERVERIP} - Server IP Adress
    {SERVERPORT} - Server Port
    {NAME} - Client In-Game Name
    {USERID} - Client User ID
    {STEAMID} - Client Steam ID
    {STEAMID64} - Client Steam ID 64 (community id)
    {IP} - Client IP Address
    {MAPNAME} - The map name
    {MAPDISPLAYNAME} - Map name after last '/' (without workshop prefix etc)

    Need more replacements?
    Request some!

    🔹 Changelog🔹
    Code:
    1.11 Use VGUI URL Cache Buster instead of WebFix. Fix bug where commands were always shown even with "hidden" set
    1.10 Add support for multiple triggers, add commands support. (Suggested by: ASKER_CZ)
    1.00 Initial release
    🔹 Downloads 🔹

    Github Repo:

    Source | Releases

    AlliedModders Mirror (DL: 155):
    Attached Files
    File Type: zip EasyWebShortcuts_V1.11.zip (18.1 KB, 437 views)
    __________________
    STEAM: /id/invexbyte | Github: InvexByte | My Community: Invex Gaming
    My Plugins: Click Me!


    Last edited by Byte; 12-30-2017 at 18:26.
    Byte is offline
    ASKER_CZ
    BANNED
    Join Date: Nov 2016
    Old 11-17-2017 , 12:36   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #2

    (We were talking about it on steam)

    Could you please add equivalent command for sm_example ?

    For example : !example .....url will create also sm_example command .

    I think it's good feature and I'm sure that some people may find it useful (like me)

    Please consider it. Thank you (Like add cvar for it or whatever)
    ASKER_CZ is offline
    Slove
    Junior Member
    Join Date: Aug 2015
    Old 11-17-2017 , 17:03   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #3

    This works perfectly! Thank you so much for this.
    Slove is offline
    PinHeaDi
    Senior Member
    Join Date: Jul 2013
    Location: Bulgaria
    Old 12-02-2017 , 19:20   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #4

    Doesn't work for me, I don't know why. Nothing happens.

    Code:
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forum
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forums
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forum
    __________________

    Last edited by PinHeaDi; 12-02-2017 at 19:21.
    PinHeaDi is offline
    ghostofmybrain
    Veteran Member
    Join Date: Mar 2010
    Old 12-03-2017 , 15:22   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #5

    Same here. I've got

    Code:
    "!motd" "full" "http://directory/to/htmlmotd/motd.html"
    And I get the same thing as above.
    __________________
    Boycott ESEA
    My servers
    ghostofmybrain is offline
    Byte
    Senior Member
    Join Date: Jun 2010
    Location: 📦 CCSPlayer
    Old 12-04-2017 , 10:36   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #6

    Quote:
    Originally Posted by PinHeaDi View Post
    Doesn't work for me, I don't know why. Nothing happens.

    Code:
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forum
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forums
    Tried to look up command say as if it were a variable.
    ⸇ᴴᴱ HUИTΞƦ : !forum
    Did you follow all steps correctly when setting up WebFix?
    Are you using another fix or any plugins using ShowMotdPanel that could be conflicting?

    Quote:
    Originally Posted by ghostofmybrain View Post
    Same here. I've got

    Code:
    "!motd" "full" "http://directory/to/htmlmotd/motd.html"
    And I get the same thing as above.
    Try another word instead of !motd.
    Also that isn't a valid link, try http://google.com to test.
    __________________
    STEAM: /id/invexbyte | Github: InvexByte | My Community: Invex Gaming
    My Plugins: Click Me!


    Last edited by Byte; 12-04-2017 at 13:09.
    Byte is offline
    ghostofmybrain
    Veteran Member
    Join Date: Mar 2010
    Old 12-06-2017 , 18:00   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #7

    Quote:
    Originally Posted by Byte View Post
    Try another word instead of !motd.
    Out of curiosity, why?

    I changed it to !page and it still doesn't work. Even the default ones in the file don't function. (eg !google)

    Quote:
    Also that isn't a valid link, try http://google.com to test.
    I know it's not a valid URL. I didn't want to include a URL to my motd on this website. The URL in the config is correct, though. I quadruple checked before posting here.

    EDIT: I tried recompiling it to make sure, and it didn't seem to fix the issue either. The plugin is running and the .txt file is in /sourcemod/configs
    __________________
    Boycott ESEA
    My servers

    Last edited by ghostofmybrain; 12-06-2017 at 21:15.
    ghostofmybrain is offline
    Byte
    Senior Member
    Join Date: Jun 2010
    Location: 📦 CCSPlayer
    Old 12-07-2017 , 01:32   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #8

    Quote:
    Originally Posted by ghostofmybrain View Post
    Out of curiosity, why?
    In case another one of your plugins was hooking say and blocking that word.
    Just a test.

    Quote:
    Originally Posted by ghostofmybrain View Post
    I changed it to !page and it still doesn't work. Even the default ones in the file don't function. (eg !google)

    I know it's not a valid URL. I didn't want to include a URL to my motd on this website. The URL in the config is correct, though. I quadruple checked before posting here.

    EDIT: I tried recompiling it to make sure, and it didn't seem to fix the issue either. The plugin is running and the .txt file is in /sourcemod/configs
    Are you sure you followed all the steps listed here:
    https://forums.alliedmods.net/showthread.php?t=302597

    You can't be running any other plugins that use 'ShowMOTDPanel' or ShowVGUIPanel (in non-hidden mode) because they will break the WebFix solution. If you boot up a near stock server with just this plugin it will likely work.
    __________________
    STEAM: /id/invexbyte | Github: InvexByte | My Community: Invex Gaming
    My Plugins: Click Me!

    Byte is offline
    PinHeaDi
    Senior Member
    Join Date: Jul 2013
    Location: Bulgaria
    Old 12-07-2017 , 02:09   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #9

    It was all on my, I had a plugin that was messing up with the 'ShowMOTDPanel'. Is there a way you can add this to this plugin? I always hated that slow scrolling down.
    __________________
    PinHeaDi is offline
    ghostofmybrain
    Veteran Member
    Join Date: Mar 2010
    Old 12-07-2017 , 07:48   Re: [CS:GO] Easy Web Shortcuts (V1.00, 04/11/2017)
    Reply With Quote #10

    Quote:
    Originally Posted by Byte View Post
    Are you sure you followed all the steps listed here:
    I'm sure I did, but that doesn't mean I did it all right.

    Plugins list:
    Spoiler


    .txt files are in the right folder
    webfix.inc is in the right folder
    webfix_redirecturl.txt points to a file that actually exists

    I can't think of anything else to troubleshoot.

    Quote:
    You can't be running any other plugins that use 'ShowMOTDPanel' or ShowVGUIPanel (in non-hidden mode) because they will break the WebFix solution. If you boot up a near stock server with just this plugin it will likely work.
    I don't think I have any of those plugins. I disabled the multi 1v1 online stats viewer, which is the only one I know of that has an MOTD. I'm only running a handful of non-stock plugins, and none of the rest have an motd AFAIK.
    __________________
    Boycott ESEA
    My servers

    Last edited by ghostofmybrain; 12-07-2017 at 08:00.
    ghostofmybrain is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:08.


    Powered by vBulletin®
    Copyright ©2000 - 2019, vBulletin Solutions, Inc.
    Theme made by Freecode