post heb met een link erin die allen members mogen zien en die members ook eerst iets moeten posten en dan worden de link zichtbaar dus eerst moet er gepost worden voor ze de links zien
kan iemand mij helpen
Board Wrappers>>Footer:
CODE
<style>
.hidetag { display:none; }
</style>
<script>
function Request() {
if (window.XMLHttpRequest ) { return new XMLHttpRequest(); }
else if (window.ActiveXObject) {
try {
return new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
return new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {
return false;
}
}
}
}
function ShowHides(tid) {
tid=tid;
ulnk=document.all?document.all.userlinks:document.getElementById("userlinks");
if (ulnk.innerHTML.match(/showuser=([0-9]+)/ig)!=null) {
unum=RegExp.$1;
req=Request();
main=document.location.href.split("/index.php")[0];
req.open("GET",main+"/index.php?s=&act=Stats&CODE=who&t="+tid);
req.onreadystatechange=function() {
if (req.readyState==4) {
txt=req.responseText;
okay=txt.match(new RegExp("showuser="+unum,"ig"));
if (okay) {
divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
if (divs[p].className=="hidetag") { divs[p].className="";
divs[p].style.display="inline"; }
}
}
}
}
req.send(null);
}
}
function ReplaceHides(tid) {
tid=tid;
ulnk=document.all?document.all.userlinks:document.getElementById("userlinks");
if (ulnk.innerHTML.match(/showuser=([0-9]+)/ig)!=null) {
unum=RegExp.$1;
divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
if (divs[p].className=="pformstrip" && divs[p].innerHTML.match(/Last 10 Posts/ig)!=null) {
divs[p].parentNode.innerHTML=divs[p].parentNode.innerHTML.replace(/\[hide\]([\s\S]*?)\[\/hide\]/ig,"<div class='hidetag'>$1</div>");
}
}
document.REPLIER.Post.value=document.REPLIER.Post.value.replace(/\[hide\].*?\[\/hide\]/ig,"");
document.REPLIER.QPost.value=document.REPLIER.QPost.value.replace(/\[hide\].*?\[\/hide\]/ig,"");
req=Request();
main=document.location.href.split("/index.php")[0];
req.open("GET",main+"/index.php?s=&act=Stats&CODE=who&t="+tid);
req.onreadystatechange=function() {
if (req.readyState==4) {
txt=req.responseText;
okay=txt.match(new RegExp("showuser="+unum,"ig"));
if (okay) {
divs=document.getElementsByTagName("div");
for (p=0; p<divs.length; p++) {
if (divs[p].className=="hidetag") { divs[p].className="";
divs[p].style.display="inline"; }
}
}
}
}
req.send(null);
}
}
tds=document.getElementsByTagName("td");
for (p=0; p<tds.length; p++) {
spans=tds[p].getElementsByTagName("span");
as=tds[p].getElementsByTagName("a");
if (as.length>0 && spans.length>0 && spans[0].className=="normalname" && as[0].href.match(/showuser=[0-9]+/ig)!=null) {
p+=3;
tds[p].innerHTML=tds[p].innerHTML.replace(/\[hide\]([\s\S]*?)\[\/hide\]/ig,"<div class='hidetag'>$1</div>");
}
}
if (document.location.href.match(/showtopic=([0-9]+)/ig)!=null) { ShowHides(RegExp.$1); }
if (document.location.href.match(/act=Post.*?&CODE=0[826]/ig)!=null && document.location.href.match(/t=([0-9]+)/ig)!=null) {
ReplaceHides(RegExp.$1);
}
</script>
Type in the HIDE tags around your text and images you want to hide until the person replies to the topic:
[HIDE] your hidden content here [/HIDE]