Support Forum

Make open application link work in post

DZ Daniele Zamboni
Daniele Zamboni
Member

<p><a href=”ts3server://ts3.zenw.co”>Come on teamspeak!</a></p>

trying to make this work but the ts3server:// always get remove when save the post how to i fix it

11 Answers

New Answer

MP Mr Papa
Mr Papa
Member

sorry, what are you trying to do? 

are you trying to add html to a post?  if so, which editor?  if tinymce, like the wp editor in visual mode, you have to use the source code button to add html…

if other, please explain further…

YS Yellow Swordfish
Yellow Swordfish
Member

First up – is this using the TinyMCE editor? And secondly – if you use the same link in a WordPress blog post – does it strip it in the same way or does it retain the entire link as desired?

DZ Daniele Zamboni
Daniele Zamboni
Member

Sorry didn’t explain well

I’m trying to put this inside a post :

<a href=”ts3server://ts3.zenw.co”>Join Teamspeack</a>

This when click should open teamspeak and connect to our ts server.

It work anywhere outside the forum but if i try to put in inside a post this part of the link (ts3server:) get removed and of course the link doesn’t work because it doesn’t open ts. 

ex. <a href=”//ts3.zenw.co”>Join Teamspeack</a>

For post editor i’m using bbcode plugin addon but i also got Ultimate TinyMCE plugin

MP Mr Papa
Mr Papa
Member

so as mentioned, neither tinymce or bbcode accept html as input… tinymce is wysiwyg and bbcode is well, bbcode.. ;)

so you have to enter html in the appropriate place or it gets modified…

in tinymce, you enter html by clicking on the source code button (this is essentially the same as using the text mode of the wp editor for posts)…

in bbcode, you use bbcode syntax for links…  either enter the link text and using the link button or manually enter it in form linkt ext… ref:  http://en.wikipedia.org/wiki/BBCode

but even so, think you will have a problem… I am guessing that t3server is not a support protocol…  its not standard and probably not supported out of the box…  did  you say it works in wp posts?  are you running some sort of teamspeak plugin?  I dont see where wp supports that protocol out of the box…

you can of course use wp hooks and have it be a supported protocol (hence question about wp plugin)…

MP Mr Papa
Mr Papa
Member

whoops.. lol, my bbcode was converted to html…. ;)  

DZ Daniele Zamboni
Daniele Zamboni
Member

i use the editor for bbcode but it still get remove even with the html editor plugin addon.
in wp post anywhere else work so is support by wp.

unlucky for me is just in the post inside the forum (simple press) that doesn’t work i’m a little noobie with code u guys have any solutions ?

ex for see that the link work in wp post http://zenw.co/teamspeak/

This is the website: http://zenw.co/

MP Mr Papa
Mr Papa
Member

you didnt answer the question about a plugin for teamspeak… or perhaps its the wp theme you use allowing it…  btw, the link in that post is a 404 for me, so guessing you need an app of some sort since its not a standard protocol…

none the less, you can add it to the approved protocol list…

edit the spFunctions.php file of your sp theme and add this:

add_filter('sph_allowed_protocols', 'my_forum_protocols');
function my_forum_protocols($protocols) {
    $protocols[] = 'ts3server';
    return $protocols;
}

and you can use it then…  as always, we strongly recommend you use a child forum theme or create your own before making the changes to keep from losing the updates on upgrades to our themes…

DZ Daniele Zamboni
Daniele Zamboni
Member

Sorry but i’m bad now i’m trying to get another protocol to work:

steam://connect/37.59.29.174:27016

how i’m suppose to edit the code u give to me to add also this protocol ?

and how can i create a child forum theme to make sure next time i update the plugin doesn’t brake ?

Thk in advance.

MP Mr Papa
Mr Papa
Member

here:

add_filter('sph_allowed_protocols', 'my_forum_protocols');
function my_forum_protocols($protocols) {
    $protocols[] = 'ts3server';
    $protocols[] = 'steam';
    return $protocols;
}

and for child themes:  https://simple-press.com/simplepress-version-5-5-child-themes/