game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Jul 11, 2010 12:38:19 GMT -8
Well I've done as you said and it isn't showing up at all now. I have moved it around in different spots of my global footer. Also, there is no other mini profile codes in my global footer at all. Any other suggestions would be helpful. Thanks
|
|
|
Post by Wormopolis on Jul 11, 2010 14:44:57 GMT -8
checking into it... adding that line shouldnt have stopped it from working..
did you do any other work in the headers?
|
|
game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Jul 11, 2010 14:55:06 GMT -8
The only thing that I have done today was delete your 'challenge' code from the global footer. I only did that with hopes of getting the activity meter to work. People weren't using it like I thought that thye would anyways (The Challenge) Here's my Global Footer: <script type="text/javascript"> <!-- // activity meter in MP // by Wormopolis - www.wormocodes.com// keep header intact - do not repost var postsPerDay=3; // number of posts per day you consider very active function getColor(n) { red=parseInt(2.55*(100-n)); green=parseInt(2.55*(n)); return ((red<16?'0':'') + red.toString(16) + (green<16?'0':'') + green.toString(16) + '00'); } tstArray=['jan','feb','mar','apr','may','jun','jul','aug','sept','oct','nov','dec']; for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top' && tds[t].innerHTML.match(/posts: (.*?)<br>/i)) { pstcnt=parseInt(RegExp.$1.replace(/,/g,'')); datechk=tds[t].innerHTML.match(/joined: (.*?) (\d+)<br>/i); datechkM=RegExp.$1; datechkY=RegExp.$2; for (m=0; m<tstArray.length; m++) { if (datechkM.toLowerCase()==tstArray[m]) break; } sDate=new Date(); sDate.setDate(1); sDate.setYear(datechkY); sDate.setMonth(m); cDate=new Date(); timeSpan=parseInt((cDate-sDate)/(1000*60*60*24)); ppd=pstcnt/timeSpan; ppdp=parseInt((ppd/postsPerDay)*100); notch=(ppdp>100 ? 100 : ppdp); for (br=tds[t].getElementsByTagName('br'), b=0; b<br.length; b++) { if (br .nextSibling && br.nextSibling.nodeName.match(/text/) && br.nextSibling.nodeValue.match(/posts:/i)) { spot=br.nextSibling.nextSibling; break; } } nwdv=document.createElement('div'); nwdv.width='100%'; nwdv.vAlign='middle'; nwdv.style.height=20; nwdv.align='center' hdr=nwdv.appendChild(document.createElement('font')); hdr.innerHTML='Posting Activity'; hdr.size=1; nwtbl=nwdv.appendChild(document.createElement('table')); nwtbl.cellSpacing=nwtbl.cellPadding=0; nwtbl.insertRow(0); for (i=0; i<=100; i++) { nwcl=nwtbl.rows[0].insertCell(-1); nwcl.style.width='1'; nwcl.style.height='20'; nwcl.vAlign='middle'; nwcl.style.borderWidth="0px !important"; cdiv=nwcl.appendChild(document.createElement('div')); cdiv.style.width='1'; if (i==notch) { cdiv.style.height='20'; cdiv.style.backgroundColor='ffffff'; } else { cdiv.style.height='8'; test=getColor(i); cdiv.style.backgroundColor=getColor(i); } } spot.parentNode.insertBefore(nwdv,spot);
} } // --> </script>
<script type="text/javascript"> <!-- /* PortKey v1.21 By Wormopolis Keep Header intact, Do not repost without permission */
//EDIT THESE var portKeyActive = true; //true if you want it on, false if you dont
var exemptUsers=/(user1|user2|user3)/;
var absenceMessage="You've been away for a few days. Since NHV is new, the rules and regulations have still been being modifed until everything comes together. Take a quick look at what has changed as every change is very important for you to know. Thanks and Welcome Back!:" var absenceTime = 3; //number of days someone can be absent before they see portal again var absenceMonitor = "yes" // yes if you want portal reshown to members who havent been on in a while // no if you dont.
var bannedMessage="You were recently banned. Perhaps you should look over the site rules again:" var bannedMonitor = "yes" // yes if you want someone who was recently unbanned to see portal again // no if you dont
var portalMessage="<font size='4'>Welcome to No HaterVille! {NHV}</font><br><br><br>"; portalMessage+="<table align='center'><tr><td>Site rules:<br><br>"; //just keep adding to portalMessage portalMessage+="1. NO HATING.<br>"; portalMessage+="2. IF YOU ARE PLANNING ON BATTLING, YOU MUST VOTE IN BATTLES.<br>"; portalMessage+="3. NO SPAMMING ANY OTHER BATTLE SITE IN ANY WAY!.<br>"; portalMessage+="4. YOU MUST READ THE CALL OUT & BATTLE RULES BEFORE BATTLING.<br>"; portalMessage+="5. NO FLAMING {starting problems and arguments with other members} .<br>"; portalMessage+="6. YOU MAY NOT ADVERTISE YOUR SITE HERE UNLESS YOU PLACE AN NHV BANNER ON YOUR SITE.<br></td></tr></table>"; portalMessage+="<br><p align='right'>If you are ok with these rules, click \"I accept\" below.<br>If you think these are ridiculous and constrictive and totally fascist, please click \"I decline\"<br>"; portalMessage+="I hope to see you on my board!</p><br>";
var declineURL="http://www.parents.com/baby/care/crying/cry-baby "; //URL of where to send them if they decline
var defaultBG = "000000"; var defaultTxt= "FFFFFF"; var portKeyWidth="800";
//NO FURTHER EDITS SHOULD BE NECESSARY
function declineFnc() { window.location=declineURL; }
function acceptFnc() { todDate=new Date(); todDate2=todDate.getFullYear()+"-"+todDate.getMonth()+"-"+todDate.getDate(); todDate.setYear(todDate.getFullYear()+1); document.cookie="portkey="+escape(todDate2)+"; expires="+todDate; window.location="\index.cgi?"; }
function makePortKey() { tbs=document.getElementsByTagName('table'); for (a=0;a<tbs.length; a++) { tbs.style.display="none"; } divs=document.getElementsByTagName('div'); for (a=0;a<divs.length; a++) { divs.style.display="none"; }
pkmessage="<table align='center' height='400' width='"+portKeyWidth+"' cellpadding='5' class='bordercolor' cellspacing='5'><tr><td>"; pkmessage+="<table align='center' width='100%' height='100%' style='background-color:"+defaultBG+"' cellpadding='0' class='windowbg'><tr><td>"; if (banMsg) pkmessage+=bannedMessage; if (expMsg) pkmessage+=absenceMessage;
pkmessage+="</td></tr><tr><td><font color="+defaultTxt+">"; pkmessage+=portalMessage; pkmessage+="</font></td></tr>";
pkmessage+="<tr><td height='10%'><table width='100%' valign='bottom'><tr>"; pkmessage+="<td align='center' width='50%'><input id='acc' type='button'onclick='acceptFnc()'>I ACCEPT</input></td>"; pkmessage+="<td align='center' width='50%'><input id='dec' type='button' onclick='declineFnc()'>I DECLINE</input></td>"; pkmessage+="</tr></table></td></tr>"; pkmessage+="</table>"; pkmessage+="</td></tr></table>";
document.getElementById('pk').innerHTML=pkmessage; document.getElementById('pk').style.display=''; }
tds=document.getElementsByTagName('td'); for (w=tds.length-1; w>0; w--) { if (tds[w].width=="100%" && tds[w].className=="windowbg" && !tds[w].getElementsByTagName('form').length) { fnts=tds[w].getElementsByTagName('font'); if (fnts[0] && fnts[0].size=="2" && fnts[0].innerHTML.match(/Sorry, but you have been banned from this forum./i)) { todDate=new Date(); todDate.setYear(todDate.getFullYear()+10); document.cookie="portkey="+escape("banned")+"; expires="+todDate; portKeyActive=false; } } } document.write("<div id='pk' width='100%' style='display:none'></div>"); if (pb_username!="Guest" && portKeyActive && !location.href.match(/headersfooters/i)) { var showPortKey=true; var banMsg=false; var expMsg=false; var noobMsg=false; if (document.cookie.match(/portkey=([^;]*)/)) { res=RegExp.$1; if (res!="banned") { res=unescape(res); res=res.split('-'); lastDate=new Date(res[0],res[1],res[2]); todDate=new Date(); diff=todDate.getTime()-lastDate.getTime(); diff/=(1000*60*60*24); if (diff>absenceTime) expMsg=true; } else { banMsg=true; } } else { noobMsg=true; } if ((absenceMonitor=="yes" && expMsg)||(bannedMonitor=="yes" && banMsg)||noobMsg) {
if (!pb_username.match(exemptUsers)) makePortKey();
} } if (pb_username=='admin') { adLink=document.createElement('a'); adLink.align='center'; adLink.href='javascript:void(0);'; adLink.onclick= function() {makePortKey()}; adLink.style.backgroundColor='000000'; adLink.style.color='FFFFFF'; adLink.innerHTML='PORTKEY TEST'; document.write('<div width="100%" id="linkspace" align="center"></div>'); document.getElementById('linkspace').appendChild(adLink); } // --> </script>
<script type="text/javascript" src="http://www.iycatacombs.com/socal/resources/scripts/imageuploader.js"> /* ImageShack Uploader in Posting Area by california Special thanks to Alex Levin of ImageShack® © 2006 SoCal Codes, socal.proboards26.com */ </script>
<style type="text/css"> <!--
body, td, font { font-size: 14px !important; }
--> </style>
<script type="text/javascript"> <!-- var fWidth = '70%';
var table = document.getElementsByTagName('table'); for(t=0; t<table.length; t++) { if(table.item(t).width == "92%") { table.item(t).width = fWidth; } } // --> </script>
|
|
|
Post by Wormopolis on Jul 11, 2010 15:48:43 GMT -8
No its my fault. I thought I needed the CSS inportance ovverride in there and IE doesnt like it.
change this line:
nwcl.style.borderWidth="0px !important";
to be:
nwcl.style.borderWidth="0px";
|
|
game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Jul 11, 2010 16:30:14 GMT -8
Yes sir! Thank you very much! Works great. Aye, me and my boys at my site have a great thanks to give to you because we wouldn't have our spot without your clever codes. So THANKS! If you have a banner, let me know and I'll post it. But regardless, I'm posting your link with an explanation of how detrimental that you were to the site. I'm trying your 'thread log floating side table' next. I'm having problems with getting that to work also. I'll be posting in that thread soon, hope ya can find the time to answer. Once again, thanks for all of your help and let me know if ya have a banner.
|
|
game
Junior Member
Code Digger
Posts: 59
game said 0 great things
|
Post by game on Jul 12, 2010 4:31:13 GMT -8
|
|
|
Post by Wormopolis on Jul 12, 2010 10:45:45 GMT -8
post in that thread. helps keep things organized. I have a rough week at work this week so Im going tobe all scrambled.
|
|
|
Post by rhondairv on Dec 2, 2010 17:35:28 GMT -8
I have a member who hasn't posted at all in 2 days but, her meter is full (meaning she makes 10 posts a day).If i change to 20 or 50 it goes down but not fully.
|
|
|
Post by Wormopolis on Dec 3, 2010 18:49:32 GMT -8
well remember it uses their start month as a reference. if they joined Dec 1st and made 30 posts, then their average would be 10.
what is their start date, and what is their post count?
is their profile viewable?
|
|
|
Post by Wormopolis on Dec 3, 2010 18:59:26 GMT -8
check this out, hover over a activity bar on this site...
|
|
|
Post by rhondairv on Dec 4, 2010 15:28:39 GMT -8
|
|
|
Post by Wormopolis on Dec 6, 2010 14:35:02 GMT -8
ok.. she has been on the forum for 708 days. she had made 8353 posts. that is an average of 11.8 posts per day. you have "active" set at 20 posts per day, so her gauge, which is showing it just past halfway mark, is correct.
the code doesnt look at actual posts in the past FEW days, it looks at lifetime activity. there is NO way a code could figure out how many posts someone has made in the last actual 24 hours. that information isnt even stored on the database.
|
|
|
Post by Wormopolis on Dec 6, 2010 14:35:57 GMT -8
and you really should update the PM summary code. the new version doesnt use cookies unless it has to. helps to keep request size down and prevents type 400 errors.
|
|
|
Post by rhondairv on Dec 6, 2010 14:40:37 GMT -8
ohhh ok, now i understand. Thanks wormo and i will go now and get that update code.
|
|
|
Post by Wormopolis on Dec 6, 2010 14:41:37 GMT -8
I will post in the addition I made to this code when I get home
|
|