friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

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

ghettochild
ghettochild's display avatar
» FriendsterTalker
Location: Sydney
Registered: 2007-05-30
Posts: 129
Last visit: 2008-11-25
Reputation: ~
Friendster

Re: Add Box Short Script

i love this code:thumbsup:


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

simple_bone187
 tony stone
simple_bone187's display avatar
» FriendsterNewbie
its only me...
Location: cavite
Registered: 2007-09-14
Posts: 29
Last visit: 2008-09-18
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
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

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


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

simple_bone187
 tony stone
simple_bone187's display avatar
» FriendsterNewbie
its only me...
Location: cavite
Registered: 2007-09-14
Posts: 29
Last visit: 2008-09-18
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
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

Re: Add Box Short Script

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


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

yOnakyLe10
 yona
» FriendsterTalker
.. i'm back ! ;]
Location: at his side
Registered: 2006-10-15
Posts: 250
Last visit: 2009-01-01
Reputation: 2
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
 caaaarl (:
Hoshigaki's display avatar
» Promoter
Buriza-do Kyanon
The Scandalers
Location: Japan
Registered: 2008-05-20
Posts: 2823
Reputation: 302

Re: Add Box Short Script

pwede b to sa FF?


As soon as I get online,
I look for your name first.
When listening to a slow song,
Your face comes to my mind.
When I hear the phone ring,
I hope it's you calling. <3333

Please Visit:Plurk | Fss | | Multi

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

eileen04_girl
 #$%#$%
» FriendsterNewbie
Laymakers Society
Location: manila
Registered: 2007-05-17
Posts: 54
Last visit: 2009-01-04
Reputation: 3

Re: Add Box Short Script

gonna try dis one l8r

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

rexis28
 unknown
rexis28's display avatar
» FriendsterAddict
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 346
Last visit: Yesterday
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
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

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


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

hael
 †h¥™ [kiwi 'n pride]
hael's display avatar
» FriendsterTalker
i love †h¥
Location: Paranaque
Registered: 2007-08-22
Posts: 227
Last visit: Today
Reputation: 11
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
pedenski's display avatar
» FriendsterNewbie
Registered: 2007-09-15
Posts: 20
Last visit: 2008-09-27
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
 MARQUEE JHOVEN
markthespark47's display avatar
» Cursed Member
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
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

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)


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

rexis28
 unknown
rexis28's display avatar
» FriendsterAddict
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 346
Last visit: Yesterday
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
 NURDIN SYAFII
cahbagus_dw's display avatar
» FriendsterWhiz
—¤♥(¤ ÑúƒÃ ¤)♥¤— ‹
Executive Coder
Location: -D-E-S-K-T-O-P-
Registered: 2007-12-24
Posts: 3071
Reputation: 47
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

:penguin:==^----+__^===^=====

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

switpotato
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

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


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

rexis28
 unknown
rexis28's display avatar
» FriendsterAddict
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 346
Last visit: Yesterday
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
 .M.O.N.I.X.
switpotato's display avatar
» FriendsterWhiz
dcrazier dbetter bxtreme
Class X
Location: HubbieHubbieLand
Registered: 2007-05-23
Posts: 3071
Reputation: 303

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


   
my official site>>    http://switpotato.ucoz.com/
theres nothing wrong at making mistakes..
whats wrong is letting it stay as a mistake without the effort of making it right

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

rexis28
 unknown
rexis28's display avatar
» FriendsterAddict
Certified Lazy . . .
Location: Philippines
Registered: 2007-05-15
Posts: 346
Last visit: Yesterday
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)




Search Friendstertalk

Board footer

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

[ 11 queries - 0.065 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. =)