TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,946
  • Latest: Sparo
Stats
  • Total Posts: 195,717
  • Total Topics: 21,276
  • Online today: 125
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 57
  • Total: 57

New members Block

Started by akulion, October 09, 2006, 07:08:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shadow

Alright, I have one tiny problem's. I have 24 new member's join the forum this month.

The code saying I have 23 new member's join this month.

New this week.  I have two new this week and the code saying i have one new this week.

JPDeni

Tell me which days this week you've had new members join. Was it Sunday and Monday or two on Monday? How about this month? Did you have one on the first day of the month?


Shadow

This month i have 24 member's join the forum.   I have two new member's join this week.  I think one on money and anther last night or so.

JPDeni

I need to know whether you had one on the first of the month or one on Sunday. I need specific information in order to be able to trouble-shoot the code.

Shadow

Last tueday they join the forum..

JPDeni

Oh. Well last Tuesday isn't part of this week. "This week" starts on Sunday. Or did you want "within the past 7 days" instead of "this week"? They mean two very different things.

Shadow

I'm sorry, I didn't know that.  Yes, I want it then 7 week day's

JPDeni

Sorry. I didn't see your post before. You can change the time frames to match what you want. The original code is


date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');


You can change it to


$thismonth = strtotime("30 days ago");
$thisweek = strtotime("7 days ago");
$thisyear = strtotime("1 year ago");

Ghostwriter

I was wondering if I added this to the stats box where do I add it in there is no place to add code, just the title and then what you want showing.

IchBin

You have to add the code manually. TPortalBlocks.template.php is where thats at.

This website is proudly hosted on Crocweb Cloud Website Hosting.