friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2008-08-31 06:15:22

briskicetea
» FriendsterNewbie
briskicetea's display avatar
this is xit...
Location: 4:00 direction
Registered: 2007-10-13
Posts: 17
Last visit: 2008-09-20
Reputation: 1
Friendster

Under Construction Trick! EDITED: you're now exempted from the script

Currently my second code to share.

Ok...Brief Description:

This code allows you to put your profile to an "Under Construction Mode" wherein your viewers will be sent to a new page (but actually its just like a div covering the whole profile). In that so-called page, they can either choose to continue to your profile or leave. This way, visitors will know that your page is only under construction (meaning it could look bad or have alot of errors)

This code is only short but it looks a bit long because I added the guide on implementing it with my Profile Loader w/ fake load info.

End of Description

:arrow: PREVIEW

http://www.friendster.com/jeueljoseph

:arrow: Copy the code below inside your onLoad Handler (where the addboxes go):

Code:

//Settings
// Is under construction? Y/N
var checkcons = "Y";

//The Under Construction Box content
var ucbox = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><p align='center'>CURRENTLY UNDER CONSTRUCTION</p><br /><br /><p align='center'><a href='http://www.friendster.com/'>CLICK TO GO HOME</a></p><br /><p align='center'><a href='#' onClick='ucload()'>CLICK HERE TO \"STILL\" PROCEED TO MY PROFILE</p><br />";

// No need to edit below -----------------------------------
if(checkcons=="Y" && pageOwnerID!=pageViewerID){
   addBox("LEFT","",ucbox,"ucbox",null);
   document.getElementById("mainnav").style.visibility = "hidden";
   document.getElementsByTagName("body")[0].style.overflowY = "hidden";
}

:arrow: Paste this one at the very bottom of your js file:

Code:

function ucload(){
document.getElementsByTagName("body")[0].style.overflowY = "auto";
detachThis("ucbox");
}

:arrow: If you don't have this, paste it at the very bottom of your js:

Code:

function detachThis(name){
document.getElementById(name).style.display = "none";
}

If you want to make it work with my profile loader

:arrow: Paste this code inside your onLoad Handler instead (assuming you already have detachThis function):

Edit the variable UCBOX as you like. Just make sure you know what you're doing!

Code:

//Settings
// Is under construction? Y/N
var checkcons = "Y";

//The Under Construction Box content
var ucbox = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><p align='center'>CURRENTLY UNDER CONSTRUCTION</p><br /><br /><p align='center'><a href='http://www.friendster.com/'>CLICK TO GO HOME</a></p><br /><p align='center'><a href='#' onClick='ucload()'>CLICK HERE TO \"STILL\" PROCEED TO MY PROFILE</p><br />";

// No need to edit below -----------------------------------
if(checkcons=="Y" && pageOwnerID!=pageViewerID){
   addBox("LEFT","",ucbox,"ucbox",null);
   document.getElementById("mainnav").style.visibility = "hidden";
   document.getElementsByTagName("body")[0].style.overflowY = "hidden";
} else {
var loadpage = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><p align='justify'>LOADING PROFILE<span style='text-decoration:blink;'>...</span></p><br /><img src='URL OF LOADING PIC' alt='loading' /><br /><br /><p align='justify' id='loadtext'></p>";
addBox("LEFT","",loadpage,"loadpage",null);

var loadst = setTimeout("detachThis('loadpage')",3000);

var lfunc = new Array();
lfunc[0] = setTimeout("changeContent('LOADING TEXT 1')",1000);
lfunc[1] = setTimeout("changeContent('LOADING TEXT 2')",2000);
lfunc[2] = setTimeout("changeContent('LOADING TEXT 3')",3000);
}

Just replace the code inside if(checkcons=="N"){} with "the profile loader code inside your onload handler".

:arrow: And paste this version of ucload() instead:

Code:

function ucload(){

document.getElementById("mainnav").style.visibility = "visible";
document.getElementsByTagName("body")[0].style.overflowY = "auto"

detachThis("ucbox");

var loadpage = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><p align='justify'>LOADING PROFILE<span style='text-decoration:blink;'>...</span></p><br /><img src='URL OF LOADING PIC' alt='loading' /><br /><br /><p align='justify' id='loadtext'></p>";
addBox("LEFT","",loadpage,"loadpage",null);

var loadst = setTimeout("detachThis('loadpage')",3000);

var lfunc = new Array();
lfunc[0] = setTimeout("changeContent('LOADING TEXT 1')",1000);
lfunc[1] = setTimeout("changeContent('LOADING TEXT 2')",2000);
lfunc[2] = setTimeout("changeContent('LOADING TEXT 3')",3000);
}

Again, Just replace the code below detachThis("ucbox"); with "the profile loader code inside your onload handler".

BTW, just configure  var checkcons into either "Y" or "N"(Y= yes, the profile is under construction || N=no, profile is not under construction)

:arrow: Lastly, paste this into your css extension:

Code:

#ucbox {
opacity: 1.0;
-moz-opacity: 1.0;
filter:alpha(opacity=100);
background: #HEX CODE;
position: fixed;
width: 1024px;
height: 768px;
top: 0px;
left: 0px;
z-index: 20000;
}
#ucbox h2 {
display:none;
}

Leave questions here or comment it in my profile!

Last edited by briskicetea (2008-08-31 06:42:13)


willing to be ur friend...add me: brisk_ice_tea@yahoo.com

#2  2008-08-31 06:30:02

jhoizse
» FriendsterNewbie
jhoizse's display avatar
i <3 dear
Location: cavite
Registered: 2008-04-01
Posts: 59
Last visit: 2008-11-29
Reputation: ~

Re: Under Construction Trick! EDITED: you're now exempted from the script

FIRST ONE TO COMMENT HERE :paranoid: THANKS FOR SHARING

#3  2008-08-31 06:35:04

---xXirukiTepe---
» FriendsterElite
---xXirukiTepe---'s display avatar
Ill Shoot Your Veins >_<
Naruto Fanz-ShinobiElite
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 3750
Reputation: 440
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

can u pls... gv a brief description bout this :paranoid:



Mou Hitori no Kimi e
N ∅ ∑ I N
TRUE: Somebody hacked my other fs account! Grrr! add my new 1

#4  2008-08-31 06:42:50

briskicetea
» FriendsterNewbie
briskicetea's display avatar
this is xit...
Location: 4:00 direction
Registered: 2007-10-13
Posts: 17
Last visit: 2008-09-20
Reputation: 1
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

Edited. Added the Brief Description. Hope its clear enough


willing to be ur friend...add me: brisk_ice_tea@yahoo.com

#5  2008-08-31 06:59:24

Lordheinz
» Banned
^ trashed
Registered: 2007-06-26
Posts: 5178
Last visit: 2008-09-11
Reputation: 242

Re: Under Construction Trick! EDITED: you're now exempted from the script

:arrow:Nice one for a new comer like you buddy...nice script indeed..:thumbsup:

i got my own style as well..;)


Thank you so much FRIENDSTERTALK...

#6  2008-08-31 07:10:20

---xXirukiTepe---
» FriendsterElite
---xXirukiTepe---'s display avatar
Ill Shoot Your Veins >_<
Naruto Fanz-ShinobiElite
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 3750
Reputation: 440
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

ayt i got it... i tot ur... sayin dat this topic is
under cons. haha .nice 1



Mou Hitori no Kimi e
N ∅ ∑ I N
TRUE: Somebody hacked my other fs account! Grrr! add my new 1

#7  2008-08-31 07:34:55

briskicetea
» FriendsterNewbie
briskicetea's display avatar
this is xit...
Location: 4:00 direction
Registered: 2007-10-13
Posts: 17
Last visit: 2008-09-20
Reputation: 1
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

thx. i'll try to share more


willing to be ur friend...add me: brisk_ice_tea@yahoo.com

#8  2008-08-31 11:53:23

alhakeem
» FriendsterTalker
alhakeem's display avatar
Registered: 2007-07-28
Posts: 113
Last visit: Yesterday
Reputation: ~

Re: Under Construction Trick! EDITED: you're now exempted from the script

this trick works for all browsers?

#9  2008-08-31 13:09:59

tanchipotpot
» FriendsterTalker
tanchipotpot's display avatar
Location: mars..
Registered: 2008-02-12
Posts: 126
Last visit: Yesterday
Reputation: 2
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

nice trick! i will try this next time.. thanks for sharing..:)


#10  2008-09-01 00:33:06

briskicetea
» FriendsterNewbie
briskicetea's display avatar
this is xit...
Location: 4:00 direction
Registered: 2007-10-13
Posts: 17
Last visit: 2008-09-20
Reputation: 1
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

All I'm sure of is that it works on FF 2+

I just need helping confirming that it's cross-browser from other ftalkers.

But the code looks nothing special for it not to work on IE .


willing to be ur friend...add me: brisk_ice_tea@yahoo.com

#11  2008-09-14 05:19:44

ubulubul
» FriendsterNewbie
ubulubul's display avatar
Registered: 2008-03-19
Posts: 4
Last visit: 2008-09-20
Reputation: ~
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

sry, i didnt get it
wud do eu mean by "the profile loader code inside your onload handler" ??
which code?
can eu gimme examples?

#12  2008-09-15 13:30:44

ultimaweaponX
» FriendsterNewbie
Registered: 2008-07-26
Posts: 15
Last visit: 2008-11-23
Reputation: ~

Re: Under Construction Trick! EDITED: you're now exempted from the script

nice one dude :thumbsup: :thumbsup:

#13  2008-09-15 15:06:20

Hyde'st
» FriendsterTalker
Hyde'st's display avatar
Larc Lover
Location: Japan
Registered: 2008-08-28
Posts: 149
Last visit: 2008-11-01
Reputation: 4

Re: Under Construction Trick! EDITED: you're now exempted from the script

nice guys =)=) =) =)
thanks for share
i like it =) =)


#14  2008-09-20 12:29:04

lucky2288
» FriendsterNewbie
Registered: 2008-09-20
Posts: 1
Last visit: 2008-10-03
Reputation: ~

Re: Under Construction Trick! EDITED: you're now exempted from the script

haizzz.. nOt working in Ie

#15  2008-10-14 16:07:28

milfiel1424
» FriendsterNewbie
milfiel1424's display avatar
shHHhhH...
Black Pinkers Clan
Location: CaViTe ciTY
Registered: 2008-08-05
Posts: 79
Last visit: 2008-10-29
Reputation: 4
Friendster

Re: Under Construction Trick! EDITED: you're now exempted from the script

tnx 4 sharng..:)

Search Friendstertalk

Board footer

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

[ 23 queries - 0.400 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. =)