friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#41  2008-01-21 19:20:29

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

Re: One Column Profile [Javacript]

Post updated for addBox users. :redface:


#42  2008-01-23 12:45:29

john_619619
» FriendsterAgent
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2267
Last visit: Yesterday
Reputation: 28

Re: One Column Profile [Javacript]

@portuniecho

Code:

if (!attachOnLoadHandler(function(){centerBoxes()})) window.onload = function(){centerBoxes()};
function centerBoxes() {

        fixBox("0",null); //Cpanel
        fixBox("1",null); //Photos
        fixBox("13",null); //Blogs
        fixBox("12",null); //Reviews
        fixBox("6",null); //MoreAbout
        fixBox("18",null); // Comments
        fixBox("10",null); //Media Box
        centerBox("2","13","DOWN",null); //Friends below Blogs
        centerBox("7","10","UP",null); //Fanof above Media Box
        centerBox("8","18","DOWN",null); //Groups below Comments
        centerBox("15","0","UP",null); //Mettrail above CPanel


}

function fixBox(boxID,set) {
//by xavierkym

//set "CUSTOM" | null
//if "CUSTOM" set your settings in the function below
/* Available default boxID
RIGHT BOXES
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
*/
    var box;
    box = parent.document.getElementById(boxID);
       if (set == null) {
                box.style.position = "relative";
              box.style.overflow = "auto";
            box.style.overflowX = "hidden";
          box.style.left = "160px";
        box.style.width = "490px";
    }
       else if (set == "CUSTOM") {
                box.style.position = "relative";
              box.style.overflow = "hidden";
          box.style.left = "160px";
        box.style.width = "490px";
    }
}

function centerBox(boxID,sibling,insert,set) {
//by xavierkym

//insert "UP" | "DOWN"
//set default is =  null
/* Available default boxID
RIGHT BOXES
        15 = meettrail
        2 = friends
        14 = googleads
        7 = fan
        8 = groups

    Available default sibling
LEFT BOXES
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
*/
        var baseID; var cNode; var module; var box;
      baseID = document.getElementById(sibling);
         cNode = baseID.parentNode;
          module = document.getElementById(boxID);
             box = parent.document.getElementById(boxID);
         if (set == null) {
                 box.style.position = "relative";
                  box.style.overflow = "auto";
                   box.style.overflowX = "hidden";
                    box.style.left = "160px";
                     box.style.width = "490px";
                 }
         if (insert == "UP") {
                 cNode.parentNode.insertBefore(module,cNode);
              }
         else if (insert == "DOWN") {
           cNode.appendChild(module);
      }
}

Cheers,
GM [ john_619619 ]

======================================================================
NO TRESPASSING: VIOLATORS WILL BE SHOT AND SURVIVORS WILL BE SHOT AGAIN.
======================================================================

#43  2008-01-23 12:58:11

portuniecho
» Moderator
portuniecho's display avatar
[ CC://me <3's you ]
Class-S
Location: Pentagon
Registered: 2007-11-22
Posts: 5879
Reputation: 421
Friendster

Re: One Column Profile [Javacript]

luk bro,,



dats it,,
i olready put ur ready made code tu mu hide.txt.. =(



| I love you . More than you know. More than anything. :kiss: . |

#44  2008-01-23 13:07:24

john_619619
» FriendsterAgent
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2267
Last visit: Yesterday
Reputation: 28

Re: One Column Profile [Javacript]

^ whats wrong with that? :rolleyes:


Cheers,
GM [ john_619619 ]

======================================================================
NO TRESPASSING: VIOLATORS WILL BE SHOT AND SURVIVORS WILL BE SHOT AGAIN.
======================================================================

#45  2008-01-23 13:15:41

portuniecho
» Moderator
portuniecho's display avatar
[ CC://me <3's you ]
Class-S
Location: Pentagon
Registered: 2007-11-22
Posts: 5879
Reputation: 421
Friendster

Re: One Column Profile [Javacript]

i dunno,,dats why im tellin u,,da codes dat u gave to me,,is lyk dat..



| I love you . More than you know. More than anything. :kiss: . |

#46  2008-01-23 13:24:04

john_619619
» FriendsterAgent
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2267
Last visit: Yesterday
Reputation: 28

Re: One Column Profile [Javacript]

that is one column :rolleyes:


Cheers,
GM [ john_619619 ]

======================================================================
NO TRESPASSING: VIOLATORS WILL BE SHOT AND SURVIVORS WILL BE SHOT AGAIN.
======================================================================

#47  2008-01-23 13:26:00

portuniecho
» Moderator
portuniecho's display avatar
[ CC://me <3's you ]
Class-S
Location: Pentagon
Registered: 2007-11-22
Posts: 5879
Reputation: 421
Friendster

Re: One Column Profile [Javacript]

yah,,one column,,one column control panel box,, :cry:



| I love you . More than you know. More than anything. :kiss: . |

#48  2008-01-23 13:29:03

john_619619
» FriendsterAgent
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2267
Last visit: Yesterday
Reputation: 28

Re: One Column Profile [Javacript]

:wasted:

you must have this

Controlpanel
Photos
Blogs
Reviews
More About
Testimonials
Mediabox
Meetrail
Friends
Fan
Groups

        fixBox("0",null); //Cpanel
        fixBox("1",null); //Photos
        fixBox("13",null); //Blogs
        fixBox("12",null); //Reviews
        fixBox("6",null); //MoreAbout
        fixBox("18",null); // Comments
        fixBox("10",null); //Media Box
        centerBox("2","13","DOWN",null); //Friends below Blogs
        centerBox("7","10","UP",null); //Fanof above Media Box
        centerBox("8","18","DOWN",null); //Groups below Comments
        centerBox("15","0","UP",null); //Mettrail above CPanel


Cheers,
GM [ john_619619 ]

======================================================================
NO TRESPASSING: VIOLATORS WILL BE SHOT AND SURVIVORS WILL BE SHOT AGAIN.
======================================================================

#49  2008-01-23 13:30:44

ducheszv
» Moderator
ducheszv's display avatar
[ E:// i love you ]
Class-S
Location: up there, down ere
Registered: 2007-06-01
Posts: 7565
Reputation: 296

Re: One Column Profile [Javacript]

remove the hide codes in your CSS.. the hide friends, hide groups  =)




I love you. More than I show you. More than you know. I love you so much :kiss:

#50  2008-01-23 13:38:10

portuniecho
» Moderator
portuniecho's display avatar
[ CC://me <3's you ]
Class-S
Location: Pentagon
Registered: 2007-11-22
Posts: 5879
Reputation: 421
Friendster

Re: One Column Profile [Javacript]

really??

. .well see wat happen??

http://profiles.friendster.com/59363512 =(



| I love you . More than you know. More than anything. :kiss: . |

#51  2008-01-25 07:59:17

iamnotemo
» FriendsterNewbie
Location: lucena
Registered: 2007-01-01
Posts: 67
Last visit: 2008-09-05
Reputation: 2
Friendster

Re: One Column Profile [Javacript]

how can i use this code??
i dont really have idea about java

will i copy it all and uplaod it as .js or .txt??

i done it but the box just overlapped

what should i do??


#52  2008-01-25 10:59:48

fando91
» Promoter
fando91's display avatar
[ Chevaliér dé L'empire ]
Class-S
Location: Légion d'honneur
Registered: 2007-08-19
Posts: 1798
Last visit: 2008-12-01
Reputation: 17
Friendster

Re: One Column Profile [Javacript]

actually, this trickis cool!

#53  2008-01-25 11:49:10

sahabat.peterpan
» SuperFriendster
sahabat.peterpan's display avatar
Rockstars
Registered: 2007-10-31
Posts: 8431
Reputation: 58

Re: One Column Profile [Javacript]

Nice Scripts, sir :O  :thumbsup:


#54  2008-01-25 11:54:42

Chezter18
» Cursed Member
Chezter18's display avatar
Registered: 2007-09-19
Posts: 756
Reputation: 5
Friendster

Re: One Column Profile [Javacript]

@topic starter can u give one whole code that example only....

#55  2008-01-25 19:37:33

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

Re: One Column Profile [Javacript]

^
I guess the code is very detailed enough. =|


#56  2008-01-25 20:54:17

burnok
» FriendsterNewbie
burnok's display avatar
[we're doing it]
Location: pilipins, earth
Registered: 2007-12-10
Posts: 88
Last visit: 2008-09-10
Reputation: ~

Re: One Column Profile [Javacript]

ahm...question:

is it possible to resize the boxes without affecting the size of the other boxes?


:thumbsup: for u sir!!


The World is Too Small for My Desires

#57  2008-01-26 01:03:35

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

Re: One Column Profile [Javacript]

^
Yep.
Use you CSS for that buddy. =|


#58  2008-01-26 02:10:53

iamnotemo
» FriendsterNewbie
Location: lucena
Registered: 2007-01-01
Posts: 67
Last visit: 2008-09-05
Reputation: 2
Friendster

Re: One Column Profile [Javacript]

@xavierkym why when i use ur code its just overlapped??


#59  2008-01-26 02:49:02

john_619619
» FriendsterAgent
john_619619's display avatar
'kiss me
Friendstertalk University
Registered: 2007-07-26
Posts: 2267
Last visit: Yesterday
Reputation: 28

Re: One Column Profile [Javacript]

Im using this! :D  :thumbsup:

Code:

if (!attachOnLoadHandler(function(){centerBoxes()})) window.onload = function(){centerBoxes()};
function centerBoxes() {

        fixBox("0",null); //Cpanel
        fixBox("1",null); //Photos
        fixBox("13",null); //Blogs
        fixBox("12",null); //Reviews
        fixBox("6",null); //MoreAbout
        fixBox("18",null); // Comments
        fixBox("10",null); //Media Box
        centerBox("2","13","DOWN",null); //Friends below Blogs
        centerBox("7","10","UP",null); //Fanof above Media Box
        centerBox("8","18","DOWN",null); //Groups below Comments
        centerBox("15","0","UP",null); //Mettrail above CPanel


}

function fixBox(boxID,set) {
//by xavierkym

//set "CUSTOM" | null
//if "CUSTOM" set your settings in the function below
/* Available default boxID
RIGHT BOXES
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
*/
    var box;
    box = parent.document.getElementById(boxID);
       if (set == null) {
                box.style.position = "relative";
              box.style.overflow = "auto";
            box.style.overflowX = "hidden";
          box.style.left = "160px";
        box.style.width = "490px";
    }
       else if (set == "CUSTOM") {
                box.style.position = "relative";
              box.style.overflow = "hidden";
          box.style.left = "160px";
        box.style.width = "490px";
    }
}

function centerBox(boxID,sibling,insert,set) {
//by xavierkym

//insert "UP" | "DOWN"
//set default is =  null
/* Available default boxID
RIGHT BOXES
        15 = meettrail
        2 = friends
        14 = googleads
        7 = fan
        8 = groups

    Available default sibling
LEFT BOXES
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
*/
        var baseID; var cNode; var module; var box;
      baseID = document.getElementById(sibling);
         cNode = baseID.parentNode;
          module = document.getElementById(boxID);
             box = parent.document.getElementById(boxID);
         if (set == null) {
                 box.style.position = "relative";
                  box.style.overflow = "auto";
                   box.style.overflowX = "hidden";
                    box.style.left = "160px";
                     box.style.width = "490px";
                 }
         if (insert == "UP") {
                 cNode.parentNode.insertBefore(module,cNode);
              }
         else if (insert == "DOWN") {
           cNode.appendChild(module);
      }
}

Cheers,
GM [ john_619619 ]

======================================================================
NO TRESPASSING: VIOLATORS WILL BE SHOT AND SURVIVORS WILL BE SHOT AGAIN.
======================================================================

#60  2008-01-26 12:25:06

i'mhere.it
» FriendsterTalker
i'mhere.it's display avatar
~neverlethergo!
Location: it's secret! plb.
Registered: 2008-01-11
Posts: 129
Last visit: 2008-11-29
Reputation: ~
Friendster

Re: One Column Profile [Javacript]

nice,
thx for shring dude.


.iam.what.iam.


Search Friendstertalk

Board footer

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

[ 28 queries - 2.179 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. =)