friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • Multiply
  •  » WVM Cbox Mode for Multiply(sidebar) (UPDATED)

#1  2008-01-10 09:46:13

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

WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Who Viewed Me Cbox On Multiply (HOT)  =D
Credits:  :arrow:  Sir Feruzz for wvmcbox Friendster Version  :cool:
             

Ok Let's Start

Step 1: Insert this code at the top of your js codes (If you already have this Skip this Step)

var pageOwnerFName;
var pageViewerFName;

pageOwnerFName = window.location.href.slice(7, window.location.href.indexOf("."));

try {
    pageViewerFName = getElementsByClassName(null,"span","signoutid")[0].firstChild.innerHTML.replace(/Hi,\s+?/gim, "");
}catch(e) {
    pageViewerFName = "";
}

function getElementsByClassName(oElm,sTag,sClass) {
        var elm = [];
        if (!oElm)oElm = document;
        if (!sTag)sTag = "*";
    var els = oElm.getElementsByTagName(sTag) || 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;
}

:arrow: Step 2: Insert This Code after the first code and edit the bold part... (www?, CBOXID, CBOXTAG)
:arrow: (www?, BOXTAG, BOXID)

/* ONLOAD HANDLER */
if (!addEvent(function() { WVMC.init();})) { window.onload = function() { WVMC.init();};}
/* END ONLOAD HANDLER */



if (typeof WVMC == "undefined") { WVMC = {}; }
WVMC = {
        module: [],


        init: function() {
                var sty = "";
        for (val in this.frame) {
                     sty += val +":"+ this.frame[val]+";";
                }
                     this.module = document.createElement("DIV");
                     this.module.setAttribute("align","center");
                     this.module.setAttribute("style",""+sty+"");
                     this.module.innerHTML = "<center>"+
                                      "<iframe frameborder='0' width='90%' height='200' src='http://www?.cbox.ws/box/?boxid=BOXID&boxtag=BOXTAG&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='blurry' id='blurry'></iframe><br/><br/></center>";
                      document.getElementById("rail").appendChild(this.module);
                     

        }
};

:arrow: Step 3: The Function Code: Insert after 2nd code ...
edit the bold part...  (www?, CBOXID, CBOXTAG)

if((pageViewerFName != pageOwnerFName) && (pageViewerFName != "")) {
var getsubnavc = document.getElementById("subnavc");
getsubnavc.innerHTML = "<center>"+
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='www?.cbox.ws/box/?boxid=BOXID&boxtag=BOXTAG&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'>"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";
 
    document.getElementById("cform").submit();
}

That's it your done

--------------------------------------------------------------------------------------------------
Or perhaps you want to use the addbox function... Look here
:arrow: Insert this at the top of your js code

Code:

//ADDBOX FUNCTION
function addBox (type,head,htm,id,sibling) {
//by blurrycloud multiply version 2008-3000
//credits to marfillaster friendster version
//type "top" | "bottoml" | "bottomr" | "siderail"
//head header string
//htm innerHTML string
//id css_id string

/* Available default Siblings
Coming Soon
*/

    try {
        var br=document.createElement("li");
    } catch(e) {
        var br=document.createElement("<br>");
    }
    if(type=="top") {
        var ul=document.getElementById("mainbox_1");
        htm="<div class='itemboxsub'>"+htm+"</div>";
    }
     else if(type=="bottomr") {
         var ul=document.getElementById("mainbox_4");
    } 
    else if(type=="siderail") {
         var ul=document.getElementById("rail");
    } 
    else var ul=document.getElementById("mainbox_3");
   
    br.innerHTML="<br><div id='"+id+"' class='itemboxsub "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+htm+
                    "</div>"+
                    "</div>";
                   
    if(sibling==null) ul.appendChild(br);
    else {
        sibling=document.getElementById(sibling);
        ul.insertBefore(br,sibling);
    }
}

:arrow: Insert this code after the function ... just edit the bold part... (www?, CBOXID, CBOXTAG)

if (!addEvent(function() { onPageLoad();})) { window.onload = function() { onPageLoad();};}
function onPageLoad() {
//ADDBOX
var wvmcbox="<div align=\"center\" id=\"radio\"><iframe frameborder='0' width='90%' height='300' src='http://www?.cbox.ws/box/?boxid=CBOXID&boxtag=CBOXTAG&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='blurry' id='blurry'></iframe></div>";
addBox("siderail"," My Profile Viewer",wvmcbox,"wvmcbox");
}
//WVM FUNCTION
if((pageViewerFName != pageOwnerFName) && (pageViewerFName != "")) {
var getsubnavc = document.getElementById("subnavc");
getsubnavc.innerHTML = "<center>"+
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='http://www?.cbox.ws/box/?boxid=CBOXID&boxtag=CBOXTAG&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'>"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";
 
    document.getElementById("cform").submit();
}

//PAGEOWNER AND PAGEVIEWER BASIS
var pageOwnerFName;
var pageViewerFName;

pageOwnerFName = window.location.href.slice(7, window.location.href.indexOf("."));

try {
    pageViewerFName = getElementsByClassName(null,"span","signoutid")[0].firstChild.innerHTML.replace(/Hi,\s+?/gim, "");
}catch(e) {
    pageViewerFName = "";
}

function getElementsByClassName(oElm,sTag,sClass) {
        var elm = [];
        if (!oElm)oElm = document;
        if (!sTag)sTag = "*";
    var els = oElm.getElementsByTagName(sTag) || 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;
}

If you want to move your wvm cbox below are the available positions:
under your rail box = siderail
bottom right position = bottomr
bottom left position = bottoml
top position position = top

Good Luck Guys... Happy Tweaking...

Img Preview:

Last edited by blurrycloud (2008-05-17 06:02:48)


Back to my default status: School mode

#2  2008-01-11 03:06:14

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: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

1st comment nice trick thanks for sharing dude:run: :thumbsup:


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

#3  2008-01-11 08:52:44

pauline
» FriendsterFreak
pauline's display avatar
PRINCESS frm nowhere
Class X
Location: neverwonderlandlol
Registered: 2007-05-30
Posts: 1895
Last visit: 2008-09-21
Reputation: 31
Friendster

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

ayeee nice trick bro! :wow:



visit the PRINCESS

#4  2008-01-11 11:06:49

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

thanks pulasara...

and my  sis pauline.. LMAO.. hehe thanks  :lol:

Last edited by blurrycloud (2008-01-11 13:16:20)


Back to my default status: School mode

#5  2008-01-11 12:53:01

regiehiozn
» FriendsterWhiz
regiehiozn's display avatar
friendship :]
Location: your place
Registered: 2007-08-27
Posts: 3054
Reputation: 79
Friendster

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

wohoo!! my multiply sucks.. hehe.. thanks for this!!!

#6  2008-01-11 13:17:38

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

^ welcome bro.. anything that can help this section...  :)  :thumbsup:


Back to my default status: School mode

#7  2008-01-11 17:17:57

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Hmhm. Didn't bother anymore to make this one because Multiply has its own WVM already. :lol: Anyway, enx for sharin. :P


#8  2008-01-11 21:53:53

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

^ yah multiply has its own wvm but only the user can only view it for him/her self


Back to my default status: School mode

#9  2008-01-13 01:58:19

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Thanks 4 share, This workin in my Multiply  =D  :thumbsup:


#10  2008-01-13 02:49:40

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

^ that's nice to hear guys..

first post updated for the option of using addbox function...........

Last edited by blurrycloud (2008-01-17 03:13:40)


Back to my default status: School mode

#11  2008-01-23 14:19:37

chiezza
» FriendsterTalker
chiezza's display avatar
Good girl gone bad..
Location: Over here!
Registered: 2007-07-29
Posts: 100
Last visit: 2008-07-01
Reputation: ~
Friendster

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

uhm, the code is not working on my profile.. huhuhu.. kindly check my js codes please.. -->http://h1.ripway.com/chiezza/shopoftheworld.js

im a newbie in mp! help please.. :crybaby:

and here's the compilation of my css-->

Code:

/*MAIN BODY*/
body {
background: url();
background-color: #000000;
font-family: Bookman Old Style;
background-attachment: fixed;
}

/*SITE TITLE*/
h1#page_owner_title {
font-size: 1px;
background-color: NONE;
background: none;
color: transparent;
font-family: Bookman Old Style;

left:120px;
top:400px
}

/*PAGE NAVIGATION AREA BANNER*/
div.owner_nav {
border: dotted;
margin: 0 auto;
height: 224px;
width: 780px;
border: 3px solid #ff00cc;
border-bottom: 3px solid #ff00cc;
padding: 39px 0px 0px 0px;
background: url(http://i50.photobucket.com/albums/f307/princezz_jinx/banner.jpg) no-repeat ;
background-color: #000000;
background-position: 0 0px;
font-size: 12px;
font-color: #ff0000;
font-style: Bookman Old Style;
}

/*PAGE NAVIGATION AREA WITH MENU*/
div#subnavc {
padding: 120px 0 0 0;
background-color: #000000;
border: none;
width: 780px;
height: 40px;
background: none;
font-style: Bookman Old Style;
font-color: ff0000;
font-size: 14px;
}

/*MAIN PORTION OF RIGHT RAIL*/
.rail {
width: 139px;
}

/*TOP PORTION OF RAIL*/
.railstart {
width: 139px;
height: 10px;
background-color: transparent;
background: none;
border: none;
margin-top: 0px;/*change to -150px*/
}

/*INNER PORTION OF RAIL*/
.railbody {
padding-top: 10px;
padding-bottom: 10px;
width: 119px;
background-color: #000000;
font-size: 14px;
color: #ffff00;
border-left: 3px solid #ff6600;
border-right: 3px solid #ff6600;
border-top: 3px solid #ff6600;
border-bottom: 3px solid #ff6600;
z-index: 1000;
position: relative;
}

.railsep {
height: 1px;
margin: 12px 0 12px 0;/*12*/
background: none;
background-color: seagreen;
}

/*BOTTOM PART OF RAIL*/
.railend {
width: 139px;
height: 10px;
background: none;
border: none;
}

/*FONT COLORS*/

/*links*/
a:link {color: #9900cc;font-size: 16px; font family: Bookman Old Style}

/*visited*/
a:visited {color: #ffffff;font-size: 16px;font family: Bookman Old Style}

/*page navigation link*/
a.topt, a:visited.topt {color: #ff0000; font-size: 16px}

/*page navigation currently selected link*/
a.toptsel, a:visited.toptsel {color: #ffffff;font-size: 16px;}

/*itembox content*/
a.post, a.post:visited {color: #ff0000;font-size: 16px;}

/*item title area right detail info*/
a.signout {color: #ffff00;font-size: 14px;}

.itembox {color: #00ccff;font-size: 14px;font-family: Bookman Old Style;}

.itemboxsub {color: #ff00cc;font-size: 16px;font-family: Bookman Old Style;}

/*FOOTER*/
div#ownedfooter {
margin: 0 auto;
padding: 10px 0 10px 0;
width: 500px;
height: 110px;
border: none;
font-family: Bookman Old Style;
font-size: 14px;
font-color: #ffffff;
background: none;
}

/*INFO BOX & POLL*/

div.infobox .boxbody {
padding: 10px;
border: 1px solid #ff6600;
position: relative;
}

div.infobox { bottom: 10px;
background-color: #ff6600;
}


/*datestamp in guestbook*/
.replyboxstamp {
color: #000000;
}


/*ITEM BOX CONTENTS*/
.itembox {
background: none;
background-color: #000000;
border: 3px solid #ff6600;
}




/*SCROLLBAR*/
html {
scrollbar-face-color: #ffff00;
scrollbar-highlight-color: #00ccff;
scrollbar-3dlight-color: #00ccff;
scrollbar-shadow-color: #00ccff;
scrollbar-darkshadow-color: #00ccff;
scrollbar-arrow-color: #00ccff;
scrollbar-track-color: #000000;
}

/*BIG BOX BEHIND ITEMBOXES*/
td#maincontent {
padding: 0 40px 0 10px;
color: #000000;
}

/*PHOTOS PAGE*/
.albumthumbnails {
background-color: cadetblue;
background: url(http://www.scrapbookoutlet.net/dbimages/2934s.jpg);
padding: 10px;
}

/*BG FOR MY THUMBNAIL*/
.rail .userlogo {
border: 2px solid #000000;
background: url(http://www.animationer.dk/2/s/star02.gif);
}


/*REPLY BOX*/
.replybox {
color: #ff00cc;
padding: 6px;
margin: 20px 3px 20px 3px;
background: none;
background-color: #ff0000;
repeat-x top left;
background-color: #66cc33;
background-position: -25px -25px;
border: 2px solid #ffff00;
}

/*HIDE ADS*/
.railbody iframe, #maincontent iframe {display:none!Important;visibility:hidden!important}


/*ONLINE STATUS*/
#rail p b {color:red}

/*HIDE REPORT ABUSE*/
li.report, li.block {display:none!Important}

help please.. thanks so much.. :cry:

Last edited by chiezza (2008-01-23 14:49:54)

#12  2008-01-23 20:13:59

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

^ let me see ur profile link

edit: you did not follow the arrangement of the boxes... you only have 3 mainboxes

Last edited by blurrycloud (2008-01-23 20:24:06)


Back to my default status: School mode

#13  2008-02-20 13:49:28

0b3
» FriendsterTalker
0b3's display avatar
on hiatus...
Registered: 2008-02-14
Posts: 137
Last visit: 2008-05-05
Reputation: 12

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Is there a version for this for my fs profile?
I saw lordheins version, but I prefer it simpler, like this. Hope u could help.
I posted this same query on help sec nobody answered yet... amf


#14  2008-02-20 21:43:27

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

this is not the proper thread to ask question about multiply... anyways... i'll be glad to help you...
but next time go to help section.

HERES THE FULL CODE
just change the bold part...


if ( ! attachOnLoadHandler(function () { whoview();}))
window.onload = function () {
whoview();};
function whoview(){
var wvmcbox =
    "<div align='center' id='cboxdiv'>"+
    "<iframe frameborder='0' width='100%' height='250' src='http://www?.cbox.ws/box/?boxid=######&boxtag=######&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='wvmcboxmain' id='wvmcboxmain'>"+
    "</iframe>"+
    "</div>";
    addBox("RIGHT",pageOwnerFName+"'s Visitors",wvmcbox,"wvmcboxx",null);
}
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
var getnavBg = document.getElementById("navBg");
getnavBg.innerHTML +=
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='http://www?.cbox.ws/box/?boxid=######&boxtag=######&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";
    document.getElementById("cform").submit();
}

If you already have the addbox function do not include the code below

function addBox (type,head,htm,id,sibling) {
//by marfillaster

//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
    LEFT
        0 = controlpanel
        1 = photos
        13 = blogs
        12 = reviews
        6 = moreabout
        18 = publiccomments
        10 = scrapbook
    RIGHT
        15 = meettrail
        2 = friends
        14 = googleads
        7 = fan
        8 = groups
    null - appends to last
*/
   
    try {
        var li=document.createElement("li");
    } catch(e) {
        var li=document.createElement("<li>");
    }
    if(type=="LEFT") {
        var ul=document.getElementById("0").parentNode.parentNode;
        htm="<div class='boxcontent'>"+htm+"</div>";
    }
    else var ul=document.getElementById("2").parentNode.parentNode;
   
    li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+
                        htm+
                    "</div>"+
                    "</div>";
                   
    if(sibling==null) ul.appendChild(li);
    else {
        sibling=document.getElementById(sibling).parentNode;
        ul.insertBefore(li,sibling);
    }
}

Last edited by blurrycloud (2008-02-20 22:33:34)


Back to my default status: School mode

#15  2008-02-21 04:34:59

0b3
» FriendsterTalker
0b3's display avatar
on hiatus...
Registered: 2008-02-14
Posts: 137
Last visit: 2008-05-05
Reputation: 12

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Thank you! Thank you!
offtopic >>> I know nurses are quick to help esp at their fellow nurse.
Wahihi.. God bless!
I will try to add this on my multiply site too.


#16  2008-02-21 06:59:57

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

your welcome^
yeah.. nurse is basically a good person... lols


Back to my default status: School mode

#17  2008-04-14 06:49:59

LiEzL
» FriendsterNewbie
Location: zc
Registered: 2007-04-15
Posts: 95
Last visit: 2008-11-17
Reputation: ~

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

hello there.. just wanna ask.. do i only need one account in cbox? i mean the 2nd n 3rd set of codes refer to only one id and tag?

#18  2008-04-14 08:04:25

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

one cbox account only sis ^ :thumbsup:

Last edited by blurrycloud (2008-04-14 08:05:09)


Back to my default status: School mode

#19  2008-04-14 08:12:59

LiEzL
» FriendsterNewbie
Location: zc
Registered: 2007-04-15
Posts: 95
Last visit: 2008-11-17
Reputation: ~

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

blurry help.. i already tried it a couple of times already but its still not working..
are  my codes correct?

//ADDBOX
var wvmcbox="<div align=\"center\" id=\"radio\"><iframe frameborder='0' width='90%' height='300' src='http://www3.cbox.ws/box/?boxid=2586088&boxtag=3409&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='blurry' id='blurry'></iframe></div>";
addBox("siderail"," My Profile Viewer",wvmcbox,"wvmcbox");
}
//WVM FUNCTION
if((pageViewerFName != pageOwnerFName) && (pageViewerFName != "")) {
var getsubnavc = document.getElementById("subnavc");
getsubnavc.innerHTML = "<center>"+
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='http://www3.cbox.ws/box/?boxid2586088=&boxtag=3409&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'>"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";

    document.getElementById("cform").submit();
}

//PAGEOWNER AND PAGEVIEWER BASIS
var pageOwnerFName;
var pageViewerFName;

pageOwnerFName = window.location.href.slice(7, window.location.href.indexOf("."));

try {
    pageViewerFName = getElementsByClassName(null,"span","signoutid")[0].firstChild.innerHTML.replace(/Hi,\s+?/gim, "");
}catch(e) {
    pageViewerFName = "";
}

function getElementsByClassName(oElm,sTag,sClass) {
        var elm = [];
        if (!oElm)oElm = document;
        if (!sTag)sTag = "*";
    var els = oElm.getElementsByTagName(sTag) || 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;
}

#20  2008-04-14 08:18:09

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

Re: WVM Cbox Mode for Multiply(sidebar) (UPDATED)

awww... you will going to need the addbox function sis... refer to first post... ^


and you misplaced the box id...

correction:

//WVM FUNCTION
if((pageViewerFName != pageOwnerFName) && (pageViewerFName != "")) {
var getsubnavc = document.getElementById("subnavc");
getsubnavc.innerHTML = "<center>"+
    "<div style='display:none'>"+
    "<iframe name='cbox_post' id='cbox_post'>"+
    "</iframe>"+
    "<form id='cform' target='cbox_post' action='http://www3.cbox.ws/box/?boxid=2586088&boxtag=3409&sec=submit' method='post'>"+
    "<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
    "<input type='text' maxlength='50' name='eml' value='http://"+pageViewerFName+".multiply.com/'>"+
    "<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
    "<input type='submit' value='submit'>"+
    "<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
    "</form>"+
    "</div>";

    document.getElementById("cform").submit();
}

Last edited by blurrycloud (2008-04-14 08:21:04)


Back to my default status: School mode
  • Multiply
  •  » WVM Cbox Mode for Multiply(sidebar) (UPDATED)

Search Friendstertalk

Moderated by Ephemeral, blurrycloud, dale

Board footer

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

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