Jaggl Posted February 9, 2008 Share Posted February 9, 2008 Hello TCadmin Admins :=) Is it possible to get the Dynamic Content also for the Custom Links? Cause i need a Link witch points to http://%serverip%/%serverip%-%serverport% Link to comment Share on other sites More sharing options...
ECF Posted February 9, 2008 Share Posted February 9, 2008 I will need to speak with Luis on this. If it is easy to add he may do it. Link to comment Share on other sites More sharing options...
LFA Posted February 10, 2008 Share Posted February 10, 2008 You can do something like this: url: /redirect.aspx?serviceid=%serviceid% c:\program files\tcadmin control panel\web\redirect.aspx : <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://{0}/{0}-{1}", service.ServerIP, service.ServerPort)) End If End If %> Link to comment Share on other sites More sharing options...
Jaggl Posted February 10, 2008 Author Share Posted February 10, 2008 work perfekt Only Thing is that it should open in a new window plz Link to comment Share on other sites More sharing options...
LFA Posted February 11, 2008 Share Posted February 11, 2008 You can do this in the ur: javascript: void window.open('/redirect.aspx?serviceid=%serviceid%') Link to comment Share on other sites More sharing options...
Jaggl Posted February 11, 2008 Author Share Posted February 11, 2008 when i set this in URL: void window.open('/redirect.aspx?serviceid=%serviceid%') It dont work, i get an error Serverfehler in der Anwendung '/'. Die Ressource kann nicht gefunden werden. Beschreibung: HTTP 404. Die gesuchte Ressource, oder eine ihrer Abhängigkeiten, wurde möglicherweise entfernt, umbenannt oder ist nicht verfügbar. Überprüfen Sie folgenden URL, und stellen Sie sicher, dass er richtig buchstabiert wurde. Angeforderter URL: /Templates/Default/void window.open('/redirect.aspx Link to comment Share on other sites More sharing options...
swish Posted February 11, 2008 Share Posted February 11, 2008 make sure you have the javascript: before it. Link to comment Share on other sites More sharing options...
Jaggl Posted February 11, 2008 Author Share Posted February 11, 2008 THX Swish ur my hero Link to comment Share on other sites More sharing options...
Jaggl Posted February 11, 2008 Author Share Posted February 11, 2008 btw swish, if i remember right, your the coder og Teampay or?`Very nice add on for CE! Link to comment Share on other sites More sharing options...
swish Posted February 12, 2008 Share Posted February 12, 2008 Yup we coded TeamPay. Glad your using it And Thanks. Ill be checking into your question you sent me by wednesday. Link to comment Share on other sites More sharing options...
Jaggl Posted February 12, 2008 Author Share Posted February 12, 2008 i hope you will make the modification for me :=), i realy like that Add ON Link to comment Share on other sites More sharing options...
Jaggl Posted March 5, 2008 Author Share Posted March 5, 2008 how can i use other Ports then the Server Port for the Costom links? Normaly its: <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://bf2tracker.com/webspec/index.php?addr={0}:{1}", service.ServerIP, service.ServerPort)) End If End If %> can't i use something like this: <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://bf2tracker.com/webspec/index.php?addr={0}:{1}:{2}", service.ServerIP, service.ServerPort, service.QueryPort)) End If End If %> Link to comment Share on other sites More sharing options...
LFA Posted March 5, 2008 Share Posted March 5, 2008 Yes but the property name is service.ServerQueryPort Link to comment Share on other sites More sharing options...
Jaggl Posted March 7, 2008 Author Share Posted March 7, 2008 ah doh THX! Link to comment Share on other sites More sharing options...
dimitrifrom31 Posted May 9, 2009 Share Posted May 9, 2009 Nice stuff, Im using it for trackmania to enable TMWeb but i got a problem : I set up aseco and fast as secondary applications and I put a filter so the TMWeb custom link is displayed only for Trackmania but its also displayed in the secondary applications and the link then doesnt work. Is there a way to disabled a custom link for secondary applications or may i use a different link? I tried to replace service.ServerIP by service.primaryServerIP or service.primary_ServerIP but it doesnt work EDit : fixed, I edited the aseco/fast settings for game port expression > Server primary IP, works only for new created servers but not big deal. Link to comment Share on other sites More sharing options...
Jaggl Posted November 24, 2010 Author Share Posted November 24, 2010 sorry for activating an old thread but: i use this for a Game Server Cusotm Link: <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://{0}:{1}", service.ServerIP, service.ServerPort)) End If End If %> and javascript: void window.open('/redirect_aao.aspx?serviceid=%serviceid%') in the Custom Link Settings. how can i use this for my voiceservers? so that a windows open with dynamic port (the voice server port) Link to comment Share on other sites More sharing options...
dallasallenz Posted November 28, 2010 Share Posted November 28, 2010 I will need to speak with Luis on this. If it is easy to add he may do it. Link to comment Share on other sites More sharing options...
Defcon|Rich Posted November 29, 2010 Share Posted November 29, 2010 I will need to speak with Luis on this. If it is easy to add he may do it. Spam.. Link to comment Share on other sites More sharing options...
Goran Posted November 29, 2010 Share Posted November 29, 2010 sorry for activating an old thread but: i use this for a Game Server Cusotm Link: <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://{0}:{1}", service.ServerIP, service.ServerPort)) End If End If %> and javascript: void window.open('/redirect_aao.aspx?serviceid=%serviceid%') in the Custom Link Settings. how can i use this for my voiceservers? so that a windows open with dynamic port (the voice server port) I'm just guessing here but maybe playing with vvoiceserver_home.aspx could do the trick? try it out and let me know Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.