Page 13 of 13

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 12:01 pm
by EchoMan
True. But I'm very picky when it comes to things being correct and pretty. ;)

Here's a snippet of code I found on a site I built, that works with UTF-8 characters:

Code: Select all

      $sTo = $a_sEmail;
      $sSubject = utf8_decode("****.se - Nytt Lösenord");
      $sMessage = '<html><head><title>****.se - Nytt Lösenord</title></head><body>'
         . 'Hej!<br /><br />Här kommer ditt nya lösenord till <a href=\"http://****.se\">****.se</a><br /><br /><pre><b>'
         . $sNewPassword
         . '</b></pre></body></html>';
      $sHeaders  = 'MIME-Version: 1.0' . "\r\n";
      $sHeaders .= 'Content-type: text/html; charset=utf-8' . "\r\n";
      $sHeaders .= 'To: ' . $a_sEmail . ' <' . $a_sEmail . '>' . "\r\n";
      $sHeaders .= utf8_decode('From: Ädmíñ文@****.se <admin@****.se>') . "\r\n"; // Changed to strange characters here, displays correctly in inbox
      
      if (mail($sTo, $sSubject, $sMessage, $sHeaders))
      {
         return MessageConstants::NEW_PASSWORD_SENT_OK;
      }
      else
      {
         return MessageConstants::NEW_PASSWORD_SEND_FAILED;
      }



Edit: Didn't work to bold text inside CODE, but you can see the two places I use utf8_decode().

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 12:16 pm
by SekoETC
Well, it's live now. I was "fortunate" enough to spot a flawed description in one of my locations, so I reported it and we'll see if it actually comes through. It would be pretty weird if it only worked from the test environment and not the main game, but it's still good to test to be on the safe side.

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 1:31 pm
by notsure
I wish everyone who has a description up would, I don't know, have their charries scratch their ear sometime today, so we can check to see if it's working.

notsure :?

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 2:08 pm
by mikki
The ones around mine.. they are working lol but like Seko said. Not many have them.

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 2:30 pm
by Doug R.
It has been mentioned about having custom descriptions come up on the mouse-over description. I'm now against this. I've been manually copy/pasting people's descriptions into the info box, and by doing this I'm able to edit them as I see fit. I don't want to be forced to see what they wrote in my info box.

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 3:13 pm
by Piscator
Forced to see what now?

Anyway, obligatory showing of the description of the hover boxes might indeed not be a good idea as they are often quite large. I would still like something like CHARDESC that could be added to the info box manually to show the (updated) version of the self-description.

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 3:30 pm
by Doug R.
What you said is a good idea.

Re: Custom Descriptions

Posted: Mon Mar 15, 2010 3:44 pm
by Piscator
While I'm at it, a button that adds the tag to the text field might be a good idea too. I'd probably use the chardesc thingy if we had such a button there too.

Re: Custom Descriptions

Posted: Sat Mar 20, 2010 11:26 pm
by AlchemicRaker
It may behoove us to throw in a sort of explicit note that Custom Description is not a place for the character's backstory or character history.

- Natso