destrugter
06-11-2007, 02:35 AM
ok, i need this code turned into php form...unless there is a way i can save it as a javascript format and have my forums load it on every post that contains it.
it is a hide hack...and yes i know what you are thinking "most hide hacks are used to hide sharez or warez" well after i have fully installed it and it works i will give you the link to my forums to see that i am not using it for that..my forums are about video games and so if someone plays runescape or of the sort, and there is a guide that offers a way to get tons of money fast, then i think that they should post and keep the forum active to see it...here is the code, and if you are helping me with it then please keep the copyright intact and provide your own copyright along with it. code is below it wont fit in code so ill just seperate it.
***************Code***************
<script type='text/javascript'>
//Hidden Content Script By Beta
var _msg = " [<b>You Must Be a registered member and Reply to this thread to view the post. <br>If you are not registered then click <a href=http://z10.invisionfree.com/Game_Zone252/index.php?act=Reg&CODE=00> Here </a> to register</b>] ";
if(location.href.match(/showtopic=(\d+)($|#|&)/i)){
var _loc = RegExp.$1;
_div = document.getElementsByTagName('DIV');
for(e=0;e<_div.length;e++){
if(_div[e].className == 'postcolor' && _div[e].innerHTML.match(/\[hide\](.*?)\[\/hide\]/gim)){
_div[e].innerHTML = _div[e].innerHTML.replace(/\[hide\](.*?)\[\/hide\]/gim,"<span class='message'>" + _msg + "</span><span class='hidden' style='display:none'>$1</span>");
document.write("<iframe src='" + location.href.split('index.php')[0] + "index.php?s=&act=Stats&CODE=who&t=" + _loc + "' width='0px' height='0px' id='dataCheck' onload='javascript:checkData();' name='dataCheck'></iframe>");
}}}
if(location.href.match(/Post&CODE=02&f=\d+&t=(\d+)($|#|&)/i)){
var _loc = RegExp.$1;
_spn = document.getElementsByTagName('SPAN');
for(e=0;e<_spn.length;e++){
if(_spn[e].className == 'postcolor' && _spn[e].innerHTML.match(/\[hide\](.*?)\[\/hide\]/gim)){
_spn[e].innerHTML = _spn[e].innerHTML.replace(/\[hide\](.*?)\[\/hide\]/gim,"<span class='message'>" + _msg + "</span><span class='hidden' style='display:none'>$1</span>");
document.write("<iframe src='" + location.href.split('index.php')[0] + "index.php?s=&act=Stats&CODE=who&t=" + _loc + "' width='0px' height='0px' id='dataCheck' onload='javascript:checkData();' name='dataCheck'></iframe>");
}}}
function checkData(){
if(window.frames['dataCheck']){
checkAll = window.frames['dataCheck'];
var _lks = checkAll.document.getElementsByTagName('A');
var _usr = document.getElementById('userlinks').rows[0].cells[0].getElementsByTagName('A')[0];
for(i=0;i<_lks.length;i++){
if(_lks[i].href.match(/showuser=\d+$/i) && _lks[i].href == _usr.href){
_spn = document.getElementsByTagName('SPAN');
for(a=0;a<_spn.length;a++){
if(_spn[a].className == 'hidden'){
_spn[a].style.display = 'block';
_spn[a-1].style.display = 'none';
}}}}}}
</script>
*******************CODE****************
so if you know a way for my forums to go through my files and find that as a javascript code and it will hide the text until the user posts in that topic then please help me with that...if you wanna make the mod for me then please...but if you want to help me create it then that would be cool also
check back later ^^
it is a hide hack...and yes i know what you are thinking "most hide hacks are used to hide sharez or warez" well after i have fully installed it and it works i will give you the link to my forums to see that i am not using it for that..my forums are about video games and so if someone plays runescape or of the sort, and there is a guide that offers a way to get tons of money fast, then i think that they should post and keep the forum active to see it...here is the code, and if you are helping me with it then please keep the copyright intact and provide your own copyright along with it. code is below it wont fit in code so ill just seperate it.
***************Code***************
<script type='text/javascript'>
//Hidden Content Script By Beta
var _msg = " [<b>You Must Be a registered member and Reply to this thread to view the post. <br>If you are not registered then click <a href=http://z10.invisionfree.com/Game_Zone252/index.php?act=Reg&CODE=00> Here </a> to register</b>] ";
if(location.href.match(/showtopic=(\d+)($|#|&)/i)){
var _loc = RegExp.$1;
_div = document.getElementsByTagName('DIV');
for(e=0;e<_div.length;e++){
if(_div[e].className == 'postcolor' && _div[e].innerHTML.match(/\[hide\](.*?)\[\/hide\]/gim)){
_div[e].innerHTML = _div[e].innerHTML.replace(/\[hide\](.*?)\[\/hide\]/gim,"<span class='message'>" + _msg + "</span><span class='hidden' style='display:none'>$1</span>");
document.write("<iframe src='" + location.href.split('index.php')[0] + "index.php?s=&act=Stats&CODE=who&t=" + _loc + "' width='0px' height='0px' id='dataCheck' onload='javascript:checkData();' name='dataCheck'></iframe>");
}}}
if(location.href.match(/Post&CODE=02&f=\d+&t=(\d+)($|#|&)/i)){
var _loc = RegExp.$1;
_spn = document.getElementsByTagName('SPAN');
for(e=0;e<_spn.length;e++){
if(_spn[e].className == 'postcolor' && _spn[e].innerHTML.match(/\[hide\](.*?)\[\/hide\]/gim)){
_spn[e].innerHTML = _spn[e].innerHTML.replace(/\[hide\](.*?)\[\/hide\]/gim,"<span class='message'>" + _msg + "</span><span class='hidden' style='display:none'>$1</span>");
document.write("<iframe src='" + location.href.split('index.php')[0] + "index.php?s=&act=Stats&CODE=who&t=" + _loc + "' width='0px' height='0px' id='dataCheck' onload='javascript:checkData();' name='dataCheck'></iframe>");
}}}
function checkData(){
if(window.frames['dataCheck']){
checkAll = window.frames['dataCheck'];
var _lks = checkAll.document.getElementsByTagName('A');
var _usr = document.getElementById('userlinks').rows[0].cells[0].getElementsByTagName('A')[0];
for(i=0;i<_lks.length;i++){
if(_lks[i].href.match(/showuser=\d+$/i) && _lks[i].href == _usr.href){
_spn = document.getElementsByTagName('SPAN');
for(a=0;a<_spn.length;a++){
if(_spn[a].className == 'hidden'){
_spn[a].style.display = 'block';
_spn[a-1].style.display = 'none';
}}}}}}
</script>
*******************CODE****************
so if you know a way for my forums to go through my files and find that as a javascript code and it will hide the text until the user posts in that topic then please help me with that...if you wanna make the mod for me then please...but if you want to help me create it then that would be cool also
check back later ^^