[BETA] Ultimate Board Clubs 1.0.3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
GaDo
Registered User
Posts: 63
Joined: Sat Jul 31, 2004 8:50 am

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by GaDo »

Okey. Thanks.

I can use this Mod with Ultimate Points for give money to clubs AND users?

(sorry for my bad english)

EDIT: The solution work sometimes.

Very weird.
Jabhi
Registered User
Posts: 572
Joined: Mon Feb 27, 2012 6:12 am

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by Jabhi »

Any updates please .. :)
Go phpBB go... Respected : Developers, Supporters.
king577
Registered User
Posts: 66
Joined: Mon Mar 01, 2010 7:28 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by king577 »

Hi,

Its looks like a great mod!

Any update? :)
Sorry for the mistakes I do from time to time in English. This is not my native language. I am trying to improve my English, so please notify me about any mistakes I make. Thanks! :)
stepenik
Registered User
Posts: 57
Joined: Mon Apr 25, 2011 9:19 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by stepenik »

Hi all i'm testing but when i go in group and go make new topic and i'm created new topic i go post and i go to view IP Adress and i view this

Fatal error: Cannot redeclare user_get_id_name() (previously declared in /home/myinfo/public_html/includes/functions_user.php:27) in /home/myinfo/public_html/includes/functions_user.php on line 82

Any help ???? How to repair this

Code: Select all

/**
* Obtain user_ids from usernames or vice versa. Returns false on
* success else the error string
*
* @param array &$user_id_ary The user ids to check or empty if usernames used
* @param array &$username_ary The usernames to check or empty if user ids used
* @param mixed $user_type Array of user types to check, false if not restricting by user type
*/
function user_get_id_name(&$user_id_ary, &$username_ary, $user_type = false)
{
	global $db;

	// Are both arrays already filled? Yep, return else
	// are neither array filled?
	if ($user_id_ary && $username_ary)
	{
		return false;
	}
	else if (!$user_id_ary && !$username_ary)
	{
		return 'NO_USERS';
	}

	$which_ary = ($user_id_ary) ? 'user_id_ary' : 'username_ary';

	if ($$which_ary && !is_array($$which_ary))
	{
		$$which_ary = array($$which_ary);
	}

	$sql_in = ($which_ary == 'user_id_ary') ? array_map('intval', $$which_ary) : array_map('utf8_clean_string', $$which_ary);
	unset($$which_ary);

	$user_id_ary = $username_ary = array();

	// Grab the user id/username records
	$sql_where = ($which_ary == 'user_id_ary') ? 'user_id' : 'username_clean';
	$sql = 'SELECT user_id, username
		FROM ' . USERS_TABLE . '
		WHERE ' . $db->sql_in_set($sql_where, $sql_in);

	if ($user_type !== false && !empty($user_type))
	{
		$sql .= ' AND ' . $db->sql_in_set('user_type', $user_type);
	}

	$result = $db->sql_query($sql);

	if (!($row = $db->sql_fetchrow($result)))
	{
		$db->sql_freeresult($result);
		return 'NO_USERS';
	}

	do
	{
		$username_ary[$row['user_id']] = $row['username'];
		$user_id_ary[] = $row['user_id'];
	}
	while ($row = $db->sql_fetchrow($result));
	$db->sql_freeresult($result);

	return false;
}

/**
* Get latest registered username and update database to reflect it
*/
function update_last_username()
{
	global $db;
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by woipi90 »

hm just fixed the small problem with the search just reupload the functions_clubs.php
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by Jessica »

I did that but the error still appears...?
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
stepenik
Registered User
Posts: 57
Joined: Mon Apr 25, 2011 9:19 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by stepenik »

Jessica wrote:I did that but the error still appears...?
I confirm this

@Jessica you have this
Image
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by Jessica »

Yep
Fatal error: Cannot redeclare user_get_id_name() (previously declared in /home/jesschen/public_html/phpBB3/includes/functions_user.php:27) in /home/jesschen/public_html/phpBB3/includes/functions_user.php on line 82
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by woipi90 »

Jessica wrote:I did that but the error still appears...?
sry try now.. uploaded the old package..

changed: clubs.php and includes/functions_clubs.php
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by Jessica »

Fixed now! thanks
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
stepenik
Registered User
Posts: 57
Joined: Mon Apr 25, 2011 9:19 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by stepenik »

Yeah work nice Woipi thanks bro ;)
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by woipi90 »

any other problems?
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
togbish
Registered User
Posts: 128
Joined: Mon May 16, 2011 8:06 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by togbish »

woipi90 wrote:any other problems?
Yes. Two things.
1. The Admin and Moderators should be able to see the clubs even without being members. I get this message as the Admin checking in on one of the clubs.
You are not allowed to view the categories and comments in this club because you are not a member of this club.

2. If you have different topics in the clubs, it would be nice if it updates posters who post after the topic starter. You are not able to know who the last poster is. It always show the topic starter as LAST REPLY, no matter how many people posted afterwards. Thanks.
stepenik
Registered User
Posts: 57
Joined: Mon Apr 25, 2011 9:19 pm

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by stepenik »

Image

I think is better /ucp.php?i=pm&mode=compose&u=x
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [BETA] Ultimate Board Clubs 1.0.2

Post by Jessica »

I still have the search board clubs problem (looks messed up)
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Locked

Return to “[3.0.x] MODs in Development”