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: 121
Last visit: 2008-06-28
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-06-30
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
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

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



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#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-06-30
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
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

Re: Add Box Short Script

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



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#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-06-13
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
R u ready??
Eptok Pinoy Scandalers
Location: Philippines
Registered: 2008-05-20
Posts: 1273
Last visit: Yesterday
Reputation: 97

Re: Add Box Short Script

pwede b to sa FF?


#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: 35
Last visit: 2008-06-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-06-25
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
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

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>"



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

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

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

Re: Add Box Short Script

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




♥ILOV3THEE♥

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

pedenski
» FriendsterNewbie
pedenski's display avatar
Registered: 2007-09-15
Posts: 20
Last visit: 2008-06-08
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
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

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)



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#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-06-25
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
» FriendsterManiac
cahbagus_dw's display avatar
—¤♥(¤ ÑúƒÃ ¤)♥¤— ‹
Location: -D-E-S-K-T-O-P-
Registered: 2007-12-24
Posts: 839
Last visit: 2008-06-30
Reputation: 12
Friendster

Re: Add Box Short Script

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



bangunkanku dari mimpi ini tuk meraihmu cinta


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

switpotato
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

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



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#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-06-25
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
» FriendsterAgent
switpotato's display avatar
dcrazier dbetter bxtreme
Class X
Registered: 2007-05-23
Posts: 2176
Reputation: 121

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



never fall in love to a stranger whom u havent met in person
hu knows if they r worst  than they r trying to project here.
i learnd my lesson very well ... lol

#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-06-25
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
Based on PunBB © 2002–2008 Rickard Andersson

[ 31 queries - 0.337 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. =)