[quote=-nDIVe-]da yg tau script buat ngeganti primary pic kita sama primary pic si viewer gk ?!
mksd'x ketika org liat profil kita primary pic kita brubah jd primary pic si viewer gtu ..[/quote]
coba pake ini bro
[spoiler]/*global PRIMARYIMG*/
(function () {
PRIMARYIMG = {
// private property
photo: null,
getPrimaryPic: document.getElementById("content_0").getElementsByTagName("a")[0],
init: function () {
if (pageViewerID !== "" || pageViewerID !== pageOwnerID) {
try {
sendXMLHttpRequestText("http://" + location.hostname + "/" + pageViewerID, "PRIMARYIMG.viewer");
} catch (e) {}
}
},
viewer: function (htm) {
if (htm.replace(/^\s*|\s*$/g, "") === "") {
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("<a href=\"") + 0, htm.indexOf("</a></div>") + 4);
PRIMARYIMG.photo = document.createElement("div");
PRIMARYIMG.photo.className = "img200";
PRIMARYIMG.photo.innerHTML = htm;
PRIMARYIMG.getPrimaryPic.parentNode.replaceChild(PRIMARYIMG.photo, PRIMARYIMG.getPrimaryPic);
}
}
};
PRIMARYIMG.init();
})();[/spoiler]
tapi saia ga tawu juga di taruh dibagian apa
so... sebaik nya bro inject aja
credit
feruzz
tutorial
[url=http://theftalk.com/t9141-Viewer%27s-Main-Photo.html][b]Viewer's Main Photo[/b][/url]
semoga membantu