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.

Change code: in message editor

View previous topic View next topic Go down

Change code: in message editor

Post by DustyBones on January 28th 2012, 2:22 am

I apologize, I closed my other topic to quick..

Can I change the Text when you hover over the Code button to something else?

phpBB2
Thanks,


Last edited by DustyBones on January 28th 2012, 10:57 pm; edited 2 times in total

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by DustyBones on January 28th 2012, 3:24 am

Rideem3 wrote:Go to Admin Panel -> Modules -> JavaScript Codes Management -> Make sure it's on! -> Create new -> Select in the topics ->

Paste:
Code:
$(document).ready(function() {
$('button#addbbcode8').attr('title','Your text here');
});

Change your text here to what you want the title to be Wink

Not working. I made sure it was enabled, selected only "In the topics", saved. Even pasted your code without adding my text leaving the 'Your text here' as is. Still nothing..

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by DustyBones on January 28th 2012, 4:40 am

Rideem3 wrote:I tested it, and it works Wink

Where are you testing it? This is meant for the quick reply editor.

Now, if you want it for the full post reply page check "In all pages" Wink

I can't get it to work either way..
Thanks anyway, I'll just use it like it is... I'm the only one using it anyway..
Thanks again..

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by LGforum on January 28th 2012, 4:58 pm

Code:

document.getElementById('addbbcode8').title="NEW TEXT HERE";

Put that inside a function already running 'in the topics'

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Change code: in message editor

Post by DustyBones on January 28th 2012, 5:42 pm

@LGforum wrote:
Code:

document.getElementById('addbbcode8').title="NEW TEXT HERE";

Put that inside a function already running 'in the topics'

Unfortunately, I don't have anything else in the Java script modules... Sad

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by Mr_Waffle on January 28th 2012, 6:19 pm

Code:
$(document).ready(function() {
$('button#addbbcode8>img').attr('title','Your Text Here');
});

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Change code: in message editor

Post by DustyBones on January 28th 2012, 6:31 pm

@Mr_Waffle wrote:
Code:
$(document).ready(function() {
$('button#addbbcode8>img').attr('title','Your Text Here');
});

Still no change...

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by Mr_Waffle on January 28th 2012, 6:32 pm

@DustyBones wrote:
@Mr_Waffle wrote:
Code:
$(document).ready(function() {
$('button#addbbcode8>img').attr('title','Your Text Here');
});

Still no change...
Change the "Placement" to "In all the pages"

Mr_Waffle
New Member

Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#

Back to top Go down

Re: Change code: in message editor

Post by DustyBones on January 28th 2012, 7:21 pm

@Mr_Waffle wrote:
@DustyBones wrote:
@Mr_Waffle wrote:
Code:
$(document).ready(function() {
$('button#addbbcode8>img').attr('title','Your Text Here');
});

Still no change...
Change the "Placement" to "In all the pages"

Nope, still nothing.
Here's how I put my text in.
Code:
$(document).ready(function() {
        $('button#addbbcode8>img').attr('title','Content');
        });
Java is enabled & saved, set to In all the pages

DustyBones
Active Poster

Male Posts : 1225
Reputation : 516
Language : English
Location : Washington, USA

http://raps-graphics.forumotion.com/

Back to top Go down

Re: Change code: in message editor

Post by Guest on January 28th 2012, 9:18 pm

None of the posted code will work if your editor is in WYSIWYG mode.

But why use scripts? Since you're using phpBB2, you can change the title yourself in the posting_body template. Search for the two occurrences of title="{L_BBCODE_C}" and change the titles to whatever you want.

Guest
Guest


Back to top Go down

Re: Change code: in message editor

Post by xiaomah01 on January 29th 2012, 1:02 am

DISPLAY>Post & Private Messages>posting_body
find:
Code:
<button class="button2" onmouseover="helpline('c')" type="button" id="text_editor_cmd_wrap0_code" accesskey="c" title="{L_BBCODE_C}"><img src="{PATH_IMG_FA}wysiwyg/page_white_code.png" alt="{L_BBCODE_C}" /></button>
change:title="{L_BBCODE_C}"

xiaomah01
Forumember

Male Posts : 206
Reputation : 7
Language : English|Chinese|malay
Location : malaysia

http://johor.forumn.org/

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