|
Post by General Veers on Mar 20, 2010 16:54:16 GMT -5
As some of you may know, I began fixing different components of the forums in order to bring it back to its original form. I recreated the mini profile with some minor adjustments, created the best guest mini profile, reimplemented the forum resize, brought Dan-Balls back, got GGoodie's help for how to display the Dan-Balls in the mini profile, and brought back custom stars. What's next? The Info Center. Obviously, the one we have now is not quite aesthetically designed. I presume we would all like a new one, but I don't know what it should look like. If you're curious, the Info Center is the table that displays new members, online members, birthdays, holidays, and other such information at the bottom of the home page. The following information is available for the Info Center: - Current date and time
- Total number of threads in the forums
- Total number of posts in the forums
- The average threads per board
- The average threads per category
- The average posts per board
- The average posts per category
- The thread with the most recent post
- The user who created the most recent post
- The time the most recent post was made
- The viewer's (i.e. your) username
- The viewer's (i.e. your) display name
- How many new PM's you have
- How many total PM's you have
- A direct link to modify your profile
- The number of registered members
- The average threads per member
- The average posts per member
- The newest registered member
- The number of birthdays today
- The number of holidays/events today
- The list of birthdays today
- The list of holidays/events today
- The list of online members now
- The most number of users simultaneously online and the time it happened
- The number of registered members online now
- The number of guests online now
- The number of invisible members online now
- The number of members of whatever member group (e.g. Global Moderators) online now
- The number of members online in the past 24 hours
- The number of guests online in the past 24 hours
- The number of invisible members in the past 24 hours
I would greatly appreciate it if posters will describe the layout of the Info Center table and detail what information should go in each cell of the table. If possible, make an image or create a rudimentary example using the UBBC table tags. Thank you.
|
|
|
Post by Vertigo on Mar 20, 2010 18:28:30 GMT -5
All I want is something like this.
[img src="http://i40.[tinypic.com]/30xingk.jpg"]
Is it possible to hide the users who were on in the past 24 hours, and have a button to show them? If so, it reduces that unsightly cluster of names.
|
|
|
Post by Qwerty on Mar 20, 2010 18:29:25 GMT -5
Maybe we should make it on a different page. There's a code for that. I think.
|
|
|
Post by lol on Mar 20, 2010 21:50:13 GMT -5
All I want is something like this. [img src="http://i40.[tinypic.com]/30xingk.jpg"] Is it possible to hide the users who were on in the past 24 hours, and have a button to show them? If so, it reduces that unsightly cluster of names. lol have you tried clicking the big red X? xD rofl
|
|
|
Post by btw on Mar 20, 2010 21:57:24 GMT -5
i found a few of the codes they were in an old folder in my recycle bin.
(infocenter)
var membimg = "http://i50.[tinypic.com]/23th77.png"; var statimg = "http://i48.[tinypic.com]/30lkj8k.png";
if(!location.href.match(/action/) || location.href.match(/action=home/)){ var TD = document.getElementsByTagName("td"); var TAB = document.getElementsByTagName('table');
for(e=0;e<TD.length;e++){ if(TD[e].className == "catbg" && TD[e].innerHTML.match(/Forum Statistics/)) { var totalposts = (TD[e+2].innerHTML.match(/Total Posts: (\d+)(,\d+)?<br/i)) ? RegExp.$1+RegExp.$2: ''; var totaltopics = (TD[e+2].innerHTML.match(/Total Topics: (\d+)(,\d+)? &/i)) ? RegExp.$1+RegExp.$2: ''; var totalmembs = (TD[e+2].innerHTML.match(/Total Members: (.+?)<br/i)) ? RegExp.$1: ''; var newmemb = (TD[e+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1+'</a>': ''; var lastpost = (TD[e+2].innerHTML.match(/Last Updated Topic: (.+?) by/i)) ? RegExp.$1: 'n/a'; var lastuser = (TD[e+2].innerHTML.match(/by (.+?) \(/i)) ? RegExp.$1: 'n/a'; } if(TD[e].className == "catbg" && TD[e].innerHTML.match(/Users Online/)) { var mostonline = (TD[e+4].innerHTML.split(/Most\susers\s/)[1].split(/, /i)[0].split(/<br/i)[0]); var nowonline = (TD[e+4].innerHTML.split(/<br>/i)[1]); var staffonline = (TD[e+4].innerHTML.match(/(\d+) Staff/i)) ? RegExp.$1: '0'; var usersonline = (TD[e+4].innerHTML.match(/(\d+) Member/i)) ? RegExp.$1: '0'; var guestsonline = (TD[e+4].innerHTML.match(/(\d+) Guest/i)) ? RegExp.$1: '0'; } if(staffonline=="0" && usersonline=="0"){ var nowonline = "<i>No members online</i>"; } } for(e=0;e<TAB.length;e++){ if(TAB[e].width == "100%" && TAB[e].cellPadding == "4" && TAB[e].innerHTML.match(/Info Center/i)) { TAB[e].parentNode.innerHTML = '<table cellspacing="1" cellpadding="4" class="bordercolor" width="100%"><tr><td class="titlebg" align="center" colspan="4" height="26">Information Center</td></tr><tr><td class="catbg" align="center" colspan="2"><b>Statistics</b></td><td class="catbg" align="center" colspan="2"><b>Members</b></td></tr><tr><td class="windowbg" align="center" width="10%" rowspan="4"><img src="'+statimg+'"></td><td class="windowbg" align="left"><b>Total Members:</b> '+totalmembs+'</td><td class="windowbg" align="center" width="10%" rowspan="4"><img src="'+membimg+'"></td><td class="windowbg" align="left"><b>Staff Online:</b> '+staffonline+'</td></tr><tr><td class="windowbg" align="left"><b>Newest Member:</b> '+newmemb+'</td><td class="windowbg" align="left"><b>Members Online:</b> '+usersonline+'</td></tr><tr><td class="windowbg" align="left"><b>Most Recent Post:</b> '+lastpost+' by '+lastuser+'</td><td class="windowbg" align="left"><b>Guests Online:</b> '+guestsonline+'</td></tr><tr><td class="windowbg" align="left"><b><a href="/index.cgi?action=recent">View Ten Most Recent Posts</a></b></td><td class="windowbg" align="left"><b>Most users ever '+mostonline+'</b></td></tr><tr><td width="50%" class="catbg2" align="center" colspan="2" height="24"><b>Our members have made '+totalposts+' posts in '+totaltopics+' topics</b></td><td width="50%" class="catbg2" align="center" colspan="2" height="24">'+nowonline+'</td></tr></table>'; } } }
(extramods.. not sure exactly but i think its supposed to fix the news thing and the polls)
var TD = document.getElementsByTagName("TD"); for (i=0; i<TD.length; i++) { if (TD[i].className.match("windowbg") && TD[i].align=="left" && TD[i].vAlign=="bottom") { TD[i].className="bordercolor" } } var table = document.getElementsByTagName('table'); for(t=0; t<table.length; t++) { if(table.item(t).cellSpacing == "0" && table.item(t).bgcolor != "c4803e" && table.item(t).cellPadding != "0" && table.item(t).width == "100%") table.item(t).cellSpacing="2"; } var table = document.getElementsByTagName('table'); for(t=0; t<table.length; t++) { if(table.item(t).cellSpacing == "1" && table.item(t).bgcolor != "c4803e" && table.item(t).cellPadding != "0") table.item(t).cellSpacing="2"; }
(border end... doesn't really work unless you put in the border)
document.write('<br></td></tr><tr><td width="950" vAlign="top" height="48" align="center" style="background-repeat: no-repeat; background-image:url(http://i47.[tinypic.com]/34r6a7c.png);"><div align="center" style="width:848px;"><div style="float:left;" align="left"><font style="font-size:11px;">V.2.0 Skin Design by GGoodie, Graphics and Coding © 2009 Official Dan-Ball Forums</font></div><div style="float:right;" align="right"><font style="font-size: 11x;"><a href="/index.cgi?action=members&view=staff">Staff</a> - <a href="#">Back to Top</a></font></div></div></td></tr></table>')
(border)
document.write('<table width="951" cellspacing="0" cellpadding="0" align="center"><tr><td width="100%" style="background-image: url(http://i47.[tinypic.com]/166ws5s.png);">')
btw the forum should be 850 wide not 900
|
|
|
Post by info center on Mar 21, 2010 1:08:09 GMT -5
var membimg = "http://i50.[tinypic.com]/23th77.png"; var statimg = "http://i48.[tinypic.com]/30lkj8k.png";
if(!location.href.match(/action/) || location.href.match(/action=home/)){ var TD = document.getElementsByTagName("td"); var TAB = document.getElementsByTagName('table');
for(e=0;e<TD.length;e++){ if(TD[e].className == "catbg" && TD[e].innerHTML.match(/Forum Statistics/)) { var totalposts = (TD[e+2].innerHTML.match(/Total Posts: (\d+)(,\d+)?<br/i)) ? RegExp.$1+RegExp.$2: ''; var totaltopics = (TD[e+2].innerHTML.match(/Total Topics: (\d+)(,\d+)? &/i)) ? RegExp.$1+RegExp.$2: ''; var totalmembs = (TD[e+2].innerHTML.match(/Total Members: (.+?)<br/i)) ? RegExp.$1: ''; var newmemb = (TD[e+2].innerHTML.match(/Newest Member: (.+?)<\/a>/i)) ? RegExp.$1+'</a>': ''; var lastpost = (TD[e+2].innerHTML.match(/Last Updated Topic: (.+?) by/i)) ? RegExp.$1: 'n/a'; var lastuser = (TD[e+2].innerHTML.match(/by (.+?) \(/i)) ? RegExp.$1: 'n/a'; } if(TD[e].className == "catbg" && TD[e].innerHTML.match(/Users Online/)) { var mostonline = (TD[e+4].innerHTML.split(/Most\susers\s/)[1].split(/, /i)[0].split(/<br/i)[0]); var nowonline = (TD[e+4].innerHTML.split(/<br>/i)[1]); var staffonline = (TD[e+4].innerHTML.match(/(\d+) Staff/i)) ? RegExp.$1: '0'; var usersonline = (TD[e+4].innerHTML.match(/(\d+) Member/i)) ? RegExp.$1: '0'; var guestsonline = (TD[e+4].innerHTML.match(/(\d+) Guest/i)) ? RegExp.$1: '0'; } if(staffonline=="0" && usersonline=="0"){ var nowonline = "<i>No members online</i>"; } } for(e=0;e<TAB.length;e++){ if(TAB[e].width == "100%" && TAB[e].cellPadding == "4" && TAB[e].innerHTML.match(/Info Center/i) && TAB[e].innerHTML.match(/Forum Statistics/i)) { TAB[e].parentNode.innerHTML = '<table cellspacing="1" cellpadding="4" class="bordercolor" width="100%"><tr><td class="titlebg" align="center" colspan="4" height="26">Information Center</td></tr><tr><td class="catbg" align="center" colspan="2"><b>Statistics</b></td><td class="catbg" align="center" colspan="2"><b>Members</b></td></tr><tr><td class="windowbg" align="center" width="10%" rowspan="4"><img src="'+statimg+'"></td><td class="windowbg" align="left"><b>Total Members:</b> '+totalmembs+'</td><td class="windowbg" align="center" width="10%" rowspan="4"><img src="'+membimg+'"></td><td class="windowbg" align="left"><b>Staff Online:</b> '+staffonline+'</td></tr><tr><td class="windowbg" align="left"><b>Newest Member:</b> '+newmemb+'</td><td class="windowbg" align="left"><b>Members Online:</b> '+usersonline+'</td></tr><tr><td class="windowbg" align="left"><b>Most Recent Post:</b> '+lastpost+' by '+lastuser+'</td><td class="windowbg" align="left"><b>Guests Online:</b> '+guestsonline+'</td></tr><tr><td class="windowbg" align="left"><b><a href="/index.cgi?action=recent">View Ten Most Recent Posts</a></b></td><td class="windowbg" align="left"><b>Most users ever '+mostonline+'</b></td></tr><tr><td width="50%" class="catbg2" align="center" colspan="2" height="24"><b>Our members have made '+totalposts+' posts in '+totaltopics+' topics</b></td><td width="50%" class="catbg2" align="center" colspan="2" height="24">'+nowonline+'</td></tr></table>'; } } }
|
|
|
Post by louboutin on Mar 21, 2010 21:51:35 GMT -5
/me Tries to be cool. Fails.
This spambot shall suffer in the flames of the underdark for all eternity! And he shall have no cookies!
-Qwerty
|
|
|
Post by Qwerty on Mar 21, 2010 21:57:51 GMT -5
What's with the guest mini-profile?
|
|
|
Post by General Veers on Mar 21, 2010 22:18:55 GMT -5
The guest mini profile is my own creation. It takes away the excuse of not knowing the rules or where to post PG ideas. I am more proud of it than the member mini profile, which was developed from what I thought was our former mini profile with the help of a sample code.
Despite that I have implemented this Info Center from before the host disappeared, I am still willing to take responses from others. I may not guarantee that the request will be filled, but I would still like to see if others have ideas better than what we have now...
|
|
|
Post by Qwerty on Mar 21, 2010 22:46:41 GMT -5
It's interesting, but what about people that don't see guest posts?
|
|
|
Post by FoxtrotZero on Mar 22, 2010 8:57:46 GMT -5
Then they would have to be members. Members are expected to know and follow the rules. Members are punished otherwise.
Its guests that must be concerned over. Hence, the rules will never leave their side, and there is no excuse.
|
|
|
Post by Qwerty on Mar 22, 2010 9:03:14 GMT -5
Makes sense. I guess we could go with that.
|
|
|
Post by FoxtrotZero on Mar 22, 2010 9:05:34 GMT -5
I still find it cumbersome.
Perhaps we could either
A) Make it more streamlined or B) Remove it and force guests to see a ruleset before posting.
|
|
|
Post by lolwut on Mar 22, 2010 15:45:32 GMT -5
so you... dont want the codes anymore...? btw guests cant edit posts, so by the time they see the rules in their miniprofile its tool late
|
|
|
Post by General Veers on Mar 22, 2010 17:22:45 GMT -5
Ah, I nearly forgot that you posted the background border and the border end. Well, I just put them in. As for the guest mini profile, it's only too late the first time they post. After that, if they come back, they have no excuse. The "first time" problem is the one problem, but is almost inevitable.
As for reworking the guest mini profile, I guess I could take that topic since I don't think there will be any other info center suggestions anyways. How could I make it more streamlined?
|
|