Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
var/server
var/banappeals
var/wikiurl = "http://www.tgstation13.org/wiki" // Default wiki link.
var/forumurl
var/forumurl = "http://tgstation13.org/phpBB/index.php" //default forums
var/rulesurl = "http://www.tgstation13.org/wiki/Rules" // default rules

var/forbid_singulo_possession = 0
var/useircbot = 0
Expand Down Expand Up @@ -251,6 +252,8 @@
config.wikiurl = value
if("forumurl")
config.forumurl = value
if("rulesurl")
config.rulesurl = value
if("guest_jobban")
config.guest_jobban = 1
if("guest_ban")
Expand Down
7 changes: 5 additions & 2 deletions config/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ GUEST_BAN
# SERVER ss13.example.com:2506

## forum address
# FORUMURL http://justanotherday.example.com
# FORUMURL http://tgstation13.org/phpBB/index.php

## Wiki address
# WIKIURL http://www.ss13.eu/wiki/
# WIKIURL http://www.tgstation13.org/wiki

## Rules address
# RULESURL http://www.tgstation13.org/wiki/Rules

## Ban appeals URL - usually for a forum or wherever people should go to contact your admins.
# BANAPPEALS http://justanotherday.example.com
Expand Down
62 changes: 0 additions & 62 deletions config/rules.html

This file was deleted.

29 changes: 18 additions & 11 deletions interface/interface.dm
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
/client/verb/wiki()
/client/verb/wiki(query as text)
set name = "wiki"
set desc = "Visit the wiki."
set hidden = 1
if( config.wikiurl )
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.wikiurl)
set desc = "Type what you want to know about. This will open the wiki on your web browser."
set category = "OOC"
if(config.wikiurl)
if(query)
var/output = config.wikiurl + "/index.php?title=Special%3ASearch&profile=default&search=" + query
src << link(output)
else
src << link(config.wikiurl)
else
src << "\red The wiki URL is not set in the server configuration."
src << "<span class='danger'>The wiki URL is not set in the server configuration.</span>"
return

/client/verb/forum()
Expand All @@ -23,13 +25,18 @@
src << "\red The forum URL is not set in the server configuration."
return

#define RULES_FILE "config/rules.html"
/client/verb/rules()
set name = "Rules"
set desc = "Show Server Rules."
set hidden = 1
src << browse(file(RULES_FILE), "window=rules;size=480x320")
#undef RULES_FILE

if(config.rulesurl)
if(alert("This will open the rules in your browser. Are you sure?",,"Yes","No")=="No")
return
src << link(config.rulesurl)
else
src << "<span class='danger'>The rules URL is not set in the server configuration.</span>"
return

/client/verb/hotkeys_help()
set name = "hotkeys-help"
Expand Down