Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Chris_3413
Novice


Joined: 22 Mar 2004
Posts: 46
Location: Australia

PostPosted: Sat Nov 11, 2006 1:24 am   

[1.13] MXP looks pretty but isnt working
 
In Imperian theres a little vote reminder that appears in the prompt.
So a long time ago I created the following trigger for my char there so he could just click the reminder to go vote :).

#TRIGGER {Vote>} {#SUB {~<send #URL "http://www.ironrealms.com/irex/tmsvote.php?id=imperian">Vote~</send>>}}

This isnt working in cMud but works perfectly fine in zMud
its trying to use using the send MXP command to create a hyperlink and use #URL to point it to the needed web address to vote.

Seems like cMud is having some issues with MXP at the moment
Any ideas about this?

EDIT: It actually creates the hyperlink but when hovering the mouse over the hyperlink the tooltip only shows #URL rather than the whole address
_________________
What do you mean, Fatal Error!
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Nov 11, 2006 2:53 am   
 
Er... It's pretty bizarre that that works actually. The proper format for links like this in MXP is
<a "http://www.ironrealms.com/irex/tmsvote.php?id=imperian">Vote</a>
and I was told that MXP in CMUD (and in zMUD) is completely unable to execute CMUD commands. I think what's happening here is that the <send> tag is actually working as if it were the <a> tag, and the #url part is being used for the hint text. Try using <a> (without the #url command, obviously - you'd still need to quote the ~ if you're copying my example though) and see if that fixes it.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Nov 11, 2006 4:17 am   
 
Actually, some commands are allowed in the SEND MXP tag if you have the Allow commands in MXP tags option set. Only commands that are deemed "safe" are allowed. And CMUD currently has some bugs with this that might allow you to execute unsafe commands. So make sure that option is set if you want to use it, otherwise turn if off to prevent hidden scripts in menus from causing trouble.

But Fang is correct that it's better to just use the normal A tag for hyperlinks.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net