Jump to content

Right click menu


Spectre

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/157605-right-click-menu/
Share on other sites

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/

Link to comment
https://forums.phpfreaks.com/topic/157605-right-click-menu/#findComment-831051
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.