friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2008-01-12 19:43:13

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Customize Main Navigation

if (!addEvent(function() { NAVIGATION.init();})) { window.onload = function() { NAVIGATION.init();};}

if (typeof NAVIGATION == "undefined") { NAVIGATION = {}; }
NAVIGATION = {
        className: [],
        tagName: [],
        className2: [],
        tagName2: [],

        init: function() {
                this.className = this.getModuleByClassName(/firstnav/i)[0];
                this.tagName = this.className.getElementsByTagName('ul')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Inbox/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/My Site/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Contacts/, 'CHANGETHIS');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Groups/, 'CHANGETHIS');

                this.className2 = this.getModuleByClassName(/secondnav/i)[0];
                this.tagName2 = this.className2.getElementsByTagName('ul')[0];
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Post/, 'CHANGETHIS');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Invite/, 'CHANGETHIS');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Search/, 'CHANGETHIS');
        },

        getModuleByClassName: function(sClass) {
            var elm = [];
            var els = document.getElementsByTagName("*") || document.all;
                for (var j=0,k=els.length;j<k;j++) {
                    if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
                }
                return elm;
        }
};

Replace the word CHANGETHIS..
And Just save this in your JS Files.

So basically... The Final Code can be like this..

Code:

if (!addEvent(function() { NAVIGATION.init();})) { window.onload = function() { NAVIGATION.init();};}

if (typeof NAVIGATION == "undefined") { NAVIGATION = {}; }
NAVIGATION = {
        className: [],
        tagName: [],
        className2: [],
        tagName2: [],

        init: function() {
                this.className = this.getModuleByClassName(/firstnav/i)[0];
                this.tagName = this.className.getElementsByTagName('ul')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Inbox/, 'Home');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/My Site/, 'My Profile');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Contacts/, 'Friends');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Groups/, 'Clan');

                this.className2 = this.getModuleByClassName(/secondnav/i)[0];
                this.tagName2 = this.className2.getElementsByTagName('ul')[0];
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Post/, 'New');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Invite/, 'Check');
                this.tagName2.innerHTML = this.tagName2.innerHTML.replace(/Search/, 'Browse');
        },

        getModuleByClassName: function(sClass) {
            var elm = [];
            var els = document.getElementsByTagName("*") || document.all;
                for (var j=0,k=els.length;j<k;j++) {
                    if (new RegExp(sClass).test(els[j].className))elm.push(els[j]);
                }
                return elm;
        }
};

Works in IE6+ and FF2+

Preview: http://xavegoi83.multiply.com/

Last edited by xavierkym (2008-01-12 22:52:47)


#2  2008-01-12 22:27:51

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Customize Main Navigation

Nice...
So we can change it for ex...

:arrow: My Site to My Profile?


Back to my default status: School mode

#3  2008-01-12 22:30:34

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Customize Main Navigation

Yes of course :D
You know what to edit there already ;)


#4  2008-01-12 22:31:11

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Customize Main Navigation

yeah yeah.. thanks for sharing xavey.. i envy you.. LOLS you know what i mean  :wow:


Back to my default status: School mode

#5  2008-01-12 22:48:18

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Customize Main Navigation

Huh? I don't know what you mean bro. :o

Hehe. More tweaks to come.. :penguin:


#6  2008-01-13 03:04:20

blurrycloud
» Moderator
blurrycloud's display avatar
[ - AchilleS - ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2568
Reputation: 98

Re: Customize Main Navigation

Lol's forget about it... yeah...  :P  :P  :P


Back to my default status: School mode

#7  2008-01-25 11:11:34

pulasara
» FriendsterGeek
pulasara's display avatar
Atas-bawah Kiri-kanan ok!
Class X
Location: digicorner.net
Registered: 2007-07-24
Posts: 1113
Reputation: 3
Friendster

Re: Customize Main Navigation

cool :cool:


My Total earnings from Google Adsense,Thanks For Google =) :thumbsup:

#8  2008-02-11 20:37:39

kangkong10
» Promoter
kangkong10's display avatar
Registered: 2008-01-09
Posts: 1290
Reputation: 14

Re: Customize Main Navigation

wow... thanks for sharing..


elow guys, I'm Back again

#9  2008-02-17 18:45:24

taurus1983
» FriendsterTalker
taurus1983's display avatar
Location: Nowhere
Registered: 2007-09-21
Posts: 101
Last visit: 2008-09-27
Reputation: 1

Re: Customize Main Navigation

how about the user menu?...
home, video, blog...


pls, reply... :|

Last edited by taurus1983 (2008-02-17 18:46:26)


0'oh!...No 0n3 is cooler than me....

#10  2008-02-17 20:25:00

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Customize Main Navigation

^
Try this :)

Code:

if (!addEvent(function() { SUBNAV.init();})) { window.onload = function() { SUBNAV.init();};}

if (typeof SUBNAV == "undefined") { SUBNAV = {}; }
SUBNAV = {
        tagName: [],
        idName: [],

        init: function() {
                this.idName = document.getElementById('subnav');
                this.tagName = this.idName.getElementsByTagName('div')[0];
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Home/, 'Nanay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Blog/, 'Tatay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Photos/, 'Gusto ko');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Video/, 'Tinapay');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Music/, 'Gusto ko');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Reviews/, 'Kape');
                this.tagName.innerHTML = this.tagName.innerHTML.replace(/Links/, 'LOLZ!');
        }
};

#11  2008-02-18 02:18:20

taurus1983
» FriendsterTalker
taurus1983's display avatar
Location: Nowhere
Registered: 2007-09-21
Posts: 101
Last visit: 2008-09-27
Reputation: 1

Re: Customize Main Navigation

A BIG thanks 2 u.. 8's rily working!!!!!!!!!!

:)  :)  :)


0'oh!...No 0n3 is cooler than me....

#12  2008-02-29 19:30:49

usercp12
» FriendsterTalker
Registered: 2008-02-29
Posts: 111
Last visit: 2008-04-30
Reputation: ~

Re: Customize Main Navigation

wow...
thanks again sir xavier you're the coder here??

#13  2008-03-01 11:11:42

master_jareth2000
» FriendsterTalker
master_jareth2000's display avatar
Guitar Lover
Location: angono,rizal
Registered: 2007-06-20
Posts: 149
Last visit: 2008-04-20
Reputation: ~
Friendster

Re: Customize Main Navigation

nice job...i already have a tagalog version of my multiply...

#14  2008-03-06 11:04:14

japzy
» Promoter
japzy's display avatar
C:// Local Disk
Friendstertalk University
Location: Parañaque City
Registered: 2008-03-02
Posts: 1518
Reputation: 60
Friendster

Re: Customize Main Navigation

newbie in multiply..!! thanks for this one!! :D




1st ever userbar ahaha :D

#15  2008-04-29 08:53:08

@mUtHy_fRuiTy@
» FriendsterTalker
@mUtHy_fRuiTy@'s display avatar
+.spongey.+
Rockstars
Location: dEr & bAk AgEn
Registered: 2008-03-14
Posts: 191
Last visit: 2008-10-16
Reputation: 2
Friendster

Re: Customize Main Navigation

blurrycloud wrote:

Nice...
So we can change it for ex...

:arrow: My Site to My Profile?

yup. nice!!! my brother locked multiply and i cant even open it! can somone in here help me???:o

#16  2008-04-29 16:51:23

xavierkym
» Retired Moderator
The Sinister
Class-S
Location: London, England
Registered: 2007-06-10
Posts: 5370
Reputation: 129
Friendster

Re: Customize Main Navigation

^
What do you actually mean by LOCKED.?:O


Search Friendstertalk

Moderated by Ephemeral, blurrycloud, dale

Board footer

FriendsterTalk is not affiliated with Friendster.com
Copyright © 2002–2008 PunBB

[ 24 queries - 0.428 second ]

Pay Per Click Ads by pay per click advertising by Kontera

FriendsterTalk.com x

Welcome to FriendsterTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)