The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Text Editor Issue

5 posters

Go down

Solved Text Editor Issue

Post by yiehong22 November 16th 2011, 5:24 am

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
Text Editor Issue Help10
avatar
yiehong22
Forumember

Male Posts : 83
Reputation : 4
Language : English
Location : Malaysia

http://theprocenter.forumms.net

Back to top Go down

Solved Re: Text Editor Issue

Post by kirk November 16th 2011, 6:31 am

try clicking on the pink (switch editor mode) above on the top left
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 November 16th 2011, 12:15 pm

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;
}
avatar
yiehong22
Forumember

Male Posts : 83
Reputation : 4
Language : English
Location : Malaysia

http://theprocenter.forumms.net

Back to top Go down

Solved Re: Text Editor Issue

Post by LGforum November 16th 2011, 12:27 pm

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.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 November 16th 2011, 12:52 pm

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';
});
avatar
yiehong22
Forumember

Male Posts : 83
Reputation : 4
Language : English
Location : Malaysia

http://theprocenter.forumms.net

Back to top Go down

Solved Re: Text Editor Issue

Post by LGforum November 16th 2011, 2:20 pm

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';}


Last edited by LGforum on November 16th 2011, 2:49 pm; edited 1 time in total
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Text Editor Issue

Post by kirk November 16th 2011, 2:44 pm

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.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 November 16th 2011, 5:07 pm

Thx LGforum & Kirk For Helping Me, I Have To Code It Carefully Next Time Shocked .
avatar
yiehong22
Forumember

Male Posts : 83
Reputation : 4
Language : English
Location : Malaysia

http://theprocenter.forumms.net

Back to top Go down

Solved Re: Text Editor Issue

Post by Base November 16th 2011, 5:32 pm

Hi, is this solved then?
Base
Base
Forumaster

Male Posts : 10383
Reputation : 1695
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 November 17th 2011, 3:24 am

@Base, Solved !
avatar
yiehong22
Forumember

Male Posts : 83
Reputation : 4
Language : English
Location : Malaysia

http://theprocenter.forumms.net

Back to top Go down

Solved Re: Text Editor Issue

Post by Jophy November 17th 2011, 11:34 am

Solved ** Moved
Jophy
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top


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