Advertisement:

Author Topic: User default post color  (Read 158814 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: colors
« Reply #20 on: October 17, 2004, 01:42:11 AM »
It's in the themes (theme options and settings) table.

-[Unknown]

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: colors
« Reply #21 on: October 17, 2004, 01:49:05 AM »
If a message is wrapped with this new mod using a color tag, for example, and another one is used again in the message, wouldn't this nest them?
Cristián Lávaque http://cristianlavaque.com

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: colors
« Reply #22 on: October 17, 2004, 01:50:45 AM »
It only does this when posting.  If you edit a message, it doesn't add them.

The downside is that if you quote a message, it also doesn't add them.  It also doesn't work with quick reply.  It was a quick patch and really only meant to show how it could be done....

-[Unknown]

Offline madfiddler

  • Full Member
  • ***
  • Posts: 667
  • Gender: Male
  • Flit Kills Moths
    • madfiddler
Re: colors
« Reply #23 on: October 25, 2004, 07:51:49 PM »
So is it a possible feature then? ? ?

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: colors
« Reply #24 on: November 18, 2004, 04:08:55 AM »
The "auto bbc" is a big hit in my forum.

Offline Elijah Bliss

  • Sophist Member
  • *****
  • Posts: 1,340
Re: User default post color
« Reply #25 on: December 05, 2004, 09:02:35 PM »
Will this mod by any chance make it in to 1.1?

Offline Jerry

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,903
  • Gender: Male
  • What? I can't hear you over my awesomeness!!
    • PlanetSMF
Re: User default post color
« Reply #26 on: December 06, 2004, 12:34:07 AM »
Oops, not "add above", "add before"...

-[Unknown]
worked like a charm thanks!

I am also wondering if it could be made a default feature in 1.1 ;D
- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: User default post color
« Reply #27 on: December 06, 2004, 01:33:05 AM »
I think it's better as a mod.
Cristián Lávaque http://cristianlavaque.com

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: User default post color
« Reply #28 on: January 22, 2005, 05:12:54 AM »
Little problem on Log Errors of 1.0.1 :

8: Undefined index: bbc_before
File: /var/www/html/community/Themes/default/languages/Post.italian.php (eval?)
Linea: 881




FaSan


PS : my italian language is correct ;)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: User default post color
« Reply #29 on: January 22, 2005, 06:31:37 AM »
Just make this:

      if (trim($options['bbc_before']) != '' && trim($options['bbc_after']) != '')

Instead this:

      if (trim(@$options['bbc_before']) != '' && trim(@$options['bbc_after']) != '')

-[Unknown]

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: User default post color
« Reply #30 on: January 22, 2005, 08:27:47 AM »
Work fine ! ;)

Thank you :)



FaSan

Offline madfiddler

  • Full Member
  • ***
  • Posts: 667
  • Gender: Male
  • Flit Kills Moths
    • madfiddler
Re: User default post color
« Reply #31 on: January 22, 2005, 09:00:08 PM »

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: User default post color
« Reply #32 on: January 22, 2005, 10:35:04 PM »
Why?
Cause then only those that want it install it. :)
Cristián Lávaque http://cristianlavaque.com

Offline madfiddler

  • Full Member
  • ***
  • Posts: 667
  • Gender: Male
  • Flit Kills Moths
    • madfiddler
Re: User default post color
« Reply #33 on: January 23, 2005, 06:37:57 PM »
Apart from those not using the default theme... but who arn't capable of understanding the package and doing it by hand ;) er :(

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: User default post color
« Reply #34 on: February 12, 2005, 07:21:35 PM »
This mod needs to be updated.
« Last Edit: March 17, 2005, 11:43:47 PM by Amacythe »

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: User default post color
« Reply #35 on: March 17, 2005, 11:43:55 PM »
Also, I am getting errors... LOTS of them...

Quote
8: Undefined index: bbc_before
File: /home/mysafeha/www/www/forum/Themes/default/languages/Post.english.php (eval?)
Line: 640

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: User default post color
« Reply #36 on: March 18, 2005, 12:21:24 AM »
Just make this:

      if (trim($options['bbc_before']) != '' && trim($options['bbc_after']) != '')

Instead this:

      if (trim(@$options['bbc_before']) != '' && trim(@$options['bbc_after']) != '')

-[Unknown]

Did you do this?

-[Unknown]

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: User default post color
« Reply #37 on: March 18, 2005, 12:33:04 AM »
Yes, I did...

But somewhere along the line I must have replaced the Post.template.php file with an old backup and it was missing again. 

Thanks

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: User default post color
« Reply #38 on: March 24, 2005, 12:10:42 AM »
Code: [Select]
if ($message == '' && empty($settings['disallow_auto_bbc']))
{
if (trim(@$options['bbc_before']) != '' && trim(@$options['bbc_after']) != '')
$message = @$options['bbc_before'] . "\n\n" . @$options['bbc_after'];
else
$message = @$options['bbc_before'] . @$options['bbc_after'];
}

Is that right?

I thought I had this fixed, but I am still getting pages and pages of errors.  All occur during action=post either to a board or a pm

8: Undefined index: bbc_before
File: ... /forum/Themes/default/languages/Post.english.php (eval?)
Line: 640
« Last Edit: March 24, 2005, 12:15:13 AM by Amacythe »

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: User default post color
« Reply #39 on: March 24, 2005, 12:23:12 AM »
Code: [Select]
if ($message == '' && empty($settings['disallow_auto_bbc']))
{
if (!isset($options['bbc_before']))
$options['bbc_before'] = '';
if (!isset($options['bbc_after']))
$options['bbc_after'] = '';

if (trim($options['bbc_before']) != '' && trim($options['bbc_after']) != '')
$message = $options['bbc_before'] . "\n\n" . $options['bbc_after'];
else
$message = $options['bbc_before'] . $options['bbc_after'];
}

Try that.

-[Unknown]