Pages: 1..1234567

  2008-04-25 22:19:08

Refresh/Reload
» FTalkAddict
FTalk Level: zero
332
0
1969-12-31

Re: [quote]the trick still works... but due to some friendster module updates your addbox function must be replaced by an updated newBox. see some post by JacktheRipper... (use [b]Search[/b] nav above)[/q

[quote=mabuhay]finaly it works 2 my page thanks 4 sharing keep it up remarks: :thumbsup::thumbsup:[/quote] [b]@ mabuhay[/b]... good for you!! :thumbsup: [b]@ bryan[/b] I'm not sure bryan... I think you really need the addbox function for this code... If you have other addbox function... this part must comply with your addbox codes... coz there's a lot of addbox functions version now.. addBox("RIGHT","Friends",htm,"frbox","14"); not so sure but try this... if you don't need the WVM tracker... using just the addbox and ajax request function... btw... my addbox is from version2 trackers... [quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; function onProfileLoad() { //other codes here[b];[/b] //other sidebox codes here[b];[/b] //other codes here[b];[/b] [b]Ffetcher.init();[/b] [b]}[/b] function addBox (type,head,htm,id,sibling) { 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); } } function processAjaxRequest(type,url,cont,param,handler,handlerparam) { if(handlerparam) handlerparam=","+handlerparam; else handlerparam=""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(handler) eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+handler+"(httprequest.responseText"+handlerparam+");}}"); httprequest.open( type, url, cont); if(type=="POST") { httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); httprequest.setRequestHeader("Content-length", param.length); httprequest.setRequestHeader("Connection", "close"); } httprequest.send(param); } /*end of addbox codes*/ [b]//random friends[/b] function randOrd(){ return (Math.round(Math.random())-0.5); } if (typeof Ffetcher == "undefined") { Ffetcher = {}; } Ffetcher = { friends: new Array(), pages: null, maxfriends: null, container: null, cached: new Array(), display: 6, base_domain: "http://profiles.friendster.com", init: function() { var num=document.links; for(var x=0;x<num.length;x++) { if (num[x].href.match(/\/friends\/[\d]+?/)) { var t=/\(([\d]+?)\)/; this.maxfriends=t.exec(num[x].innerHTML)[1]; break; } } this.pages=Math.floor(this.maxfriends/30); var htm="<br><center><marquee behavior='scroll' direction='down' height='300' scrollamount='7' onMouseOver='stop()' onMouseOut='start()'><div align='center' id='fcontainer'></div></marquee></center>"; [b]addBox("RIGHT","Friends",htm,"frbox","14");[/b] document.getElementById("content_frbox").innerHTML+="<center><div class='viewall'><a href='javascript: void(Ffetcher.more())'>Click To View More Random Friends</a></div></center>"; this.container=document.getElementById("fcontainer"); this.fetch(0); }, fetch: function(page) { document.getElementById("frbox").childNodes[0].innerHTML="[b]<center>Pls <img src=\"http://img239.imageshack.us/img239/554/loadxu6.gif\"> wait..</center>[/b]"; processAjaxRequest("GET",this.base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page); }, show: function() { this.container.innerHTML=""; this.friends.sort(randOrd); for(var x=0;x<this.display;x++) { this.container.innerHTML+=this.friends[x]; } }, more: function() { if(this.cached.length<(this.pages+1)) { var temp; do { temp=Math.ceil(Math.random()*(this.pages)); }while(this.cached.toString().indexOf(":"+temp+":")!=-1); this.fetch(temp); } else { this.show(); } } }; function parseFriends(htm,page) { if(!htm){ Ffetcher.fetch(page); return; } var r= /search1\x22>[\S\s]+?paginglinksmodule\x22>([\S\s]+?)<div class=\x22paginglinksmodule/; var temp=r.exec(htm)[1]; temp=temp.match(/<div class="flogriditem">[\S\s]+?<\/div>\n<\/div><\/div>/g); for(var x=0;x<temp.length;x++) { temp[x]=temp[x].replace("samsg_icon.gif>","samsg_icon.gif />"); temp[x]=temp[x].replace(/<a /g,"<a target=_blank "); if(!temp[x].match("nophoto")) Ffetcher.friends.push(temp[x]); } Ffetcher.cached.push(":"+page+":"); document.getElementById("frbox").childNodes[0].innerHTML="[b]Elite's Random Gallery[/b]"; Ffetcher.show(); }; //other codes here[/quote]

Pages: 1..1234567

Board footer

© 2025 F Talk

Current time is 12:56

[ 12 queries - 0.016 second ]
Privacy Policy