"Facebook Like Server" in Select Server Window

07/05/2012 22:27 Masterisme#1
Hi :)

I'm from Poland.
I've one big problem, which I can't solve.
I would like to, that on my server in select server window been a facebook button.

I've made this button like this:
[Only registered and activated users can see links. Click Here To Register...]
Code:
## FacebookLikeServer
{
	"name" : "FacebookLikeServer",
	"type" : "thinboard",

	"x" : -250,
	"y" : 296,
	"width" : 110,
	"height" : 70,
	"horizontal_align" : "center",

	"children" :
	(

		## LikeIt
		{
			"name" : "FacebookLikeText",
			"type" : "text",

			"x" : 60,
			"y" : 30,
			"text" : "Like It !",
		},

		## Button
		{
			"name" : "FacebookLikeButton",
			"type" : "button",

			"x" : 10,
			"y" : 10,

			"default_image" : "locale/pl/ui/facebook/like.tga",
			"over_image" : "locale/pl/ui/facebook/like.tga",
			"down_image" : "locale/pl/ui/facebook/like.tga",
		},

	),

},

but I need else function, which open facebook account.
I found two function:
Code:
def OpenFacebook1(self, url):
	self.interface.OpenWebWindow(url)

def OpenFacebook2(self, url):
	"ShowWeb"
	if app.IsWebPageMode():
		app.HideWebPage()
	else:
		app.ShowWebPage(url, (0, 0, 320, 600))
I have wrote myself this function, but original function be in root
I need a function, which open new window in browser and navigate to server account.
...

unfortunately I don't know how this function pin the my button and wheter will be work ... ;|

I hope you help me
and wait for the helpful posts

Regards
masterisme :)