Raised This Month: $32 Target: $400
 8% 

[Any]Link Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sharkdeed
Junior Member
Join Date: May 2014
Location: Utopia
Plugin ID:
4922
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to share, view Web URLs by using commands and ingame MOTDPanel.
    Old 11-26-2015 , 17:04   [Any]Link Manager
    Reply With Quote #1

    Hi !

    This is a pretty simple, easy to use plugin that allows users to share, view web urls without leaving the game. Since, i couldn't find anyway to make urls clickable, i had to handle them via commands

    User Commands
    • sm_slink <url without http:// or https:// prefix> - Shares a WebURL.
    • sm_vlink <playername or its few characters> - Views the shared WebURL.
    • sm_clink - deletes the shared link
    Admin Commands
    • lm_enabled <0|1> Activates or disables the plugin.
    • lm_notification <0|1> Activates or disables the notification to all players when someone shares a link.
    Requirements
    • PHP WebServer - Since Valve screwed up the ShowMOTDPanel() function. I had to find a solution. Found it here. Thats why you have to host a php file in your web server.
    Settings File
    • enabled - Plugin enabled status
    • ShareNotification - Notification Status
    • WebURL - the address that your php file located.
    • FileName - PHP File name
    • Parameter - Parameter for querystring
    If you are not sure what FileName and Parameter options are, just leave them like that and don't change anything in php file.
    PHP Code:
    "LinkManager"
    {
        
    "Settings"
        
    {
            
    "enabled"                       "1"
            "ShareNotification"             "0"
            "WebURL"                        "http://mywebsite.com"
            "FileName"                      "go.php"
            "Parameter"                     "url"
        
    }

    Amazingly serious footnote: This is my first plugin, i probably made some mistakes, please let me know the parts that i can do better.

    Cheerz
    Attached Files
    File Type: zip linkmanager.zip (11.4 KB, 177 views)
    File Type: sp Get Plugin or Get Source (linkmanager.sp - 655 views - 6.3 KB)
    __________________

    Last edited by sharkdeed; 11-26-2015 at 17:05.
    sharkdeed is offline
    Reply



    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 10:59.


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