I think we had have a new Ken here..
a cool trick you got there bro..
My question
Can we have other areas beside [quote][b]ads_2_3[/b][/quote]
like
[quote][b]friends_2_2[/b][/quote]
or
[quote][b]groups_2_5[/b][/quote]
,etc for this trick??
Last edited by TA Juleigtin Siahaan (2007-07-21 20:24:40)
Last edited by Shirow Masamune (2007-08-08 08:01:17)
is there something wrong with the sidebar generator???
or its just me??
is there something wrong with the sidebar generator???
or its just me??
[/quote]
well alvine... if you're using the old WVM(tracker) it's properties
are addsidebars and addmainbox... you can see it clearly if you'll check
the codes... and if you're using the new WVM(updated) it's also
clearly shows that it's new properties are [b]addBox[/b] so you can't
put the addsidebar codes if the new WVM functions are for addbox..
Last edited by mama0114 (2007-09-14 04:10:22)
Last edited by mama0114 (2007-09-16 22:44:16)
@ bluemango
see the link i gave... the original code of this script
made by marfillaster... the step to combine it on wvm
are explained there..
Last edited by Refresh/Reload (2007-09-17 00:18:03)
[/quote]
[b]@ bluemango[/b]
It's almost like just a copy paste code mam...
here's the shortcut structure...
[quote]function onProfileLoad() {
//onload handler
addBox("RIGHT",pageOwnerFName+"'s Visitors",TRACKER.div.innerHTML,"tracker",null);
[b][color=blue]Ffetcher.init();[/color][/b]
}
//other part of tracker codes here.
[b]//end of tracker codes[/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: [b][color=blue]6[/color][/b],
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="<div id='fcontainer'></div>";
addBox([b][color=blue]"RIGHT"[/color][/b],"Friends",htm,"frbox",[b][color=blue]"ads_2_3"[/color][/b]);
document.getElementById("content_frbox").innerHTML+="<div class='viewall'><a href='javascript: void(Ffetcher.more())'>More Random Friends</a></div>";
this.container=document.getElementById("fcontainer");
this.fetch(0);
},
fetch: function(page) {
document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Pls wait...";
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="Friends ";
Ffetcher.show();
}[/quote]
That's it!!
you don't have to include the addbox function and
the ajax request coz it's already in the tracker codes..
then edit the given css...
Last edited by Refresh/Reload (2007-09-17 11:20:07)