Have a look at my proffy: http://www.friendster.com/frolick
I did an experiment. I took everything out of my JS ext file. Left it blank. Then I just added the following:
1. the profiles.friendster.com script on top
2. ajax request script
3. randomized friends script (old) that calls out the addMainBox function
4. addMainBox script
BUT the problem is still the same. The envelop graphic file is still big. 
 
 
With the experiment, I came to the conclusion that my JS ext was not buggy at all.
I dont mean to say that 1, 2, 3, and 4 above are buggy...because they are working perfectly on your proffy and on Lordheinzz too...
The question is: where's the bug? or Where's the error even if i took everything out of my JS file already with only this randomized friends code in it...
				
   Have a look at my proffy: http://www.friendster.com/frolick
I did an experiment. I took everything out of my JS ext file. Left it blank. Then I just added the following:
1. the profiles.friendster.com script on top
2. ajax request script
3. randomized friends script (old) that calls out the addMainBox function
4. addMainBox script
BUT the problem is still the same. The envelop graphic file is still big. 
 
 
With the experiment, I came to the conclusion that my JS ext was not buggy at all.
I dont mean to say that 1, 2, 3, and 4 above are buggy...because they are working perfectly on your proffy and on Lordheinzz too...
The question is: where's the bug? or Where's the error even if i took everything out of my JS file already with only this randomized friends code in it...[/quote]
Does your experiment exactly look like this to determine if your
Friend Randomizer is ok?
[quote]if(document.location.href.match(/profiles\./)) document.location.href = document.location.href.replace(/profiles\./, "www.");
try{
document.createStyleSheet("[b]DIRECT LINK OF CSS[/b]");
}
catch(e){
document.write("<link rel='stylesheet' type='text/css' media='screen, print' href='[b]DIRECT LINK OF CSS[/b]'>");
}
function randOrd(){
return (Math.round(Math.random())-0.5); }
if (!attachOnLoadHandler(function(){Ffetcher.init();})) window.onload = function(){Ffetcher.init();};
var base_domain = "http://www.friendster.com";
if (typeof Ffetcher == "undefined") { Ffetcher = {}; }
Ffetcher.vars = {
    friends: new Array(),
    pages: null,
    maxfriends: null,
    container: null,
    cached: new Array(),
    display: 10
};
Ffetcher.init= function() {
    var num=document.links;
    for(var x=0;x<num.length;x++) {
        if (num[x].href.match(/\/friends\/[\d]+?/)) {
            var t=/\(([\d]+?)\)/;
            Ffetcher.vars.maxfriends=t.exec(num[x].innerHTML)[1];
            break;
        }
    }
    Ffetcher.vars.pages=Math.floor(Ffetcher.vars.maxfriends/30);
    var htm="<div align='center' id='fcontainer'></div>";
    addMainBox("<img src='http://media.bigoo.ws/content/smile/cool/cool_2.gif'>  Friends <font color=#ff0033>Random</font> Gallery  <img src='http://media.bigoo.ws/content/smile/cool/cool_2.gif'>",htm,"frbox","moreabout_1_5");
    document.getElementById("content_frbox").innerHTML+="<div class='viewall'><a href='javascript: void(Ffetcher.more())'>Click To View More Random Friends </a></div>";
    Ffetcher.vars.container=document.getElementById("fcontainer");
    Ffetcher.fetch(0);
};
Ffetcher.fetch= function(page) {
    document.getElementById("frbox").childNodes[0].innerHTML="Friends Loading... Pls wait...";
    processAjaxRequest("GET",base_domain+"/friends/"+pageOwnerID+"/"+page,true,null, "parseFriends",page);
};
function parseFriends(htm,page) {
if(!htm){
    alert("reattempting")
    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 />");
        Ffetcher.vars.friends.push(temp[x]);
    }
    Ffetcher.vars.cached.push(":"+page+":");
    document.getElementById("frbox").childNodes[0].innerHTML="<img src='http://media.bigoo.ws/content/smile/cool/cool_2.gif'>  Friends <font color=#ff0033>Random</font> Gallery  <img src='http://media.bigoo.ws/content/smile/cool/cool_2.gif'> ";
    Ffetcher.show();
    
}
Ffetcher.show= function() {
    Ffetcher.vars.container.innerHTML="";
    Ffetcher.vars.friends.sort(randOrd);
    for(var x=0;x<Ffetcher.vars.display;x++) {
        Ffetcher.vars.container.innerHTML+=Ffetcher.vars.friends[x];
    }
}
Ffetcher.more=function() {
    if(Ffetcher.vars.cached.length<(Ffetcher.vars.pages+1)) {
        var temp;
        do {
            temp=Math.ceil(Math.random()*(Ffetcher.vars.pages));
        }while(Ffetcher.vars.cached.toString().indexOf(":"+temp+":")!=-1);
        Ffetcher.fetch(temp);
    }
    else {
        Ffetcher.show();
    }
}
[b]function addMainBox (head,htm,id,bro_id) {
    var ul=document.getElementById("controlpanel_1_1").parentNode;
    var bro=document.getElementById(bro_id).parentNode;
    try {
        var li=document.createElement("li");
    } catch(e) {
        var li=document.createElement("<li>");
    }
    li.innerHTML=    "<div id='"+id+"' class='commonbox "+id+"'>"+
                        "<h2>"+head+"</h2>"+
                        "<div id='content_"+id+"'>"+
                            "<div class='boxcontent'>"+
                                htm+
                            "</div>"+
                        "</div>"+
                    "</div>";
    ul.parentNode.insertBefore(li,bro);
}[/b]
function processAjaxRequest(type,url,cont,param,handler,handlerparam) {
if(handlerparam) handlerparam=","+handlerparam;
else handlerparam="";
//type 'POST' | 'GET'
//cont 'true' | 'false'
//param string | null
//handler string | null
//handlerparam ","+string |null
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);
}[/quote]
I tried this on my test page... same effect as my main page..
pls... try this one first... remove all your js(make a back-up first)
then put this application. don't forget to put your [b]DIRECT CSS[/b]
on the specified code.
now if you will put it on a WVM that already has 
an AddMainbox function(those on bold text)..
you don't have to include it again nor make an
onloadhandler to call it... coz the tracker already
has it... btw.. your edited js still has multiple AddMainBox function 
					Last edited by Refresh/Reload (2007-09-05 22:52:51)
Last edited by frolickfriendster (2007-09-05 23:03:21)
 I want to add the ajax function to my current tracker.js but not sure where to add it.
<">I read that if its included in my tracker I will not need to call it again with other js functions that required it 
				
((((((((((
UPDATE: TO REFRESH/RELOAD
I think I now know what exactly is the problem. It's not on my JS ext file, but it's on my css file.
Since your last suggestion did not work, I did another experiment.
1. I used Ken's JS ext script.
2. In it, Ken's CSS was also used.
When I viewed my proffy, the randomizer was working perfectly.
3. Now, I modified the JS ext and used my own CSS. So it becomes Ken's JS + My CSS.
When I viewed my proffy, it was messed up again.
Conclusion, the problem is in my CSS codes and I dont know which CSS on it is affecting the friend randomizer.
So, I am going back to my original JS ext file and will begin to experiment and dissect my css one by one.
					Last edited by frolickfriendster (2007-09-05 23:37:55)
 
 this code below where i must paste it..
  
 ...'counfuse..'',,,,i already has wmv,,,
[quote]for users with existing onload handler
look for this clause, and paste the bold line into the given location
    function onProfileLoad() {
    //existing codes here
        Ffetcher.init();
    }[/quote]
help pliss,,, 
				
 
 this code below where i must paste it..
  
 ...'counfuse..'',,,,i already has wmv,,,
[quote]for users with existing onload handler
look for this clause, and paste the bold line into the given location
    function onProfileLoad() {
    //existing codes here
        Ffetcher.init();
    }[/quote]
help pliss,,, 
[/quote]
go here:[url=http://theftalk.com/t6843-TUTORIAL%3A-FTalk-Coders-Codes...html]How to use FTalk Coders Codes[/url]
				
				
				
				
 I am just not getting it, I know its not a suprise, but I spent the afternoon trying to add the random friends to my page. Even went and upgrade to the latest WVM thinking it was my problem 
 
Any time I add the  Ffetcher.init(); } after the onProfileLoad function my tracker disappears. Then when I add [b]Step 3[/b] none of my other codes work.
Suggestions please 
  Please don't refer me to the Tutorial How to use FTalk Coders Codes, been there the last hour 
				Last edited by s1ycks (2007-09-07 20:02:44)
 I am just not getting it, I know its not a suprise, but I spent the afternoon trying to add the random friends to my page. Even went and upgrade to the latest WVM thinking it was my problem 
 
Any time I add the  Ffetcher.init(); } after the onProfileLoad function my tracker disappears. Then when I add [b]Step 3[/b] none of my other codes work.
Suggestions please 
  Please don't refer me to the Tutorial How to use FTalk Coders Codes, been there the last hour 
[/quote]
[b]:::::JUST COPY AND PASTE IT TO YOUR TRACKER.JS::::::[/b]
[b]-=CHANGE THE "YOUR TRACKER.PHP URL" TO YOUR TRACKER.PHP URL=-[/b][/quote]
Tried it did not work for me either : ( I got an message saying done with errors and it never appeared.
Thanks for trying to help 
  
  
				
 I am just not getting it, I know its not a suprise, but I spent the afternoon trying to add the random friends to my page. Even went and upgrade to the latest WVM thinking it was my problem 
 
Any time I add the  Ffetcher.init(); } after the onProfileLoad function my tracker disappears. Then when I add [b]Step 3[/b] none of my other codes work.
Suggestions please 
  Please don't refer me to the Tutorial How to use FTalk Coders Codes, been there the last hour 
[/quote]
[b]:::::JUST COPY AND PASTE IT TO YOUR TRACKER.JS::::::[/b]
[b]-=CHANGE THE "YOUR TRACKER.PHP URL" TO YOUR TRACKER.PHP URL=-[/b][/quote]
Tried it did not work for me either : ( I got an message saying done with errors and it never appeared.
Thanks for trying to help 
  
 ....I'm going to study more on this later....
				
  
 ....I'm going to study more on this later....[/quote]
you have to remove your old tracker and friend randomizer code cause it has new updated version of wvm tracker and friend randomizer............you have to paste it to your clean tracker.js - it means that theres no other code except from it....then save it and refresh your profile and you're done....i'm sure 100% it will work if you have done that cause its working on mine....i hope it is clear enough for all of you.[/quote]
hmmm... i'm still using the old wvm tracker and the
old friend randomizer codes.. with all my js still in and
out of it... i've just added the ajax based script above
and the ajax request after the sidebar and mainbox functions...
for me it's still safe to compile all your js in one js extension file...
...the tracker.js , right now i have 24 scripts/codes in and out of
the tracker... just have to be careful on applying codes... 
					Last edited by Refresh/Reload (2007-09-09 14:50:16)