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 Editor Issue

View previous topic View next topic Go down

Solved Text Editor Issue

Post by yiehong22 on 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

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 on November 16th 2011, 6:31 am

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

kirk
Forumaster

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

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 on 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;
}

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 on 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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Text Editor Issue

Post by yiehong22 on 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';
});

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 on 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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Text Editor Issue

Post by kirk on 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
Forumaster

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

Back to top Go down

Solved Re: Text Editor Issue

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

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

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 on November 16th 2011, 5:32 pm

Hi, is this solved then?

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Solved Re: Text Editor Issue

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

@Base, Solved !

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 on November 17th 2011, 11:34 am

Solved ** Moved

Jophy
ForumGuru

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

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