Spectre Posted May 10, 2009 Share Posted May 10, 2009 Hi, not sure if this can be done in PHP or needs JS or w/e as well never tried fiddling before with it, but here's my question. On the game I work on, we have a chat, and can ban players for rule breakings obviously, but sometimes it's hard for a staff member to find the right name on the side panel of people in chat where they have our ban button. What I'd like, is to be able to right click the name in the chat window, and if your'e a staff member, it have a "Ban player" link, which will take the players ID and link to the chat admin page for banning for that player. Is this possible? If not, any ways you can think of to achieve an easy way to ban like that when it's ahrd to find the player's ban link? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted May 10, 2009 Share Posted May 10, 2009 This is something you'll have to use javascript to solve. Personally i'd think it would be nicer to have this as an option which pops up when you hover over the name, rather than on a right click. Quote Link to comment Share on other sites More sharing options...
Spectre Posted May 10, 2009 Author Share Posted May 10, 2009 Sorry about placing it it wrong place, not thinking my best lol. But even that would be a good way to do it. Just would be a useful thing, if anyone has a way to do this, or advice? Would be appreciated. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted May 10, 2009 Share Posted May 10, 2009 If you google around for javascript tooltips you'll find plenty of stuff. This was the second one i stumpled across: http://www.walterzorn.com/tooltip/tooltip_e.htm And this has plenty of suitable examples: http://www.smashingmagazine.com/2007/06/12/tooltips-scripts-ajax-javascript-css-dhtml/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.