Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Make open application link work in post
Avatar
Daniele Zamboni
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2015 - 5:26 pm

<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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 22, 2015 - 8:14 pm

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...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 23, 2015 - 3:31 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Daniele Zamboni
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 6:33 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 6:39 pm

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)...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 6:40 pm

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

Avatar
Daniele Zamboni
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 6:53 pm

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/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 7:08 pm

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...

Avatar
Daniele Zamboni
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 7:33 pm

Thk a lot ! it works now

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2015 - 7:44 pm

sweet!  thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600