janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2012-10-18T22:05:01Z
How can the font size of a PM message (viewed, after post) be changed? I am using tiny-mce editor.

Thanks!
Sponsor
jpweber
2012-10-25T01:55:47Z
In the file pages/pmessage.ascx, wouldn't you look at these lines:

<td id="EditorLine" class="post" runat="server">
<!-- editor goes here -->
</td>


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
2012-10-25T02:48:08Z
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
2012-10-25T03:01:03Z
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
2012-10-27T15:17:36Z
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
2012-10-31T17:27:27Z
Any new thoughts on this?
tha_watcha
2012-11-01T12:35:47Z
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
UserPostedImage
janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2012-11-01T20:42:00Z
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
2012-11-05T00:52:54Z
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
2012-11-05T14:18:55Z
Originally Posted by: janusz 

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.



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}



UserPostedImage
janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2012-11-05T14:54:53Z
THANKS, tha_watcha! Thanks!:)

Just plain beautimous all over!



About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved