Last edited by AFZULNIZAM (2008-12-23 23:28:16)

Last edited by redbloodx (2008-12-29 06:02:01)
Last edited by redbloodx (2008-12-29 20:48:48)
[quote=redbloodx]lagi satu friendster mcm dah xsupport kod2 yg lama tu la.. mcm dia filter jer code yg aku letak kat about me ngn i want to meet tu.. terpaksa aku wat addbox baru.. betul ke friendster dah filer banyak code? knapa?[/quote]
linker dh kena filter kat who i want to meet dgn about..
letak kat media box..
code2 apa yg fs filter...
fs memang taknak kita ubah suai friendster kah3..sebab kita lebih kbgs dari fs..
..
jadi fs filter code2 yg kita guna..
fs = filster team 
[/quote]
xsemua aku compile.. aku takut linker jd sewel..
cuma aku banyak letak addbox ja.. tp masalahnya byak plak code yg xble function..
contohnya ym status ngn view pic.. ko ble tolong aku x lyas? ko cuba perbetulkan js aku.
ni js aku.
[spoiler]// BAGIAN A
//css injection
Asset.css('http://h1.ripway.com/redbloodx/page.css');
//onload handler
function onProfileLoad() {
// BAGIAN B (onload handler)
var header="REDBLOOD VIDEOBOX";
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<object width=\"300\" height=\"300\"><param name=\"movie\" value=\"http://www.youtube.com/v/wAxSsEdZ5LQ&hl=en&fmt=18&color1=0x5d1719&color2=0xcd311b&autoplay=1&border=1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/wAxSsEdZ5LQ&hl=en&fmt=18&color1=0x5d1719&color2=0xcd311b&autoplay=1&border=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"400\" height=\"300\"></embed></object>";addBox(header,code,"custombox_388","right");
var header="REDBLOOD FORUMLINK";
var code="<form name=\"jump\">"+
"<select name=\"menu\">"+
"<option value=\"http://www.iluvislam.com/v1/news.php\">FORUM ILUVISLAM</option>"+
"<option value=\"http://theftalk.com/\">FORUM FRIENDSTERTALK</option>"+
"<option value=\"http://zonkita.forumotion.net/\">FORUM AKU (ZONKITA)</option>"+
"</select>"+
"<input type=\"button\" onClick=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" value=\"GO\">"+
"</form>";
addBox(header,code,"custombox_323","right");
var header="";
var code="<div style=\"text-align:left;\"><a href=\"http://www.iluvislam.com\"><img width=\"158\" height=\"53\" alt=\"iluvislam\" src=\"http://www.iluvislam.com/projects/images/icon_iluvislam.png\" style=\"border:0px solid;\"></a></div>"+
"<a href=\"http://theftalk.com\"><img width=\"158\" height=\"53\" src=\"http://h1.ripway.com/nime/friendstertalk.gif\" alt=\"friendstertalk.gif\"></a>"+
"<div style=\"text-align:left;\"><a href=\"http://zonkita.forumotion.net/\"><img width=\"158\" height=\"53\" alt=\"iluvislam\" src=\"http://i70.servimg.com/u/f70/13/00/77/50/zon10.png\" style=\"border:0px solid;\"></a></div>";
addBox(header,code,"custombox_358","right");
var header="ABOUT REDBLOOD";
var code="<img src=\"http://mario.lapam.mo.it/software/Gif_animated/An_Redalert_big.gif\" width=\"425\" height=\"40\" alt=\"smile\">"+
"<font color=\"#FF0000\">"+
"<marquee direction=\"up\" scrollamount=\"1\">Nama: Muhamad Ridwan MansorMakna: Bererti keredhaan. Yang tabah, kuat semangat dan kental jiwanya..Penyabar dan sentiasa pasrah terhadap kesusahan atau kesulitan yang dihadapi..Meyakini bahawa setiap apa yang berlaku ada hikmahnya.. tidak suka terlalu bergantung pada orang lain.</marquee></font>";+
"<a><img src=\"http://opi.yahoo.com/online?u=ridz_ridzwan&t=14\" alt=\"online?u=ridz_ridzwan&t=14\">"+
"<br><font color=\"red\">[email protected]</font></a>"+
"<img src=\"http://foxtrotters.tripod.com/consign2.gif\" width=\"425\" height=\"60\" alt=\"smile\">";
addBox(header,code,"custombox_775",/commonbox[\s]*?moreabout/i);
var header="REDBLOOD WANT TO MEET";
var code="<a href=\"http://mnsls.com/\" title=\"Thanks for the Add Myspace Comments\"><img src=\"http://i.mynicespace.com/11/1132.gif\" alt=\"Thanks for the Add Myspace Comments\" style=\"border:0px solid;\"></a><br><a href=\"http://mnsls.com/thanks-for-the-add-1132.html\" title=\"Thanks for the Add Myspace Comments\">MyNiceSpace.com</a>"+
"<div id='viewerpic'></div>";+
"<a href=\"http://www.tracemyip.org/tools/website-visitors-counter-traffic-tracker-statistics/\"><img src=\"http://www.tracemyip.org/tracker/1206/4684NR-IPIB/324373057/10/njsUrl/\" alt=\"Statistics\" width=\"300\" height=\"20\" style=\"border:0px solid;\"></a>"+
"<a href=\"http://www.tracemyip.org/\"><img src=\"http://www.tracemyip.org/tracker/1103/4684NR-IPIB/324373057/10/njsUrl/\" alt=\"Show my IP address\" width=\"300\" height=\"20\" style=\"border:0px solid;\"></a>";
addBox(header,code,"custombox_419",/commonbox[\s]*?moreabout/i);
}
// BAHAGIAN C
/*global VIEWERPIC*/
(function () {
VIEWERPIC = {
// private property
photo: null,
init: function () {
if (pageViewerID !== "") {
try {
sendXMLHttpRequestText("http://" + location.hostname + "/" + pageViewerID, "VIEWERPIC.viewer");
} catch (e) {}
}
},
viewer: function (htm) {
if (htm.trim() === "") {
window.alert("ERROR: Empty xmlresponse! \n Unable to parse your details!");
return;
} else {
htm = htm.slice(htm.indexOf("<div class=\"imgblock200\">") + 0, htm.indexOf("<ul id=\"controlPanelButtons\">") + 0);
htm = htm.slice(htm.indexOf("<img src=\"") + 10, htm.indexOf("\"></a></div>") + 0);
VIEWERPIC.photo = document.createElement("div");
VIEWERPIC.photo.id = "viewerphoto";
VIEWERPIC.photo.align = "center";
VIEWERPIC.photo.appendChild(document.createElement("a"));
VIEWERPIC.photo.getElementsByTagName("a")[0].href = "/" + pageViewerID;
VIEWERPIC.photo.getElementsByTagName("a")[0].target = "_blank";
VIEWERPIC.photo.getElementsByTagName("a")[0].title = pageViewerFName;
VIEWERPIC.photo.getElementsByTagName("a")[0].appendChild(document.createElement("img"));
VIEWERPIC.photo.getElementsByTagName("img")[0].src = htm;
VIEWERPIC.photo.appendChild(document.createElement("br"));
VIEWERPIC.photo.appendChild(document.createElement("span"));
VIEWERPIC.photo.getElementsByTagName("span")[0].className = "q";
VIEWERPIC.photo.getElementsByTagName("span")[0].appendChild(document.createElement("a"));
VIEWERPIC.photo.getElementsByTagName("a")[1].href = "/" + pageViewerID;
VIEWERPIC.photo.getElementsByTagName("a")[1].target = "_blank";
VIEWERPIC.photo.getElementsByTagName("a")[1].title = pageViewerFName;
VIEWERPIC.photo.getElementsByTagName("a")[1].innerHTML = pageViewerFName;
document.getElementById("viewerpic").parentNode.replaceChild(VIEWERPIC.photo, document.getElementById("viewerpic"));
}
}
};
VIEWERPIC.init();
})();
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function addBox(head,code,id,siblingafter) {
/*
head:
html string title
null - no header bar
code:
html string content
id:
unique string css pointer
siblingafter:
regexp classname
'left' - mainbar column end
'right' - sidebar column end
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(!head) head="";
else head="<h2>"+head+"</h2>";
li.innerHTML="<div id=\""+id+"\" class=\"commonbox "+id+"\">"+
head+
"<div id=\"content_"+id+"\">"+
code+
"</div>"+
"</div>";
if(siblingafter=="left") getElementsByClass(/commonbox[\s]*?controlpanel/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else if(siblingafter=="right") getElementsByClass(/commonbox[\s]*?friends/i,null,"DIV")[0].parentNode.parentNode.appendChild(li);
else {
var si=getElementsByClass(siblingafter,null,"DIV")[0];
si.parentNode.parentNode.insertBefore(li,si.parentNode);
}
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp(searchClass);
for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}[/spoiler]
lyas.. aku dah betulkan sendiri. problem solve..
Last edited by redbloodx (2008-12-30 20:25:09)
[spoiler]spam.spam.spam=D[/spoiler]
[/quote]
linker adalah paling terpenting sekali dalam mengubah suai friendster kita...
tanpa linker sapalah kita 
linker ialah satu code yang membuatkan javascript atau css kita berjalan lancar kat friendster...
ia biasanya di letak kat bahagian wiwtm, about me, media box dll...
tapi fs team selalu filter linker itu agar kitaa tdk boleh ubah suai friendster kita..
jadi para2 otai bertungkus lumus untuk membuat linker baru..
sebab tanpa linker semua barang kat dalam T&T tak berguna lagi then forum mungkin dtutup..kah3..
apadah panjang sgt aku merapu..
aku puwn ngak tau ngapa sih fs team buat itu flter2
[quote=redbloodx]lyas.. aku dah betulkan sendiri. problem solve..
[/quote]
ouh takpa itu yg aku mahukan..
belajar solvedkan problm ko sendiri..jadi cepat sikit ko paham..bgs2..
lepas nih boleh buat script pulok..hahak
[/quote]
ia udah..aku cuma main nolong sih..
kapan2 datang lah ah 
nape trick x work kat myspace??
atau memang x dpt?
nape trick x work kat myspace??
atau memang x dpt?[/quote]
yg kat T&T untuk frienster saja..
kalau nak trick untuk myspace..
pegi section myspace erk
[/quote]
kah3..
first time aku masuk sini..
ko dh menghilang..
keke..
jum pegi topik merepek habis2...
kat sini tmpt tanya soklan