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

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 12:21:31 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 108
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 117
  • Total: 117

Multi-Functional members snippet

Started by Megaforum, January 18, 2008, 04:37:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ACE420

I configured only what was able to be edited. (left the MemberSnippet.php) untouched since that is above me in editing. I had my 5 top posters showing 'only'. 1 of them witch uploaded there avatar to the server. this made an error cause guests could not see it till the signed in. I fixed that error by removing his avatar from server and had him post on a image sharing site. Also when his avatar was in the profile when you logged it took you to his avatar link on server you had to back space and re log only in IE, fire fox did not do this. Why this other error posted above me is there i cant figure.

1 thing i did not try is open up main bored to guests this may take care of the error since it only came in as you was a guest. witch makes me thing it was a permission issue.When i have more time to look this over more closely i will post back results.

This is a really good snippet just need to work this one error out.

P.S I'm not looking for support just reported an error i received.

Dragooon

I tried every singe possibility and no errors found, umm I think I'll look onto this.

eline

#12
I have problem with additional members group.
I have group called friends and would like to have snippert to show only friends on one page.

This snippet dont works with custom group, - when I choose 'all' - works
with few groups Id's - works only with standard groups, for rest query is empty. Could You check this ?

I use 114,
Group (friends) with ID 9 is in database, working, etc

[quote]

/***********************************
*   Multi-Function Members Snippet
*   By Dragooon
*   Version 1.0
*   www.gforumx.com
************************************/
// Call the source file
global $sourcedir;
require_once($sourcedir . '/MemberSnippet.php');

/************************************
* How To Customize!
************************************/
# This is how to customize the block. To customize this please edit the variable given in the Below function call (members). Do Not edit the variables given in this How To. This How to explains, what is the variable is and what does it do.
# How to Customize is given below.
# Make sure not to remove ANY comma
# Make sure not to remove "array()" part in the $memberGroups array.

# $mode - Controls the mode of the snippet
# 1 - Random
# 2 - Recently Registered
# 3 - Top poster

# $limit - Maximum no. of members to show

# $memberGroups - If set, will only show members from this groups
# - Leave blank to show from all groups
# - Enter ID's of groups NOT names
# - Use comma as a seperator
# Example : $memberGroups = array(1, 2, 3),

# $getPosts - Weather to show there posts or not
# 0 - For Not Showing them
# 1 - For Recent Posts
# 2 - For Recent Topics
# 3 - For Random Posts
# 4 - For Random Topics

# $getPostsLimit - No of topics/post to show

# $columns - No. of columns to divide the block in

# Below are some config variables to show various things, use 'true' as a yes and 'false' as a no(Without Quotes)
# $show_numPosts - Weather to show there number of posts or not
# $show_memberGroupName = Show there memberGroup names or not
# $show_memberGroupStars - Weather to show there membergroup's stars or not
# $show_lastLogin - Weather to show there last login or not
# $show_personalTitle - Weather to show there personal title or not
# $show_customTitle - Weather to show there custom title or not
# $show_gender - Weather to show there gender or not
# $genderUseImages - Weather to show gender as images or texts
# $show_registerDate - Weather to show there register date or not
# $show_avatar - Weather to show there avatar or not
/************************************
* End How to Customize!
************************************/

/************************************
* The Finale!
************************************/

members(
$mode = 2,
$limit = 99,
$memberGroups = array(9),
$getPosts = 0,
$getPostsLimit = 5,
$columns = 6,
$show_numPosts = false,
$show_memberGroupName = false,
$show_memberGroupStars = false,
$show_lastLogin = false,
$show_personalTitle = false,
$show_customTitle = false,
$show_gender = true,
$genderUseImages = true,
$show_lastLogin = false,
$show_registerDate = false,
$show_avatar = true
);

// Thank you for using this snippet :)

[/quote]


best regards

Dragooon

I didn't made it to work with Additional groups, I'll consider that later.

eline

ups , for my it will by the best solution for this mod to print each group what we made (friends, class in school, or VIP) on separated pages. Also I dont like quering database on each box, few times, then I have 50 queries in to with few boxex and snipets ...

alving

#15
nice code dragoon!

just a thought,,,  is it possible to display a default image for members without avatar?

it seems not to work when you specify it to get a random member from a specific group

is it possible to get the avatar size to 100px..  member avatars are displayed at the original size.  this becomes a problem especially for member who hotlinked their avatar to their profile..

~FS~grizz

Quote from: Dragooon on February 20, 2008, 12:19:34 PM
I didn't made it to work with Additional groups, I'll consider that later.

1> Has this been updated to work with additional groups?

2> Can it be set to list in order rather than random/recent registered/top poster

3> Can I run more than one instance of it?