Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

November 30, 2022, 06:21:32 PM

Login with username, password and session length
Members
  • Total Members: 3853
  • Latest: tty456
Stats
  • Total Posts: 193625
  • Total Topics: 21107
  • Online today: 70
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 35
Total: 35

Author Topic: [Block] members with the most "posts per day"?  (Read 12910 times)

0 Members and 1 Guest are viewing this topic.

chrishicks

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #10 on: May 08, 2009, 04:51:09 AM »
I was wondering if someone could tell me why neither of the codes above work for me when I try to apply this as a center block in my memberlist from the custom action.

EDIT: I figured it out. It was turned off(hidden in memberlist) in the settings.

 Another question now. I used the second code in this topic and was wondering if someone could tell me how to add horizontal rule to separate the users.
« Last Edit: May 08, 2009, 04:59:50 AM by chrishicks »

JPDeni

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #11 on: May 08, 2009, 06:43:57 AM »
The printout on the second code is here:

Code: [Select]
echo '<table width=100%>';
foreach($poster as $top_user)
{
echo '<tr>
      <td align="left" width=100%>' . $top_user['link'] . '</td>
      <td align="left">| '. $top_user['count'] . '</td>
      </tr>';
}
echo '</table>';

You have two choices. Either you can remove the table formatting and add one hr or you can add two hrs -- one to each table cell. Either way, it's just basic html.

Code: [Select]
echo '<table width=100%>';
foreach($poster as $top_user)
{
echo '<tr>
      <td align="left" width=100%>' . $top_user['link'] . '<hr /></td>
      <td align="left">| '. $top_user['count'] . '<hr /></td>
      </tr>';
}
echo '</table>';

or

Code: [Select]
foreach($poster as $top_user)
{
echo '$top_user['link'] . ' | '. $top_user['count'] . '<hr />';
}

WBA Dude

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #12 on: June 14, 2009, 02:19:13 AM »
Sorry. Is this added in the html or php blocks?

Offline Ken.

  • Support Team
  • *
  • Posts: 4363
    • Our FamilyForum
Re: [Block] members with the most "posts per day"?
« Reply #13 on: June 14, 2009, 06:32:25 AM »
Sorry. Is this added in the html or php blocks?

Give it a try both ways to see what works, that way you don't have to wait for an answer. :up:
" If everything seems under control, you’re not going fast enough." - Mario Andretti
Yesterday When I was Young.

JPDeni

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #14 on: June 14, 2009, 07:28:45 AM »
php

WBA Dude

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #15 on: June 14, 2009, 09:21:20 AM »
thanks

JPDeni

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #16 on: June 14, 2009, 12:39:19 PM »
Take a look at the code. If it includes echo in it anywhere, it's php code.

WBA Dude

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #17 on: June 14, 2009, 12:42:02 PM »
Okay. Not as good with php :)

Thanks

sandmannd

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #18 on: September 02, 2009, 07:44:29 PM »
For some reason I have a hard time getting PHP codes to work. I tride this and it won't work for me. I would love to have this block. Any hints on what I did wrong. I copied and pasted the code into a PHP Code block. Made sure my members were checked and hit save and then activated it. What else would I need to do?

I'm running TinyPortal v1.0 beta 3 © Bloc   Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC  

JPDeni

  • Guest
Re: [Block] members with the most "posts per day"?
« Reply #19 on: September 02, 2009, 08:27:52 PM »
Quote
Any hints on what I did wrong.

Only if you tell us what "won't work" means. Are you getting an error message? A blank block? No block at all? Strange letters?