eerst post dan code zien

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
snater
Berichten: 1
Lid geworden op: 18 dec 2006, 20:20

eerst post dan code zien

Bericht door snater » 18 dec 2006, 20:23

ik wil een code dat als ik bevoorbeeld een
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]

Gebruikersavatar
Ramon Fincken
Berichten: 2552
Lid geworden op: 27 nov 2005, 23:15
Locatie: Diemen
Contacteer:

Bericht door Ramon Fincken » 18 dec 2006, 23:11

ik weet niet wat dit voor code is, maar kijk eens hier:
http://david.smigit.com/mdd/?keyword=hi ... opment=yes
Freelance webdevelopment, including phpbb2 scripting!

Website founder van: phpBBinstallers.net phpBBantispam.com
Mods: zie op http://www.phpbb.com Blog in wording: RamonFincken.com

Gesloten