|
Viewing Single Post From: Cross Forum Member Info Search v.2
|
|
Viral
|
Dec 8 2007, 04:10 PM
|
- Posts:
- 1,374
- Group:
- Members
- Member
- #269
- Joined:
- Dec 1, 2007
- What Browser are you using?
- Chrome
- ZB Board URL
- http://s1.zetaboards.com/zeta_services
|
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.
|
|
|