Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Cross Forum Member Info Search v.2; Much, much better!
Topic Started: Dec 8 2007, 04:10 PM (1,326 Views)
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Much nicer this time, only 2 prompts, and the display is better.

Go to your website maker, make a new page and call it whatever you want.

Then, for the content add the following:

code
 
<script creator="Viral">
thisforum="http://s1.zetaboards.com/ZetaResources";
loadingmsg="Loading...";
errormsg="No member in database..";
document.write("<table border='0'><tr><td>Member Id</td><td><form name='information'><input type='text' id='memberid' name='memberid' /></td></tr><tr><td>Username</td><td><input type='text' id='username' name='username' /></td></tr><tr><td>Last Activity</td><td><input type='text' id='lastactive' name='lastactive' /></td></tr><tr><td>Average Posts Per Day</td><td><input type='text' id='avgposts' name='avgposts' /></td></tr><tr><td>Local Time</td><td><input type='text' id='localtime' name='localtime' /></td></tr><tr><td>Online?</td><td><input type='text' id='online' name='online' /></td></tr><tr><td>Made by Viral of <a href='http://s1.zetaboards.com/ZetaResources'>Zeta Resources</a></td><td><input type='button' id='replace' name='replace' value='Index' onclick='index();' /></td></tr></form></table>");
theforum=prompt("Which forum do you want to get the member details from?",thisforum);
memberid=prompt("What is the member ID of the Member you are searching?");
if(memberid!=-1 && memberid!=""){
document.forms['information'].memberid.value=memberid;}else{document.forms['information'].memberid.value="Not filled in..";}
document.forms['information'].username.value=loadingmsg;
document.forms['information'].lastactive.value=loadingmsg;
document.forms['information'].avgposts.value=loadingmsg;
document.forms['information'].localtime.value=loadingmsg;
document.forms['information'].online.value=loadingmsg;
document.write("<iframe src='"+theforum+"/profile/"+memberid+"/' height='0' width='0' frameborder='0' onload='info();' name='profilee' id='profilee' ></iframe>");
function info(){
z=window.frames['profilee'].document.getElementsByTagName('td');
for(f=0;f<z.length;f++){
if(z[f].innerHTML.match('No Member was found')){
document.forms['information'].username.value=errormsg;
document.forms['information'].lastactive.value=errormsg;
document.forms['information'].avgposts.value=errormsg;
document.forms['information'].localtime.value=errormsg;
document.forms['information'].online.value=errormsg;
}}
a=window.frames['profilee'].document.getElementsByTagName('th');
username=a[((a.length)-5)].innerHTML;
document.forms['information'].username.value=username;
b=window.frames['profilee'].document.getElementsByTagName('tr');
lastactive=b[2].innerHTML.split('<td>')[1].split('</td>')[0];
document.forms['information'].lastactive.value=lastactive;
averageposts=b[3].innerHTML.split('<td>')[1].split('</td>')[0];
document.forms['information'].avgposts.value=averageposts;
localtime=b[4].innerHTML.split('<td>')[1].split('</td>')[0];
document.forms['information'].localtime.value=localtime;
online=b[5].innerHTML.split('<td>')[1].split('</td>')[0];
if(online=="This is you, so you must be online"){
online="Yes";}else if(online=="No"){online="offline";}else{online="Yes";}
document.forms['information'].online.value=online;
replace();
}
function index(){
window.location.replace(theforum);}
</script>


Edit the red to the loading message.
Edit the brown to the error message.
Edit the first link (above the red text) to your board url in the following format:
http://sx.zetaboards.com/boardname

Do not add /index or / . Don't add anything, leave it like that, but edit the 'x' and the 'boardname'.

Leave my copyright in there, and don't redistribute it :D.
Edited by Viral, Jul 5 2008, 09:34 AM.
Offline Profile Quote Post Goto Top
 
badtzmaru
Member Avatar
Member
[ *  *  * ]
I don't really understand what this code is supposed to do. o_o;; And what is that big preview window below for?

When I click the 'Genereate Post' button, it kept giving me an alert that said 'hey'. @_@
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
It's a very, very random modification; yet interesting. You type in the forum you want and the member ID. Then it just lists some info about the member.
Edited by Eureka, Dec 9 2007, 04:52 AM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
badtzmaru, you viewed while I was editing a big part of the code. If you check now it should work. Only problem is, the URL you type in is case sensitive and I can't seem to figure out which part of this URL has Caps, and which doesn't..
Offline Profile Quote Post Goto Top
 
badtzmaru
Member Avatar
Member
[ *  *  * ]
Hmm, now it doesn't seem to be working at all for me... Or it's just taking a really long time to load. o_o
Offline Profile Quote Post Goto Top
 
SkyDiver (CC)
Member
[ * ]
don't work for me.
Offline Profile Quote Post Goto Top
 
Thunder
Member Avatar
Thunder
[ *  *  * ]
I can't see the preview.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Ooooh, this is old..

I haven't set it up that good by the looks of it, I may make a new one later.
Offline Profile Quote Post Goto Top
 
choco
SPORE
[ *  *  * ]
You can't make this anymore :P There's more than one server on ZB now.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
document.domain allows you to use ajax through subdomains :) .
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply