friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#81  2008-05-13 13:44:44

ghettochild
» FriendsterTalker
ghettochild's display avatar
Location: Sydney
Registered: 2007-05-30
Posts: 122
Last visit: 2008-08-17
Reputation: ~
Friendster

Re: Add Box Short Script

i love this code:thumbsup:


#82  2008-05-19 16:37:27

simple_bone187
» FriendsterNewbie
simple_bone187's display avatar
its only me...
Location: cavite
Registered: 2007-09-14
Posts: 29
Last visit: 2008-08-08
Reputation: ~

Re: Add Box Short Script

what if i want to put a new box " above " the friend box? :paranoid:




its only me.. let us be all we can be.............

#83  2008-05-19 16:44:02

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

then try it lol.. theres the code experiment with it.. dont expect for spoon feeding...
identify the id of meettrail.. subnav will do too.. just play with the codes maximize its use


   
        .. thnx Q ..kabit.. dai dai... muahhss

#84  2008-05-19 16:57:09

simple_bone187
» FriendsterNewbie
simple_bone187's display avatar
its only me...
Location: cavite
Registered: 2007-09-14
Posts: 29
Last visit: 2008-08-08
Reputation: ~

Re: Add Box Short Script

^:D ok.. thanks..

its because im a noob.. and ur an expert with these things .. thats why i didnt know.. :D sorry mam....




its only me.. let us be all we can be.............

#85  2008-05-19 16:58:58

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

de nada... just follow the instruction at first page... im not an expert lol..
im still  learning


   
        .. thnx Q ..kabit.. dai dai... muahhss

#86  2008-05-20 01:50:28

yOnakyLe10
» FriendsterTalker
.. i'm back ! ;]
Location: at his side
Registered: 2006-10-15
Posts: 250
Last visit: 2008-07-19
Reputation: 1
Friendster

Re: Add Box Short Script

can you please give me an example of the css need to use ? hehe . the modified one pls.

what's werong with this code ? T.T

Code:

#playlist {margin-bottom: 40px! important; border: 2px solid #99999! important;}

#87  2008-05-20 02:08:01

Hoshigaki
» Promoter
Hoshigaki's display avatar
The Scandalers
Registered: 2008-05-20
Posts: 2044
Last visit: 2008-08-27
Reputation: 180

Re: Add Box Short Script

pwede b to sa FF?



~ You`ll always be  part of me  ( 100% Sure )..
I am a part of you indefinitely ( Not sure na i am a part of you )
~ For Marjorie C. Tanael

#88  2008-05-20 02:17:21

eileen04_girl
» FriendsterNewbie
eileen04_girl's display avatar
waaah ahaha fav. word?
Laymakers Society
Location: everywhere
Registered: 2007-05-17
Posts: 36
Last visit: 2008-08-26
Reputation: 3
Friendster

Re: Add Box Short Script

gonna try dis one l8r


#89  2008-05-22 17:48:51

rexis28
» FriendsterAddict
rexis28's display avatar
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 342
Last visit: 2008-08-26
Reputation: ~
Friendster

Re: Add Box Short Script

ahmm... Ate Swit... can U Check my Code....

Code:

x1=document.createElement("div");
x1.id="playlist";
document.getElementById("2").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+'<object width='300' height='340'><param name='movie' value='http://media.imeem.com/pl/qtuqOLiCWv/'></param><param name='wmode' value='transparent'></param><param name='FlashVars' value='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></param><embed src='http://media.imeem.com/pl/qtuqOLiCWv/' type='application/x-shockwave-flash' width='300' height='340' wmode='transparent'FlashVars='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></embed><a href='http://www.imeem.com/whothehellami/playlist/jsIJE7iY/huwaw_music_playlist/'>HUWAW!!!</a></object>'

i flollowed ur step but it didnt work on m profile,,,,

and also the Css Thingy ^^

i hope this one is right :D

Code:

#playlist {margin-bottom: 40px! border 4px ridge #999999 important;}
#playlist h2 { text-align:center! font #999999 improtant;}



#90  2008-05-23 03:12:49

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

try to change the single quote to double:

+"<object width='300' height='340'><param name='movie' value='http://media.imeem.com/pl/qtuqOLiCWv/'></param><param name='wmode' value='transparent'></param><param name='FlashVars' value='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></param><embed src='http://media.imeem.com/pl/qtuqOLiCWv/' type='application/x-shockwave-flash' width='300' height='340' wmode='transparent'FlashVars='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></embed><a href='http://www.imeem.com/whothehellami/playlist/jsIJE7iY/huwaw_music_playlist/'>HUWAW!!</a></object>"


   
        .. thnx Q ..kabit.. dai dai... muahhss

#91  2008-05-23 06:33:12

hael
» FriendsterTalker
hael's display avatar
i love thee
Location: Paranaque
Registered: 2007-08-22
Posts: 171
Last visit: 2008-08-25
Reputation: 1
Friendster

Re: Add Box Short Script

dunno cant gv u a repu:(... but nywyz thanks a lot for this shortscrip addbox



♥i may forget what you said, but i will never forget how you made me feel♥

#92  2008-05-23 06:34:00

pedenski
» FriendsterNewbie
pedenski's display avatar
Registered: 2007-09-15
Posts: 20
Last visit: 2008-07-20
Reputation: ~

Re: Add Box Short Script

function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("0").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"COMPLETE EMBED CODE HERE / CHATBOX / SLIDE WHATEVER"
}
setTimeout("addbox()",1000)a

Do i need to save this as .js?

#playlist  {margin-bottom: 40px! important; border etc etc}
#playlist h2 { text-align:center! important; font etc etc! important}

and about his one, can i just include this on my css?

#93  2008-05-23 08:24:10

markthespark47
» Cursed Member
markthespark47's display avatar
Boyz Do Fall In Love
Location: Highway To Heaven
Registered: 2008-05-18
Posts: 38
Last visit: 2008-05-23
Reputation: ~
Friendster

Re: Add Box Short Script

Wow...Great Job...=)
Keep it up....
three thumbs up for u...:thumbsup::thumbsup::thumbsup:

#94  2008-05-23 11:13:05

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

pedenski wrote:

function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("0").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"COMPLETE EMBED CODE HERE / CHATBOX / SLIDE WHATEVER"  << edit this as well
}
setTimeout("addbox()",1000)a << remove the letter a
Do i need to save this as .js?

ans:
yes

pedenski wrote:

#playlist  {margin-bottom: 40px! important; border etc etc} << edit it okie
#playlist h2 { text-align:center! important; font etc etc! important}<< edit it okie
and about his one, can i just include this on my css?

ans:
yes

Last edited by switpotato (2008-05-23 11:15:01)


   
        .. thnx Q ..kabit.. dai dai... muahhss

#95  2008-05-23 12:49:12

rexis28
» FriendsterAddict
rexis28's display avatar
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 342
Last visit: 2008-08-26
Reputation: ~
Friendster

Re: Add Box Short Script

i also tried it to make the single qoute to double but.....

Code:

x1=document.createElement("div");
x1.id="playlist";
document.getElementById("2").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"<object width="300" height="340"><param name="movie" value="http://media.imeem.com/pl/qtuqOLiCWv/"></param><param name="wmode" value="transparent"></param><param name="FlashVars" value="backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666"></param><embed src="http://media.imeem.com/pl/qtuqOLiCWv/" type="application/x-shockwave-flash" width="300" height="340" wmode="transparent"FlashVars="backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666"></embed><a href="http://www.imeem.com/whothehellami/playlist/jsIJE7iY/huwaw_music_playlist/">HUWAW!!!</a></object>"

it didnt still work....hmm... can u check if it inflicts with this codes ate SwitPotAtO

Code:

var YMStatus;
try 
   {YMStatus = document.createElement("div");
   } 
catch (e)
   {YMStatus = document.createElement("<div>");
   } 
YMStatus.setAttribute("style","text-align:center;padding-top: 10px");
YMStatus.innerHTML = "<a href='ymsgr:sendIM?rexis28'><img border=0 src='http://opi.yahoo.com/online?u=rexis28&m=g&t=2'></a></div>";
document.getElementById("controlPanelButtons").parentNode.appendChild(YMStatus);

if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
    if(pageViewerID!="") SPAWNPIC.init();
}

if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [],

        init: function() {
            this.ajaxRequest("http://"+location.hostname+"/"+pageViewerID,SPAWNPIC.viewer,null);
        },

        viewer: function(htm) {
                if (htm.replace(/^\s*|\s*$/g,"") === null) {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (htm) {
                    var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    this.photo = "<div class=\"fitem1wrapper\">"+
                                 "<table class\"fitem1table\">"+
                                 "<tr><td class=\"itd\">"+
                                 "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+ 
                                 "<td class=\"dtd\"><ul class=\"data\">"+
                                 "<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+
                                 "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
                                 "Member Since: "+since+"<br>"+
                                 "Location: "+location+"</li>"+
                                 "</div></ul></td></tr></table></div>";
                                 SPAWNPIC.box("Hello "+name,this.photo,"spawnpic",/friends/i,"above");
                }
        },

        ajaxRequest: function(url,func,handler) {
                var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
                httprequest.onreadystatechange = function() {
                    if (httprequest.readyState == 4) {
                        if (httprequest.status == 200) {
                            func(httprequest.responseText,handler);
                        }            
                    }
                };
                httprequest.open("GET", url, true);
                httprequest.send(null);

        },

        box: function(head,code,id,sibling,x) {
                var sbdiv = document.createElement("div");
                sbdiv.className="commonbox "+id;
                sbdiv.id = id;
                if (!head) head = "";
                else head = "<h2>"+head+"</h2>";  
                sbdiv.innerHTML = head;
                sbdiv.appendChild(document.createElement("div"));
                sbdiv.getElementsByTagName("div")[0].id ="content_"+id;
                sbdiv.getElementsByTagName("div")[0].innerHTML = code;
                var sbli = document.createElement("LI");
                sbli.appendChild(sbdiv); 
                if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
                else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
                else if (x == "above") {
                        var ul = this.getModuleByClassName(sibling)[0];
                        ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
                }
        },

        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;
        }
};

its only 2 kinds of codes...

The YM Status UNder Control Panel  And VIewers Pic Above the Friendlist....

does it inflict?




#96  2008-05-23 16:19:56

cahbagus_dw
» FriendsterWhiz
cahbagus_dw's display avatar
—¤♥(¤ ÑúƒÃ ¤)♥¤— ‹
Rockstars
Location: -D-E-S-K-T-O-P-
Registered: 2007-12-24
Posts: 2566
Reputation: 36
Friendster

Re: Add Box Short Script

thanks 4 share :thumbsup:
but can't display border of the box





sak bejo-bejone wong kang bodho
iseh bejo wong kang pinter lan waspodo

#97  2008-05-23 17:08:03

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

edit the css part add border codes
eg:
#playlist  {margin-bottom: 40px! important; border: 4px solid red}<< edit this part
#playlist h2 { text-align:center! important; font etc etc! important}<<edit this part


   
        .. thnx Q ..kabit.. dai dai... muahhss

#98  2008-05-23 18:16:55

rexis28
» FriendsterAddict
rexis28's display avatar
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 342
Last visit: 2008-08-26
Reputation: ~
Friendster

Re: Add Box Short Script

i hope u can help me on the Thing i Posted Ate Swit.....




#99  2008-05-23 19:05:00

switpotato
» FriendsterWhiz
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 2649
Reputation: 223

Re: Add Box Short Script

Code:

function addbox(){
x1=document.createElement("div");
x1.id="playlist";
document.getElementById("2").parentNode.appendChild(x1);
playlist.innerHTML="<h2>My Playlist</h2>"
+"<object width='300' height='340'><param name='movie' value='http://media.imeem.com/pl/qtuqOLiCWv/'></param><param name='wmode' value='transparent'></param><param name='FlashVars' value='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></param><embed src='http://media.imeem.com/pl/qtuqOLiCWv/' type='application/x-shockwave-flash' width='300' height='340' wmode='transparent'FlashVars='backColor=000000&primaryColor=999999&secondaryColor=4d4d4d&linkColor=666666'></embed><a href='http://www.imeem.com/whothehellami/playlist/jsIJE7iY/huwaw_music_playlist/'>HUWAW!!</a></object>"
}
setTimeout("addbox()",1000);


var YMStatus;
try 
   {YMStatus = document.createElement("div");
   } 
catch (e)
   {YMStatus = document.createElement("<div>");
   } 
YMStatus.setAttribute("style","text-align:center;padding-top: 10px");
YMStatus.innerHTML = "<a href='ymsgr:sendIM?rexis28'><img border=0 src='http://opi.yahoo.com/online?u=rexis28&m=g&t=2'></a></div>";
document.getElementById("controlPanelButtons").parentNode.appendChild(YMStatus);

if (!attachOnLoadHandler(function() { mainVpic();})) window.onload = function() { mainVpic();};
function mainVpic() {
    if(pageViewerID!="") SPAWNPIC.init();
}

if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
        photo: [],

        init: function() {
            this.ajaxRequest("http://"+location.hostname+"/"+pageViewerID,SPAWNPIC.viewer,null);
        },

        viewer: function(htm) {
                if (htm.replace(/^\s*|\s*$/g,"") === null) {

                    alert("VMP Error: Unable to parse the photo!");
                    return;
                }else if (htm) {
                    var name = /controlpanel_header">([\S\s]+?)<a\s+?name="controlpanel/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var photo = /imgblock200"><a[\S\s]*?>([\S\s]+?)<\/a><\/div>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var status = /data">([\S\s]+?)<\/span><\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var since = /Since\:\s+?<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    var location = /Location\:\s+<\/span>([\S\s]+?)<\/li>/i.exec(htm)[1].replace(/^(\d)$/,"0$1");
                    this.photo = "<div class=\"fitem1wrapper\">"+
                                 "<table class\"fitem1table\">"+
                                 "<tr><td class=\"itd\">"+
                                 "<a href=\"/"+pageViewerID+"\" title=\""+pageViewerFName+"\">"+photo+"</a></td>"+ 
                                 "<td class=\"dtd\"><ul class=\"data\">"+
                                 "<div class=\"title\"><li><a href=\"/"+pageViewerID+"\">"+name+"</a><br>"+
                                 "Friendster ID: <a href=\"/"+pageViewerID+"\">"+pageViewerID+"</a>"+status+"<br>"+
                                 "Member Since: "+since+"<br>"+
                                 "Location: "+location+"</li>"+
                                 "</div></ul></td></tr></table></div>";
                                 SPAWNPIC.box("Hello "+name,this.photo,"spawnpic",/friends/i,"above");
                }
        },

        ajaxRequest: function(url,func,handler) {
                var httprequest = window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
                httprequest.onreadystatechange = function() {
                    if (httprequest.readyState == 4) {
                        if (httprequest.status == 200) {
                            func(httprequest.responseText,handler);
                        }            
                    }
                };
                httprequest.open("GET", url, true);
                httprequest.send(null);

        },

        box: function(head,code,id,sibling,x) {
                var sbdiv = document.createElement("div");
                sbdiv.className="commonbox "+id;
                sbdiv.id = id;
                if (!head) head = "";
                else head = "<h2>"+head+"</h2>";  
                sbdiv.innerHTML = head;
                sbdiv.appendChild(document.createElement("div"));
                sbdiv.getElementsByTagName("div")[0].id ="content_"+id;
                sbdiv.getElementsByTagName("div")[0].innerHTML = code;
                var sbli = document.createElement("LI");
                sbli.appendChild(sbdiv); 
                if (!x) this.getModuleByClassName(sibling)[0].parentNode.parentNode.appendChild(sbli);
                else if (x == "below") this.getModuleByClassName(sibling)[0].parentNode.appendChild(sbli);
                else if (x == "above") {
                        var ul = this.getModuleByClassName(sibling)[0];
                        ul.parentNode.parentNode.insertBefore(sbli,ul.parentNode);
                }
        },

        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;
        }
};


   
        .. thnx Q ..kabit.. dai dai... muahhss

#100  2008-05-24 02:49:42

rexis28
» FriendsterAddict
rexis28's display avatar
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 342
Last visit: 2008-08-26
Reputation: ~
Friendster

Re: Add Box Short Script

wenks..... i didnt use the

Code:

setTimeout("addbox()",1000);

i thought it is not important if ur a IE user  :lol:
and also its position... i put it below not above.... really really thnx on it....

thnx so much about it Ate Swit..... ^^

+1 Repu!!! woot......:eh::thumbsup: :eh::thumbsup: :eh::thumbsup:

Ur The 1st One I Gave Repu :D

Last edited by rexis28 (2008-05-24 02:52:41)




Board footer

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

[ 31 queries - 2.083 second ]

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. =)