News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

SSI Latest Members

Started by ディン1031, August 09, 2007, 10:31:58 PM

Previous topic - Next topic

ディン1031

Link to Mod

This Mod add to the SSI.php a function for built a list of latest Members with some options for it. It will show only activated new members.

New Function:
ssi_latestMembers(INT members, STRING outputType, STRING output_method)


Syntax Description:

  • INT members: Number of Members that should be show, standard = 5
  • STRING outputType: Follow output types exists: 'post', 'date' and 'list'.
    • post: show a list of the new users with his current post count.
    • date: show a list of the new user with his registered date.
    • list: Output a comma seperated list.
    If nothing insert it will show 'post'
  • STRING output_method - If set to "echo", the function will echo the data, otherwise it will return an array

If you installed the SSI Member Color Link than it will attach the colors of the member group to the link.

Hope it's useful for the user who use SSI includes or TinyPortal. To see if it work look into the ssi_examples.php after the install.

Version log:

Version 1.0.0
!*+- First release


Version 1.0.1
! Fix a mistake in the coloring



Legend:
! Bug fix
*changes
+ New features
- Info Only
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

hvyhitter

guess i am going to have to learn how to do SSI commands.. I installed this mod.. installed fine.. but. nothing happened.. :D
:-X

saosangmo

I call the function which has dateregistered and posts of member. How do I?

my code is below
<?php require("/home/xxx/public_html/yyy/SSI.php");
echo ssi_latestMembers(5, 'list'); flush();
?>
but it doesn't work.

ディン1031

ssi_latestMembers(5, 'date'); for the registered Date
ssi_latestMembers(5, 'posts'); or ssi_latestMembers(5); to see it with posts. ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

saosangmo

Thank  ディン1031,
Now I want to display my users with the below structure:

member                        date                        posts
zzzthaxxxxxxxxxx       18/08/07,16:03         0
haitxxxxxxx                  18/08/07, 16:02       0
deax                              17/08/07, 13:57       1
xxxxghn230472              17/08/07, 13:42       1

How do I?

many thanks

ディン1031

#5
Quote from: saosangmo on August 20, 2007, 02:23:02 AM
Thank  ディン1031,
Now I want to display my users with the below structure:

member                        date                        posts
zzzthaxxxxxxxxxx       18/08/07,16:03         0
haitxxxxxxx                  18/08/07, 16:02       0
deax                              17/08/07, 13:57       1
xxxxghn230472              17/08/07, 13:42       1

How do I?

many thanks
Hmmm ;) not so easy it's stand not there that my function ca do this ;).

with this is possible:

<?php
$latestMembers = ssi_latestMembers(5, 'list', 'array');
echo '
<table class="ssi_table">'
;
foreach ($latestMembers as $temp) {
echo '
<tr>
<td align="right">'
, $temp['link'], '</td>
<td align="center">'
, $temp['registered'], '</td>
<td align="left">'
, $temp['posts'], '</td>
</tr>'
;
}
echo '
</table>'
;
?>


Bye
DIN1031

Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

saosangmo

many thanks, work very well

Amun

Very cool mod and thank you for updating it, as I just found this hidden treasure.
:D :D :D

Vincent Volmer

Hello,

I have installed the SSI_Laters_Members on my 2.0RC1 forum and I'm getting the next error (in ssi_examples.php and in a block):

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.024' at line 5
Bestand: /shared/usr/wcen123456/DOMAIN/www.digiscrap.nl/HTML/SSI.php
Regel: 768


What am I doing wrong?

On line 768 in SSI.php is:

LIMIT $members");

Thanks for any answer.

Vincent Volmer

ディン1031

Quote from: Vincent Volmer on March 02, 2009, 03:29:13 PM
Hello,

I have installed the SSI_Laters_Members on my 2.0RC1 forum and I'm getting the next error (in ssi_examples.php and in a block):

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1.024' at line 5
Bestand: /shared/usr/wcen123456/DOMAIN/www.digiscrap.nl/HTML/SSI.php
Regel: 768


What am I doing wrong?

On line 768 in SSI.php is:

LIMIT $members");

Thanks for any answer.

Vincent Volmer
I thought i changed it for SMF 2 oO looks like the 1.1.8 version...
I will look at it after work.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Vincent Volmer

Quote from: ディン1031 on March 03, 2009, 01:40:04 AM

I thought i changed it for SMF 2 oO looks like the 1.1.8 version...
I will look at it after work.

Bye
DIN1031

Thank you very much for your quick reply!
And thanks for updating the mod.

Vincent

ディン1031

Quote from: Vincent Volmer on March 03, 2009, 01:45:19 AM
Quote from: ディン1031 on March 03, 2009, 01:40:04 AM

I thought i changed it for SMF 2 oO looks like the 1.1.8 version...
I will look at it after work.

Bye
DIN1031

Thank you very much for your quick reply!
And thanks for updating the mod.

Vincent
Hmmm i can't reproduce this... how did you insert the value? :X

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Vincent Volmer

#12
Quote from: ディン1031 on March 03, 2009, 04:21:35 PM

Hmmm i can't reproduce this... how did you insert the value? :X

Bye
DIN1031

Thanks for your answer!

I manual installed the mod and I used the Manual Install Instructions from simplemachines.org :
http://custom.simplemachines.org/mods/index.php?mod=886

Other mods installed:
1.     Custom Fields On Memberlist      1.0
2.    SMF Gallery Pro Recent Profile Images    1.0
3.    PortaMx v0.956    0.956
4.    Prettier_Quotes    1.12
5.    Global Headers Footers    2.0
6.    Internal_Links_Use_Same_Window    1.2
7.    Ad Managment    2.3.4
8.    Users Online Today    1.5.4
9.    SMF Gallery Pro    1.4.5
10.    SMF Gallery Pro SSI    2.0
11.    Member Color Link    3.0.6
12.    SMF Gallery Pro Recent Comments Board Index    2.0
13.    SSI Latest Members    1.0.1
14.    MCLegendII RC1    3.0

Edit: Also the same error on my test website

Thanks in advance,
Vincent

Vincent Volmer

I found a problem in this:

LIMIT $members");

When I change $members into 5 it shows the last 5 members. Without any errors......

LIMIT 5");

Maybe this helps .....

Vincent

Redryder


Vincent Volmer


ディン1031

Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Vincent Volmer


Vincent Volmer

Quote from: Vincent Volmer on March 22, 2009, 04:52:02 PM
I found a problem in this:

LIMIT $members");

When I change $members into 5 it shows the last 5 members. Without any errors......

LIMIT 5");

Maybe this helps .....

Vincent

I have still the same issue with SMF2.0 RC2

Vincent

ディン1031

strange... normal it should be given by the function itself...
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Advertisement: