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 Wed 16 Nov - 5:24

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 Wed 16 Nov - 6:31

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 Wed 16 Nov - 12:15

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 Wed 16 Nov - 12:27

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 Wed 16 Nov - 12:52

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 Wed 16 Nov - 14:20

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 Wed 16 Nov - 14:49; 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 Wed 16 Nov - 14:44

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 Wed 16 Nov - 17:07

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 Wed 16 Nov - 17:32

Hi, is this solved then?
Base
Base
Forumaster

Male Posts : 10386
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 Thu 17 Nov - 3:24

@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 Thu 17 Nov - 11:34

Solved ** Moved
Jophy
Jophy
ForumGuru

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

Back to top Go down

Back to top

- Similar topics

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