Text Editor Issue

Proyiehong at 05h24
16
Nov
2011
Hi, Can Someone Help Me Why My Forum Text Editor Did Not Display Text Editor Function At Above During Post Or Reply Topic, Thx !.

Here Is My Website: http://mytpccenter.getgoo.net

Here Is The ScreenShot When I Want To Post Announcement To My Website
1 kirk, on 16/11/2011 at 06h31
try clicking on the pink (switch editor mode) above on the top left
2 Proyiehong, on 16/11/2011 at 12h15
Sill No Luck, Kirk. Did I Code A Invalid Code To Javascript Or CSS ? Please Help Me Check, Thx !.

Below Are All Of My Forum Code Used.

Javascript Code (Change Nav Name)
Code:
$(function() {
document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox';
document.getElementById('i_icon_mini_profile').nextSibling.nodeValue='Personal Info';
document.getElementById('i_icon_mini_register').nextSibling.nodeValue='Sign Up';
});


Javascript Code (Post Background)
Code:
$(document).ready(function() {
        $('.post:has(".admin1"),.postbody:has(".admin1")').css('background-color', '#A5BAFA');
        $('.post:has(".vice1"),.postbody:has(".vice")').css('background-color', 'lightgreen');
        });


CSS Code
Code:
/* Hide Legend Bar */
#fo_stat div.thin+div {display: none;}

/* Hide Navigation Menu */
a[href="/search"]{
display: none;
}

a[href="/groups"]{
display: none;
}
3 LGforum, on 16/11/2011 at 12h27
this javascript:
Code:

        $(document).ready(function() {
                $('.post:has(".admin1"),.postbody:has(".admin1")').css('background-color', '#A5BAFA');
                $('.post:has(".vice1"),.postbody:has(".vice")').css('background-color', 'lightgreen');
                });


Make sure to tick 'only in topics' rather than in all pages.
4 Proyiehong, on 16/11/2011 at 12h52
Thx LGforum For Advise, And I Found Out Where The Problem Is, The Problem Is There A Code Inside The Javascript Cause This Problem, So After I Shut Down The Javascript System, It Go To Normal. I Think This Code Has Cause The Problem.


Can You Help Me Find Out Which Row Has A Invalid Code, Otherwise I Have To Re-Code That Code Again. Thx !

Javascript Code (Change Nav Name)
Code:
$(function() {
document.getElementById('i_icon_mini_message').nextSibling.nodeValue='Inbox';
document.getElementById('i_icon_mini_profile').nextSibling.nodeValue='Personal Info';
document.getElementById('i_icon_mini_register').nextSibling.nodeValue='Sign Up';
});
5 LGforum, on 16/11/2011 at 14h20
Code:

document.getElementById('i_icon_mini_register').nextSibling.nodeValue='Sign Up';


Its this line ^

When you are logged on there is no register button, and so the code crashes at that line.
And i believe i was once told by a trustworthy source (Dion) that if a code crashes on the post compose page, then those buttons won't load.


EDIT: you could fix it by doing this:
Code:

if(document.getElementById('i_icon_mini_register')) {
document.getElementById('i_icon_mini_register').nextSibling.nodeValue='Sign Up';}
6 kirk, on 16/11/2011 at 14h44
yeah i suggest members always test scripts on a test forum first.
Especially now that the whole jquery craze seems to be in full swing.

jquery,css, java ,whatever.. The key thing is simple is always best, the more advanced, the more problems you will encounter.
7 Proyiehong, on 16/11/2011 at 17h07
Thx LGforum & Kirk For Helping Me, I Have To Code It Carefully Next Time Shocked .
8 Base, on 16/11/2011 at 17h32
Hi, is this solved then?
9 Proyiehong, on 17/11/2011 at 03h24
@Base, Solved !
10 Jophy, on 17/11/2011 at 11h34
Solved ** Moved
Similar topics
CSS3 Text Shadows Adding text shadow effect with CSS Hi and welcome.Today we are going to talk about CSS3 text shadows.Shadows have been added to CSS2 but have been removed.Now the return to CSS3.Before we move onto the code,lets take a look at some
Hi every one !!! Yesterday (21-09-2011) The forum was Ok untill 14:00 - 15:00 (Greek Time).Then I logged out WITHOUT making any modification.Arround 19:00 - 20:00 (Greek Time) an admin called me on cell phone and told me that there was a big problem on th
Hi, For how long will this problem persists ? I am not good in html and rich-text editor helps me to manage appearnce of my problem but as I have been trying to work with out Rich-text editor , I have not done 1% work, so why Forumotion disable this
Replies 1 to 10 on 10 for "Text Editor Issue"
See also
more_less
Informations

10 Replies For the topic :
"Text Editor Issue"

This topic has been viewed 538 times.

Last message :
16/11/2011 at 05h24 by "Proyiehong"