Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Now Available => Topic started by: Amacythe on September 01, 2003, 03:20:07 AM

Title: User default post color
Post by: Amacythe on September 01, 2003, 03:20:07 AM
Notice:
This tip has been in some way ported over to be a modification package located on the SMF modsite (http://mods.simplemachines.org/index.php?mod=408). Please note, the mod package may not do the exact same function and may not even use any of the code originally written for the tip, but should still hold the same basic functionality of the tip posted here. With the mod package for this tip, you can now let the SMF package manager make the code changes for you without you having to look at the code and edit it manually.

For documentation on using the SMF package manager, view this document (http://docs.simplemachines.org/index.php?board=49.0).

To download the modification package, [please click here (http://mods.simplemachines.org/index.php?mod=408)].

How about a setting in profile to select default font and/or color for the member's post?  I know I've seen that before, I think on an ikonBoard.



[edit] changed title [edit]
Title: Re:colors
Post by: klumy on September 01, 2003, 04:21:52 AM
What exactly does this option do. I didn't get it. Do you mean every usergroup should have another colour in posts?
Title: Re:colors
Post by: Wezz6400 on September 01, 2003, 06:22:36 AM
I think he means setting a default font and color for the messages you post on the forum. You can change them using SMFC and I think he wants to set set the default per user in the profile.
Title: Re:colors
Post by: Amacythe on September 01, 2003, 05:04:46 PM
I mean let each member select their own font color/style so their posts will always default to that color/style unless they select a different color/style ... and um... I'm female.
Title: Re:colors
Post by: Brian Lacy on September 01, 2003, 05:09:15 PM
Sounds like it would probably be a very simple Mod, actually.. I'll look into it when SMF is available.
Title: Re:colors
Post by: Amacythe on September 01, 2003, 05:33:11 PM
Thanks Brian
Title: Re:colors
Post by: [Unknown] on September 01, 2003, 07:20:26 PM
I know one person on my forum ALWAYS does every post in blue sup.

something like this.

I know I've thouhgt about adding this feature to my board at least...

-[Unknown]
Title: Re: colors
Post by: madfiddler on October 16, 2004, 06:15:36 AM
I'd definately be up for that feature :)

Thanks,

-mark
Title: Re: colors
Post by: Anguz on October 16, 2004, 06:40:39 AM
Well, considering that next time I set up a forum, I'm planning to disable the font, size, color, shadow, glow tags (at least), I most probably would not care for this feature.

I can see, though, how many would value it, if not built-in, as a mod at least.

In a forum I created, most users had their own style, certain combinations of the above mentioned tags and sometimes even move. That's where I got the phobia that made me want to disable them all in the future. :P
Title: Re: colors
Post by: [Unknown] on October 16, 2004, 06:50:05 PM
Perhaps this is what you're after?

-[Unknown]
Title: Re: colors
Post by: madfiddler on October 16, 2004, 08:30:17 PM
I stuck this on... The only thing I could find was in the profile, under layout and settings there were two new windows... The description for each was ":" - just a colon... so I don't know if these are boxes for the colour setup or not.. and if they were, how do you use them?

Thanks,

Mark.
Title: Re: colors
Post by: Elijah Bliss on October 16, 2004, 08:37:51 PM
Perhaps this is what you're after?

-[Unknown]

Not working for me. I tried in RC2 and RC1. Also I have to manually add the language to the Modifications.english.php even though the Package Manager tells me that the installation was successful.
Title: Re: colors
Post by: madfiddler on October 16, 2004, 08:40:54 PM
It also adds a checkbox to Current Theme Settings, with no desciption to it..
Title: Re: colors
Post by: Elijah Bliss on October 16, 2004, 08:44:15 PM
It also adds a checkbox to Current Theme Settings, with no desciption to it..

add this to your Modifications.english.php
Code: [Select]
$txt['bbc_before'] = 'Automatic BBC Before Posts';
$txt['bbc_after'] = 'Automatic BBC After Posts';
$txt['disallow_auto_bbc'] = 'Disallow automatic BBC';

but even so, it's still not working now unless I am adding the tags incorrectly.
Title: Re: colors
Post by: madfiddler on October 16, 2004, 08:50:27 PM
So do you put the open bbc tags in the first box in your profile, and the close bbc tags in the second box?
Title: Re: colors
Post by: Elijah Bliss on October 16, 2004, 08:54:29 PM
So do you put the open bbc tags in the first box in your profile, and the close bbc tags in the second box?

Yes, from what I understand. That's what I did, I tried simple bold tags but it doesn't work for me.
Title: Re: colors
Post by: [Unknown] on October 16, 2004, 09:38:56 PM
Oops, not "add above", "add before"...

-[Unknown]
Title: Re: colors
Post by: Elijah Bliss on October 16, 2004, 09:45:45 PM
Oops, not "add above", "add before"...

-[Unknown]

It works! Great stuff!
Title: Re: colors
Post by: codenaught on October 16, 2004, 09:55:57 PM
Nice one. Works great. I really like it.  :)
Title: Re: colors
Post by: Elijah Bliss on October 17, 2004, 12:35:57 AM
Just out of curiosity, where exactly is that custom information stored (tags)? I don't see them stored in the database anywhere.
Title: Re: colors
Post by: [Unknown] on October 17, 2004, 01:42:11 AM
It's in the themes (theme options and settings) table.

-[Unknown]
Title: Re: colors
Post by: Anguz 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?
Title: Re: colors
Post by: [Unknown] 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]
Title: Re: colors
Post by: madfiddler on October 25, 2004, 07:51:49 PM
So is it a possible feature then? ? ?
Title: Re: colors
Post by: Elijah Bliss on November 18, 2004, 04:08:55 AM
The "auto bbc" is a big hit in my forum.
Title: Re: User default post color
Post by: Elijah Bliss on December 05, 2004, 09:02:35 PM
Will this mod by any chance make it in to 1.1?
Title: Re: User default post color
Post by: Jerry 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
Title: Re: User default post color
Post by: Anguz on December 06, 2004, 01:33:05 AM
I think it's better as a mod.
Title: Re: User default post color
Post by: FaSan 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 ;)
Title: Re: User default post color
Post by: [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]
Title: Re: User default post color
Post by: FaSan on January 22, 2005, 08:27:47 AM
Work fine ! ;)

Thank you :)



FaSan
Title: Re: User default post color
Post by: madfiddler on January 22, 2005, 09:00:08 PM
I think it's better as a mod.

Why?
Title: Re: User default post color
Post by: Anguz on January 22, 2005, 10:35:04 PM
Why?
Cause then only those that want it install it. :)
Title: Re: User default post color
Post by: madfiddler 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 :(
Title: Re: User default post color
Post by: Amacythe on February 12, 2005, 07:21:35 PM
This mod needs to be updated.
Title: Re: User default post color
Post by: Amacythe 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
Title: Re: User default post color
Post by: [Unknown] 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]
Title: Re: User default post color
Post by: Amacythe 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
Title: Re: User default post color
Post by: Amacythe 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
Title: Re: User default post color
Post by: [Unknown] 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]
Title: Re: User default post color
Post by: Webrunner on September 22, 2005, 08:01:52 AM
Can someone please make the mod [Unknown] posted in this thread compatible with 1.1, My users are loving this!
Maybe it should be standard feature.
Title: Re: User default post color
Post by: Snickers on September 26, 2005, 10:23:06 AM
I would like to see it on version 1.1 too
Title: Re: User default post color
Post by: Snickers on October 09, 2005, 08:48:12 AM
please?
Title: Re: User default post color
Post by: Elijah Bliss on October 09, 2005, 04:16:48 PM
This should work For 1.1 RC1 ONLY!
Title: Re: User default post color
Post by: Snickers on October 09, 2005, 04:33:18 PM
<search for>
   // Finally the most important bit - the actual text box to write in!
</search for>

I can't find this one... I'm using the classic theme
Title: Re: User default post color
Post by: Snickers on October 09, 2005, 04:46:34 PM
nevermind, I figured it out..

Thank YOU!
Title: Re: User default post color
Post by: Webrunner on October 09, 2005, 05:14:44 PM
 :)
I am going to try this.
Thank for your effort!
Title: Re: User default post color
Post by: perplexed on July 30, 2006, 06:33:01 AM
any update for 1.1RC2 yet?
Title: Re: User default post color
Post by: mrselnombre on July 31, 2006, 11:19:53 AM
it works on rc2 almost perfectly on rc2, just doesn't work with quick reply..
Title: Re: User default post color
Post by: dyrome on September 26, 2006, 06:47:51 PM
Any updat for 1.1 rc3 ??

Please

thanks Dyrome
Title: Re: User default post color
Post by: JayBachatero on September 26, 2006, 11:02:35 PM
http://mods.simplemachines.org/index.php?mod=408
Title: Re: User default post color
Post by: OmegaSupreme on January 09, 2007, 06:03:26 PM
We used this on our forums but I can't get this to install with 1.1.1
Title: Re: User default post color
Post by: codenaught on January 09, 2007, 08:45:30 PM
If you are not getting "Failure" notices but instead don't see a link to install or are getting a message saying the mod is not compatible with your version of SMF try going to the package manager index page on your forum and adding ;version_emulate=1.1 to the end of the url and then pressing enter to run the url. This might work if the mod was specified to only install for certain versions. If you actually happen to get a failure message on a file though, then don't proceed.
Title: Re: User default post color
Post by: Cool999 on April 17, 2007, 04:41:23 AM
I need Auto BBC mod for smf 1.1.2. Plz help

Thanks
Title: Re: User default post color
Post by: sjmarsha on May 03, 2007, 08:40:22 AM
I need this one for 1.1.2 also. Anyone??
Title: Re: User default post color
Post by: Swayforth on June 11, 2007, 11:26:10 PM
i would love to have this feature as well.

Thank you
Title: Re: User default post color
Post by: angelsluver on October 29, 2007, 02:25:46 AM
can u guys make it to be compatible to 1.1.4?
Title: Re: User default post color
Post by: Ur_Irish_Rose on October 30, 2007, 10:54:41 AM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

is what I get when trying to install thsi MOD

any ideas please help thanks

im on 1.1.3 updated to 1.1.4
Title: Re: User default post color
Post by: angelsluver on November 28, 2007, 06:13:26 AM
any one can help us make this up and going in 1.1.4?

Thanks
Title: Re: User default post color
Post by: angelsluver on November 28, 2007, 06:20:00 AM
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

i got this error....

im using 1.1.4...

pls help me...
Title: Re: User default post color
Post by: De4thPr00f on November 30, 2007, 12:16:55 AM
open the install.xml on the zip file. search for:
install(1.1.1,1.1.2,1.1.3) or something like that, just add ,1.1.4 after 1.1.3. do the same at uninstall
Title: Re: User default post color
Post by: De4thPr00f on December 01, 2007, 03:35:55 PM
Ok, here you go, the version for 1.1.4
http://newengine.trap17.com/autobbc.zip
Title: Re: User default post color
Post by: huijaa on October 06, 2008, 06:36:06 PM
download not found...

And for 1.1.6 ?

Title: Re: User default post color
Post by: tjn3kds on December 19, 2008, 10:43:54 PM
I had this mod at one time on an old version of SMF. I was trying to install it on version 1.1.7 and get the error

1. Execute Modification ./Themes/default/Profile.template.php Test failed
2. Execute Modification ./Themes/default/Settings.template.php Test successful
3. Execute Modification ./Themes/default/Post.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


was wondering if someone could help me out on what I need to change to get this to work??
Title: Re: User default post color
Post by: tjn3kds on December 23, 2008, 04:57:56 PM
I had this mod at one time on an old version of SMF. I was trying to install it on version 1.1.7 and get the error

1. Execute Modification ./Themes/default/Profile.template.php Test failed
2. Execute Modification ./Themes/default/Settings.template.php Test successful
3. Execute Modification ./Themes/default/Post.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful


was wondering if someone could help me out on what I need to change to get this to work??

Found my problem and got it fixed.
Title: Re: User default post color
Post by: huguito on April 20, 2009, 10:21:43 PM
download not found...

And for 1.1.6 ?




And for 1.1.8 ? :(
I really want to use this feature
can somebody please tell me
if thereĀ“s another option for every user to set a default font ?
Title: Re: User default post color
Post by: MsAdvantageous on December 08, 2010, 06:50:38 PM
does this work for 2.0 RC3?
Title: Re: User default post color
Post by: KIMBAL on June 24, 2011, 07:57:02 PM
can we get this on new version 2.0 please guys
can we have  colour mods to change board names/ membergroups/ etc for version 2.0
can we also have a colour membergroup legend  for version 2.0
tidy child boards version 2.0
awards system version 2.0

i dont want much do i lol
thx guys i know your all busy but these would be most greatful
Title: Re: User default post color
Post by: lacin64 on June 25, 2011, 07:39:07 PM
I can only echo KIMBAL'S post I would love to see these same mods available on this version for my forum too, maybe a few more on the cosmetics side as well to be honest, more colors etc in the boards. Our member's are questioning our thinking about upgrading to this version but I am confident we have done the right thing and at the end of the day I believe in moving forward with software, not back. We all appreciate your all busy people but can we please have more mods asap.

Regards LaC