TinyPortal

General => Chit chat => Topic started by: culpeper on June 22, 2005, 07:51:27 PM

Title: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on June 22, 2005, 07:51:27 PM
Is there a mod that would change the quote command to italic when using the "Reply with Quote" function when responding to a post.  I have disabled the BBC "quote" (using Admin/Edit Features and Options/Disable BBC Code) and when using the "Reply with Quote" it will post the quote in regular font.  Instead, I would like it to post the quote in italic font.

In other words, I have disabled the quote function but the "reply with quote" still works by posting the quote in regular font.  I don't mind this but would prefer the quote in italics to separate it from the rest of the post that the poster will be typing.

Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on June 23, 2005, 01:24:25 AM
Probably you would be better off turning the bbc code back on, and then adjust the class .quote and .quoteheader(i think) in style.css. Just remove background-color, borders etc. leaving only font-style: italic;.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on June 23, 2005, 01:37:02 AM
I'll look into that and thanks.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on June 23, 2005, 02:16:35 AM
That works by making the changes to the different color *.css file.  After making the change I decided I like the original format better.   :D
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on June 23, 2005, 09:21:16 AM
..of course, I forgot. Blue.css, red.css etc. ;)
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on June 25, 2005, 05:55:05 PM
Can the "reply with quote" function  below a post be replaced with "reply" function  instead?
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on June 26, 2005, 09:23:02 AM
Yes, but you need to change quite a few code bits in the template.

Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on June 26, 2005, 05:12:32 PM
I wouldn't want to go beyond a small line change or two in order to make a change.  It's not that important or imperative. ;D  Thanks for the response and information.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on July 07, 2005, 02:25:28 AM
Well, let me ask something.  If the BBC quote function was disabled is there a simple code change to add italics when only using the "reply with quote" function?  With the BBC quote function disabled and using the "reply with quote" function the post before actually posting will look something like this:

[quote author=syd joseph link=topic=101.msg753#msg753 date=1120410249]
Kind of has a nice ring to it.  I think I'll start a band.[/quote]


and will looks this after posting:

Kind of has a nice ring to it.  I think I'll start a band

changed to something like this:

[i][quote author=syd joseph link=topic=101.msg753#msg753 date=1120410249]
Kind of has a nice ring to it.  I think I'll start a band.[/quote[/i]


and will look like this after posting:

  Kind of has a nice ring to it.  I think I'll start a band.
I guess what I am trying to describe is adding the italic command to the "reply with quote" function.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on July 07, 2005, 04:47:35 AM
Ah, I found the line in post.php

$form_message = '[quote author=' . $mname . ' link=topic=' . $topic . '.msg' . (int) $_REQUEST['quote'] . '#msg' . (int) $_REQUEST['quote'] . ' date=' . $mdate . ']' . "\n" . $form_message . "\n" . '[/quote]';


But now I need to know how to put a couple of line breaks after the /quote command.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on July 07, 2005, 09:26:17 AM
Isn't it easier to just change the stylesheet - the style - for quotes? Its quite easy to just set .quote to font-style: italic.

You can also set a margin-bottom: 20px; on that, so you get spaces after the quote.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on July 07, 2005, 02:26:40 PM
It's easier that way if you have the quote function enabled as you suggested at first.  But with the BBC quote function disabled and using the 'reply with quote", in Simplicity Theme,  what ends up being posted is the quote in plain text.  Adding the italic command to the "reply with quote" function will post it in italics instead of plain text.  In simplicity you need to go through each color's css file and make the changes to the quote and quoteheader formatting but this is only needed if the BBC quote function is enabled.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on July 07, 2005, 07:16:28 PM
I see. Ok, then it would make sense to change the Post.php file instead.
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on July 07, 2005, 08:21:03 PM
Are you in England?
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: Bjørn on July 07, 2005, 08:32:09 PM
No. I live in Norway. :)
Title: Re: "Reply with Quote" function; Simplicity Theme
Post by: culpeper on July 07, 2005, 08:47:10 PM
Norway! 8)