News:

Wondering if this will always be free?  See why free is better.

Main Menu

Color & BgColor Clickable BBCode Bar

Started by burtybob, June 03, 2008, 04:14:15 AM

Previous topic - Next topic

LLStarks

super, why don't you fix the mod yourself if you feel so entitled?

IshbOO

for some reason i hav eno tool buttons on quick reply, its just all plain, is there an option somewhere to put the bbcode buttons on it.

burtybob

Quote from: IshbOO on February 26, 2009, 07:16:30 PM
for some reason i hav eno tool buttons on quick reply, its just all plain, is there an option somewhere to put the bbcode buttons on it.

There is in the admin panel however the default should be both on.
If your support topic does not have a link i will NOT assist you.
A link is easy to add AND is a massive help very often.
And a login account would be usefull even if its only pass and user =demo and its a normal account its not hard to add those two pieces of information.

I will do edits for you but not for free :) time costs money.

IshbOO

Quote from: burtybob on February 27, 2009, 09:40:41 AM
Quote from: IshbOO on February 26, 2009, 07:16:30 PM
for some reason i hav eno tool buttons on quick reply, its just all plain, is there an option somewhere to put the bbcode buttons on it.

There is in the admin panel however the default should be both on.

Where is this at?

I see where I can reset everyones options to" quick reply:show, on by default"

but im still not getting any bbcode buttons on my quick reply.

http://forum.jdmjunkee.com [nofollow]


Lighting_site

For my, this doesnt works this tag:

[bgcolor=#270000]hola[/bgcolor]

why?

The -L-

I got SMF 2.0 RC 1.2 and i managed to install this mod the only thing what went wrong is that i don`t have this mod on quick reply just on normal one...
How to fix this?

And how can i put this mod under the smileys???

TheListener

As a person whom detests WYSIWYG does this mod require it or not?

If so I would definately consider installing the mod.

alexandervba

my color bar only works for [bgcolor]... I cant seem to switch it back to [color][/color] ever after since our forums were hacked and I reuploaded everything.

How I get this to work?

Manu.G

Version SMF 2.0.8
SimplePortal 2.3.5

ChaosEnergy

Chaos Empire ®

chinaren

Quote from: ChaosEnergy on December 27, 2009, 11:02:49 AM
any news on that question?


Aye, I'll update the question:


Will there be an update for 2.0 RC3?   ;D


The bar thingy made it really easy to pick colors.  I miss it.  :-\
The Opus Path - The Next Generation of the Written Word

popkrab

Hi,

Does this mod is supported to SMF 2.0 RC3 yet?

Thank you very much
POP
[email protected]

RustyBarnacle

I'm guessing that since the original author hasn't been around in over a year, someone will have to take it over if its going to be updated.

FireDitto

I'm going to bump this, because I'd *really* love to get my paws on it.

Or if anyone can point me in the direction of a similar mod; I need to be able to change the colour behind the text, not just the text itself.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

MarkRH

Hmmm..

Yeah was trying to install this on SMF 2.0 Final. Looks like it fails the test with the GenericControls.template.php modification. I went looking at the code and what it's looking for and what is actually in the file is fairly different.

Maybe I can figure out how to manually add the code in or trick the installer. Hmmm.. bummer.
Mark H.

Manu.G

Quote from: MarkRH on June 24, 2011, 05:51:35 PM
Hmmm..

Yeah was trying to install this on SMF 2.0 Final. Looks like it fails the test with the GenericControls.template.php modification. I went looking at the code and what it's looking for and what is actually in the file is fairly different.

Maybe I can figure out how to manually add the code in or trick the installer. Hmmm.. bummer.
Could you get it to work on SMF 2.0? I would like to see an update of this mod :D
Version SMF 2.0.8
SimplePortal 2.3.5

chinaren

Quote from: Manu.G on October 29, 2011, 06:01:31 AM
Could you get it to work on SMF 2.0? I would like to see an update of this mod :D


I second this emotion!  :laugh:
The Opus Path - The Next Generation of the Written Word

MarkRH

No, I never got the mod working.  I ended up doing my own thing with a jscolor script: http://jscolor.com/ .  I loaded the script at the top of /(theme)/index.template.php:


// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>
   <script type="text/javascript" src="', $settings['theme_url'], '/scripts/jscolor/jscolor.js"></script>


Then, in /(theme)/Post.template.php around line 398:

// What about smileys?
if (!empty($context['smileys']['postform']) || !empty($context['smileys']['popup']))
echo '
<div id="smileyBox_message"></div>';
   // MarkRH
   echo '<hr class="clear">'."\n";
   echo '<dl id="post_header">'."\n";
   echo '<dt class="clear_left">Color pickers:</dt>
   <dd><input value="[COLOR]" style="cursor: pointer;" size="10" class="color {valueElement:\'myColor\',hash:true}"> <input size="10" style="cursor: pointer;" id="myColor" onclick="surroundText(\'[color=\' + this.value + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 0;"> &lt;- Click to insert';
   echo ' | <input value="[BGCOLOR]" style="cursor: pointer;" size="10" class="color {valueElement:\'myBackgroundColor\',hash:true}"> <input size="10" style="cursor: pointer;"  id="myBackgroundColor" onclick="surroundText(\'[bgcolor=\' + this.value + \']\', \'[/bgcolor]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 0;"> &lt;- Click to insert</dd>';
   echo '</dl>'."\n";
   // end MarkRH

   echo '
               ', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');


Then, in /Sources/Subs.php around line 1184, I added the bgcolor tag to the list of BBC Codes:

array(
'tag' => 'bgcolor',
'type' => 'unparsed_equals',
'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,20}|rgb\(\d{1,3}, ?\d{1,3}, ?\d{1,3}\))\]',
'before' => '<span style="background-color: $1;" class="bbc_color">',
'after' => '</span>',
),


I think that's all I did. This was like 5 months ago so I might have forgotten something LOL.

Hope it helps,
Mark H.
Mark H.

Apllicmz

Nice work
when Update edit portuguese to portuguese_pt
Thank you



Advertisement: