The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
symbols in WEBLINK pls
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
symbols in WEBLINK pls
can we have symbols in WEBLINK please?

Code:
[ITEMDEF i_weiwarboard]
ID=01e5e
FLIP=1
TYPE=t_normal
VALUE=80
WEIGHT=25.3
RESOURCES=20 i_board,4 i_cloth,1 i_nails,1 i_paper,1 i_feather,1 i_ink_well
SKILLMAKE=Carpentry 90.0,t_carpentry
CATEGORY=3KUO
SUBSECTION=WarBoards
DESCRIPTION=Wei
DUPELIST=01e5f

ON=@CREATE
COLOR=color_wei

ON=@DCLICK
SRC.WEBLINK chat.efnet.org:9090/?nick=<FINDLAYER(29).NAME>&channels=%23<tag.army>warroom&Login=Login
RETURN 1

notice the <FINDLAYER(29).NAME> and the <tag.army>

certain symbols dont work...

or something like this?

SRC.WEBLINK "chat.efnet.org:9090/?nick=<FINDLAYER(29).NAME>&channels=%23<tag.army>warroom&Login=Login"

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-27-2015 09:59 AM by x77x.)
11-27-2015 09:28 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
RE: symbols in WEBLINK pls

Grandmaster Localhost Admin
11-27-2015 11:11 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #3
RE: symbols in WEBLINK pls
cant have the http

dont work

working is
WEBLINK google.com/pooponyourmom/

and you def cant have <xxx.blah> in there either

consider is a future request

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-27-2015 12:43 PM by x77x.)
11-27-2015 12:41 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: symbols in WEBLINK pls
Code:
ON=@Dclick
src.weblink "forum.spherecommunity.net/Thread-symbols-in-WEBLINK-pls?test=<src.name>"
Return 1
works fine, and redirect me to
Code:
http://forum.spherecommunity.net/Thread-symbols-in-WEBLINK-pls?test=Kanibal

Grandmaster Localhost Admin
11-28-2015 03:12 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #5
RE: symbols in WEBLINK pls
what browser?

maybe its google chrome that sucks


try the link i originally posted

i think there is a symbol thats not recognized

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-28-2015 03:28 AM by x77x.)
11-28-2015 03:25 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #6
RE: symbols in WEBLINK pls
(11-28-2015 03:25 AM)x77x Wrote:  what browser?

Default system browser Firefox/IE11. Crome/Opera not tested.

Grandmaster Localhost Admin
11-28-2015 03:28 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: symbols in WEBLINK pls
it's not a sphere fault, but an HTML rule. All URLs on the entire internet must follow the HTML rules, which are followed by all browsers too
http://www.w3schools.com/tags/ref_urlencode.asp

I cant remember exactly, but in a short answer, it cant have symbols or whitespaces. Only a few symbols like &, ?, % and = are allowed, all the others symbols must be converted to their respective HTML code, eg:

! = %21
' = %27
etc

so using your example
Code:
SRC.WEBLINK chat.efnet.org:9090/?nick=<FINDLAYER(29).NAME>&channels=%23<tag.army>warroom&Login=Login
if the player name have any whitespaces it will break the URL, because URL can't have whitespaces. You must create another function to filter <FINDLAYER(29).NAME> doing all these conversions, turning whitespaces into %20, the ' symbol into %27, etc
11-28-2015 02:17 PM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #8
RE: symbols in WEBLINK pls
but i tried...

SRC.WEBLINK chat.efnet.org:9090/?nick=NAMEPOOP&channels=%23weiwarroom&Login=Login

and it didnt work

=)

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-29-2015 03:49 AM by x77x.)
11-29-2015 03:48 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: symbols in WEBLINK pls
just remove the :9090 from the URL and it will work fine
usually you don't need to specify the server port when connecting to an HTTP server, since the HTTP server already does it automatically
11-29-2015 06:32 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #10
RE: symbols in WEBLINK pls
hmmm

too different places

i need the port in there

i tired
SRC.WEBLINK chat.efnet.org%3A9090/?nick=BUBBA&channels=%23<src.tag.army>warroom&Login=Login

%3A to replace the :

and yes, the name space breaks the link =/

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 11-29-2015 08:26 AM by x77x.)
11-29-2015 08:15 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)