News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

User default post color

Started by Amacythe, September 01, 2003, 03:20:07 AM

Previous topic - Next topic

[Unknown]

It's in the themes (theme options and settings) table.

-[Unknown]

Anguz

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

[Unknown]

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]

madfiddler

So is it a possible feature then? ? ?

Elijah Bliss

The "auto bbc" is a big hit in my forum.

Elijah Bliss

Will this mod by any chance make it in to 1.1?

Jerry

Quote from: [Unknown] on October 16, 2004, 09:38:56 PM
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."

Anguz

Cristián Lávaque http://cristianlavaque.com

FaSan

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 ;)

[Unknown]

Just make this:

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

Instead this:

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

-[Unknown]

FaSan


madfiddler


Anguz

Cristián Lávaque http://cristianlavaque.com

madfiddler

Apart from those not using the default theme... but who arn't capable of understanding the package and doing it by hand ;) er :(

Amacythe

#34
This mod needs to be updated.

Amacythe

Also, I am getting errors... LOTS of them...

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

[Unknown]

Quote from: [Unknown] 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]

Did you do this?

-[Unknown]

Amacythe

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

Amacythe

#38
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

[Unknown]

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]

Advertisement: