Custom Descriptions

Threads moved from the Suggestions forum after implementation

Moderators: Public Relations Department, Players Department

User avatar
EchoMan
Posts: 7768
Joined: Fri Aug 26, 2005 1:01 pm
Location: Stockholm, Sweden

Re: Custom Descriptions

Postby EchoMan » Mon Mar 15, 2010 12:01 pm

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().
User avatar
SekoETC
Posts: 15525
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Re: Custom Descriptions

Postby SekoETC » Mon Mar 15, 2010 12:16 pm

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.
Not-so-sad panda
User avatar
notsure
Posts: 1062
Joined: Mon Dec 19, 2005 5:54 pm

Re: Custom Descriptions

Postby notsure » Mon Mar 15, 2010 1:31 pm

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 :?
mikki
Posts: 3609
Joined: Tue Oct 26, 2004 7:38 pm
Location: don't you wish you knew
Contact:

Re: Custom Descriptions

Postby mikki » Mon Mar 15, 2010 2:08 pm

The ones around mine.. they are working lol but like Seko said. Not many have them.
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: Custom Descriptions

Postby Doug R. » Mon Mar 15, 2010 2:30 pm

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.
Hamsters is nice. ~Kaylee, Firefly
User avatar
Piscator
Administrator Emeritus
Posts: 6843
Joined: Sun Jul 02, 2006 4:06 pm
Location: Known Space

Re: Custom Descriptions

Postby Piscator » Mon Mar 15, 2010 3:13 pm

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.
Pretty in pink.
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: Custom Descriptions

Postby Doug R. » Mon Mar 15, 2010 3:30 pm

What you said is a good idea.
Hamsters is nice. ~Kaylee, Firefly
User avatar
Piscator
Administrator Emeritus
Posts: 6843
Joined: Sun Jul 02, 2006 4:06 pm
Location: Known Space

Re: Custom Descriptions

Postby Piscator » Mon Mar 15, 2010 3:44 pm

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.
Pretty in pink.
AlchemicRaker
Posts: 311
Joined: Thu Feb 05, 2009 4:56 am

Re: Custom Descriptions

Postby AlchemicRaker » Sat Mar 20, 2010 11:26 pm

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

Return to “Implemented Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest