The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Text color addition

View previous topic View next topic Go down

Text color addition

Post by The Crocodile on June 3rd 2011, 8:26 pm

Well ive folowed the tutorial for adding new colors to the text editor. I found the code in the posting_body template and copied one of the codes I changed the names of the color like said in tutorial. i even tried to copy paste the code from tutorial for teal and lime color on the right place. But nothing happens. I dont get any new colors. What do i have to do?
LINK TO THE SITE: http://www.advancedduelacademy.com

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

Re: Text color addition

Post by Nera. on June 3rd 2011, 9:41 pm

Pozdrav Krokodile Smile

Did you publish your template on the green cross, NOT only save it?

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Re: Text color addition

Post by The Crocodile on June 3rd 2011, 10:34 pm

yes ofc, pozz hrvatska Very Happy

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

Re: Text color addition

Post by Nera. on June 3rd 2011, 11:01 pm

Šu, I really can't see where did you go wrong cause I'm not registred. I've just tried the tutorial and see what I got with lime http://i.imm.io/69mb.png
All you need to do is replace names in 3 places
Code:
<button style="color:lime;"
onclick="bbfontstyle('[color=lime]', '[/color]');selectWysiwyg(this,
'color');return false;" onmouseover="this.className='selectHover';"
onmouseout="this.className='';">Lime color</button>
And add it after black color beetween </br> and the last </div>

P.S. I've returned the PM. Smile

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Re: Text color addition

Post by The Crocodile on June 4th 2011, 11:57 am

Even when i copy your code or his in the right place, nothing changes.
Ive tried to delete 1 color but even that wont work.

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

Re: Text color addition

Post by Nera. on June 4th 2011, 12:22 pm

Hej,
I've just added lime through your templates http://i.imm.io/6aeO.png
Everything is OK but I can't see what are you doing wrong. Can you add lime and publish template so I can see where did you add it.

Code:
<button style="color:lime;"
onclick="bbfontstyle('[color=lime]', '[/color]');selectWysiwyg(this,
'color');return false;" onmouseover="this.className='selectHover';"
onmouseout="this.className='';">Lime color</button>

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Re: Text color addition

Post by The Crocodile on June 4th 2011, 12:56 pm

lol u hacked my forum xD
Ive added several colors with the codes you gave me
Result in the template

Code:
<div style="visibility:hidden" class="select" id="color">
                     <button style="color:darkred" onclick="bbfontstyle('[color=darkred]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_DARK_RED}</button><br />
                     <button style="color:red" onclick="bbfontstyle('[color=red]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_RED}</button><br />
                     <button style="color:orange" onclick="bbfontstyle('[color=orange]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_ORANGE}</button><br />
                     <button style="color:brown" onclick="bbfontstyle('[color=brown]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BROWN}</button><br />
                     <button style="color:yellow" onclick="bbfontstyle('[color=yellow]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_YELLOW}</button><br />
                     <button style="color:green" onclick="bbfontstyle('[color=green]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_GREEN}</button><br />
                     <button style="color:olive" onclick="bbfontstyle('[color=olive]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_OLIVE}</button><br />
                     <button style="color:cyan" onclick="bbfontstyle('[color=cyan]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_CYAN}</button><br />
                     <button style="color:blue" onclick="bbfontstyle('[color=blue]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BLUE}</button><br />
                     <button style="color:darkblue" onclick="bbfontstyle('[color=darkblue]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_DARK_BLUE}</button><br />
                     <button style="color:indigo" onclick="bbfontstyle('[color=indigo]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_INDIGO}</button><br />
                     <button style="color:violet" onclick="bbfontstyle('[color=violet]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_VIOLET}</button><br />
                     <button style="color:lightgrey" onclick="bbfontstyle('[color=white]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_WHITE}</button><br />
                     <button style="color:black" onclick="bbfontstyle('[color=black]','[/color]');selectWysiwyg(this,'color');return false">{L_COLOR_BLACK}</button><br />
                     <button style="color:lime;" onclick="bbfontstyle('[color=lime]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Lime color</button><br />
                     <button style="color:PaleTurquoise;" onclick="bbfontstyle('[color=PaleTurquoise]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">PaleTurquoise</button><br />
                     <button style="color:OrangeRed;" onclick="bbfontstyle('[color=OrangeRed]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">OrangeRed</button><br />
                     <button style="color:LightSalmon;" onclick="bbfontstyle('[color=LightSalmon]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSalmon</button><br />
                     <button style="color:LightSteelBlue;" onclick="bbfontstyle('[color=LightSteelBlue]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSteelBlue</button><br />
                     <button style="color:LightSlateGray;" onclick="bbfontstyle('[color=LightSlateGray]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSlateGray</button><br />
                     <button style="color:Silver;" onclick="bbfontstyle('[color=Silver]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Silver</button><br />
                     <button style="color:SlateBlue;" onclick="bbfontstyle('[color=SlateBlue]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">SlateBlue</button><br />
                     <button style="color:Lavender;" onclick="bbfontstyle('[color=Lavender]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Lavender</button><br />
                     <button style="color:RosyBrown;" onclick="bbfontstyle('[color=RosyBrown]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">RosyBrown</button><br />
                  </div>

But nothing shows up when i click the button O.o

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

Re: Text color addition

Post by Nera. on June 4th 2011, 1:13 pm

I can't see it in your posting_body template. It is like you never published it. :S

All you need is this
Code:
                    <button style="color:lime;" onclick="bbfontstyle('[color=lime]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Lime color</button><br />
                    <button style="color:PaleTurquoise;" onclick="bbfontstyle('[color=PaleTurquoise]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">PaleTurquoise</button><br />
                    <button style="color:OrangeRed;" onclick="bbfontstyle('[color=OrangeRed]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">OrangeRed</button><br />
                    <button style="color:LightSalmon;" onclick="bbfontstyle('[color=LightSalmon]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSalmon</button><br />
                    <button style="color:LightSteelBlue;" onclick="bbfontstyle('[color=LightSteelBlue]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSteelBlue</button><br />
                    <button style="color:LightSlateGray;" onclick="bbfontstyle('[color=LightSlateGray]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">LightSlateGray</button><br />
                    <button style="color:Silver;" onclick="bbfontstyle('[color=Silver]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Silver</button><br />
                    <button style="color:SlateBlue;" onclick="bbfontstyle('[color=SlateBlue]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">SlateBlue</button><br />
                    <button style="color:Lavender;" onclick="bbfontstyle('[color=Lavender]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">Lavender</button><br />
                    <button style="color:RosyBrown;" onclick="bbfontstyle('[color=RosyBrown]', '[/color]');selectWysiwyg(this, 'color');return false;" onmouseover="this.className='selectHover';" onmouseout="this.className='';">RosyBrown</button><br />

See my resault => http://i.imm.io/6ahu.png

Can you pass me a screens shot of your templates published?

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Re: Text color addition

Post by The Crocodile on June 4th 2011, 7:35 pm

Here is it
http://i51.tinypic.com/2ik75tt.png

Result on forum (theres no result)
http://i54.tinypic.com/awpzeg.png



Later:
Ive downloaded google chrome, and the text formating colors are visible there. But im actually using mozila and they dont show up in this browser. Do you have some code or something what makes it visible on all browsers?

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

Re: Text color addition

Post by The Crocodile on June 5th 2011, 9:33 pm

bump

The Crocodile
Forumember

Male Posts : 64
Reputation : 0
Language : Bosnian

http://lsacademy.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum