SphereCommunity
text in a TAG - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: text in a TAG (/Thread-text-in-a-TAG)



text in a TAG - Rizz - 08-15-2014 03:54 AM

PHP Code:
ON=@LOGIN
IF (<src.age> < 10) && (<src.create> > 60)
    IF (!<
src.account.TAG0.email>)  //<-- line 241
        
src.dialog d_p_setemail
    
ENDIF
ENDIF 

It gives me:

Code:
19:45:ERROR:(events_pg.scp,241)Undefined symbol 'your'
19:45:ERROR:(events_pg.scp,241)Undefined symbol 'email'

In the account is:

TAG.email="YOUR@EMAIL.HERE"


RE: text in a TAG - Skul - 08-15-2014 03:57 AM

what is line 241 in events.pg.scp? Also, have you tried surrounding the tag.email with "quotes"?


RE: text in a TAG - Rizz - 08-15-2014 03:57 AM

On the dialog:

PHP Code:
[DIALOG d_p_setemail button]

ON=1
src
.account.TAG.EMAIL=<ARGTXT[1]> 



RE: text in a TAG - Skul - 08-15-2014 03:58 AM

ah i think it's how you're setting it, try:
Code:
serv.account <src.account.name> tag.email <argtxt[1]>



RE: text in a TAG - Rizz - 08-15-2014 03:58 AM

(08-15-2014 03:57 AM)Skul Wrote:  what is line 241 in events.pg.scp? Also, have you tried surrounding the tag.email with "quotes"?

I modified the message so you can see now the line and yes, inside the account i have " " in the tag.

(08-15-2014 03:58 AM)Skul Wrote:  ah i think it's how you're setting it, try:
Code:
serv.account <src.account.name> tag.email <argtxt[1]>

Nothing, same problem.

Should i try TAG.your@email.here=1 ? But then... how to check so many different email form... taglist?


RE: text in a TAG - Extreme - 08-15-2014 05:47 AM

To check if a tag is empty or not, use <isempty <src.account.tag0.email>>
This might fix your problem.


RE: text in a TAG - Skul - 08-15-2014 10:20 AM

Well I'm clueless, I can only guess that the @ character might be causing the problem, what if you were to set TAG.EMAIL to 'plain text':
Code:
serv.account <src.account.name> tag.email plain text
Would that give you an error too?


RE: text in a TAG - htid4life - 08-15-2014 11:53 AM

soulless added a add email that works..

Code:
[dialog d_email_registration]
100,100
resizepic 0 0 2620 345 165
checkertrans 12 13 320 140
dhtmlgump 17 17 310 50 1 0 Please take a moment and register your e-mail address with us for future updates.
resizepic 17 75 9350 310 30
dhtmlgump 20 80 50 30 0 0 E-Mail :
dtextentrylimited 75 80 250 15 0 0 40
button 30 125  242 243 1 0 0
button 250 125 248 249 1 0 1

[dialog d_email_registration button]
onbutton=1
  if <isempty <argtxt[0]>>
  sysmessage Email field can not be empty
  dialog d_email_registration
  return 1
  endif
  if !(strmatch(*@*,<argtxt[0]>)
  sysmessage That is not a valid email address
  dialog d_email_registration
  return 1
  endif

sysmessage Thank you <name>, The email address <argtxt[0]> has been linked to account <account.name>
account.tag.email <argtxt[0]>

thank might help you


RE: text in a TAG - Rizz - 08-15-2014 05:06 PM

Thx for all of your replies Smile