Compguy11 Custom Modifications: IBStore Points Not Loading - Compguy11 Custom Modifications

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IBStore Points Not Loading Rate Topic: -----

#1 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 17 August 2006 - 03:52 PM

I am aware that because I assumed IBStore loaded points on a global scale, Member Teams does not get the correct points value and this may stop you from using the points part of Member Teams. I am not aware of ALL the different points systems out there, so try yours first, and then come here and do this edit if you are having trouble.

Find(in /sources/components_public/teams.php):
		//run member data cache
		$this->ipsclass->DB->simple_select( "id, name, members_display_name", "members" );
		$this->ipsclass->DB->simple_exec();
		while ( $mem = $this->ipsclass->DB->fetch_row() ){
			$this->mem_data[ $mem['id'] ] = $mem['members_display_name'];
		}


Replace With:
//run member data cache
		$query_string = "id, name, members_display_name, mgroup";
		if( $this->ipsclass->vars['mt_points_needed'] > 0 ){
			$query_string .= ", points";
		}
		$this->ipsclass->DB->simple_select( $query_string, "members" );
		$this->ipsclass->DB->simple_exec();
		while ( $mem = $this->ipsclass->DB->fetch_row() ){
			$this->mem_data[ $mem['id'] ] = $mem['members_display_name'];
			$this->mem_group_data[ $mem['id'] ] = $mem['mgroup'];
			//I like running into myself..lol.
			if( $mem['id'] == $this->ipsclass->member['id'] && isset( $mem['points'] ) ){
				$this->ipsclass->member['points'] = $mem['points'];
			}
		}

Save and upload..that should fix your problem..

The main reason I'm posting this here is because the current topic on IZE for support is 25 pages long..and so I'd rather have a simple fix here..please point people to this topic in the future.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

#2 User is offline   Fuelme Icon

  • Newbie
  • Group: Members
  • Posts: 4
  • Joined: 16-August 06

Posted 17 August 2006 - 05:07 PM

Very cool!! Works great.
0

#3 User is offline   Funky Diver Icon

  • Newbie
  • Group: Members
  • Posts: 5
  • Joined: 11-December 06

Posted 13 December 2006 - 11:05 AM

This might sound a bit wierd, however, will removing the first script set prevent points being allocated for people using Member Teams?

//run member data cache
		$this->ipsclass->DB->simple_select( "id, name, members_display_name", "members" );
		$this->ipsclass->DB->simple_exec();
		while ( $mem = $this->ipsclass->DB->fetch_row() ){
			$this->mem_data[ $mem['id'] ] = $mem['members_display_name'];
		}


ie That bit?
0

#4 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 13 December 2006 - 04:56 PM

I am not exactly sure what you are asking, but points are only used if it is selected in the ACP, and DO NOT remove that code bit from your source code. That code bit is VERY important to Member Teams.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

#5 User is offline   Funky Diver Icon

  • Newbie
  • Group: Members
  • Posts: 5
  • Joined: 11-December 06

Posted 14 December 2006 - 10:33 AM

OK, promise not to do anything of that nature :mellow:

I've since installed the points thing (Perfect Points) and you can set the points award per forum area, so we've just quarantined the Parent Forum from receiving points. Should do the job nicely :)

I'm not trying to be a nuisance, honest, just keen as beans with all the wonderful mods available for IPB :)
0

#6 User is offline   compguy11 Icon

  • Head Programmer
  • Group: Management
  • Posts: 1,674
  • Joined: 26-November 04
  • Gender:Male
  • Location:Wherever you need me...

Posted 14 December 2006 - 11:49 PM

I understand, I am sorry if I seem like a meanie. I'm really not, I've just had to deal with a lot of people asking stupid questions about my mods that could be easily answered if they just looked a bit...

All of your questions have been great. Hope that works for you.
compguy11

http://compguy11.com

[ You may PM me if you have any questions or you wish to discuss a custom modification. ]
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users