YAFLogo

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
How can the font size of a PM message (viewed, after post) be changed? I am using tiny-mce editor.

Thanks!

Sponsor
jpweber
  • jpweber
  • 94.4% (Exalted)
  • YAF Commander
11 years ago
In the file pages/pmessage.ascx, wouldn't you look at these lines:

and put your editor there? Just a suggestion; I don't use PMs in my YAF.


Jason Weber

USS Vision YAF 

"Money is better than poverty, if only for financial reasons"

squirrel
11 years ago
If you're trying to control a part of TinyMCE then you'll have to check it's configuration files that are called when it's initialized. If you're just trying to control the default view output (when a user reads) then I would look into the css class that wraps the message box (I'll have to look it up because I don't use the TinyMCE editor on my forums) and try to change that css a little bit to achieve the desired results --


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
jpweber
  • jpweber
  • 94.4% (Exalted)
  • YAF Commander
11 years ago
Squirrel, I looked in the theme.css of the blue-grey template, and couldn't find anything ...
Jason Weber

USS Vision YAF 

"Money is better than poverty, if only for financial reasons"

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
I changed the font size for posts but don't know where to find where to change it in PM messages (displayed).

??

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
Any new thoughts on this?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago
Do you want to change the size globally for all pms or just individually? Normally you would use the text editor to change the font size, otherwise you need to change the font size in the theme.css or forum.css
janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
There's no problem with setting font size in editor when composing PM. That's okay. It's just that when a PM is sent, the message (received) is in small font. The PM seems to default to the small font.

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
I need help with this one. Yes, change the font size for all PMs, Inbox, Sent, Archive.

I am just not able to determine exactly where in theme.css (CleanSlate) and forum.css (Resources) the default font size for PM messages in INBOX can be changed. sigh.

As noted earlier, this applies only to PM messages and NOT forum posts.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

I need help with this one. Yes, change the font size for all PMs, Inbox, Sent, Archive.

I am just not able to determine exactly where in theme.css (CleanSlate) and forum.css (Resources) the default font size for PM messages in INBOX can be changed. sigh.

As noted earlier, this applies only to PM messages and NOT forum posts.

Originally Posted by: janusz 

Currently there is no css class to change the font size.

You need to add a new Css Class to the ../pages/cp_message.ascx file

change the code from..

<td class="post" valign="top">
                <%# this.Get<IFormatMessage>().FormatMessage(Eval("Body") as string, new MessageFlags(Eval("Flags"))) %>
            </td>

to ...

<td class="post privateMessageContent" valign="top">
                <%# this.Get<IFormatMessage>().FormatMessage(Eval("Body") as string, new MessageFlags(Eval("Flags"))) %>
            </td>

then you can change the font size from the theme.css or forum.css

.privateMessageContent {font-size: whatever you like}

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
THANKS, tha_watcha! Thanks!:)

Just plain beautimous all over!