Jump to content


* * * * * 8 votes

[Unsupported] iPoints System 2.0.4


  • Please log in to reply
356 replies to this topic

#1 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts
  • IPB Version:v3.2.x
Contributor

Posted 09 February 2007 - 01:39 AM

File Name: [Unsupported] iPoints System 2.0.4
File Submitter: -Calypso-
File Submitted: 8 Feb 2007
File Updated: 3 Jun 2007
File Category: IP.Board v2.2.x Mods

Points+Transfer+Bank+Shop+Lotto Modification
This modification is a points system for your IPB v2.2.x board; This points system comes with the following features:

- iPoints Increase Per New Thread.
- iPoints Increase Per Reply.
- Ability To Set iPoints New Thread Value And Reply Value Per Forum.
- Admins Can Edit Members Points via AdminCP (No Extrenal Admin Controls).
- iPoints System "On/Off" Option In AdminCP.
- iPoints Donation(s) From Member To Member.
- New PM To Member Receiving Donation.
- Individual Transactions Table.
- Global Transactions Table.
- Compatable With PHP4 & PHP5.
- Bank System
- Shop System
- Lottery System

Click here to download this file

Edited by -Calypso-, 03 June 2007 - 05:20 AM.
Title edited for clarification


#2 Armando

Armando

    Back from hell...

  • Members
  • PipPipPipPipPipPipPip
  • 533 posts
  • Location:Luton, England
  • Real Name:James
  • IPB Version:v2.3.x
Contributor

Posted 09 February 2007 - 02:16 AM

I'll be a ginuea pig laugh.gif
Insert clever comment here > * <

#3 Master_Odin

Master_Odin

    .:.|+_+|.:.:.|+_+|.:.

  • Members
  • PipPipPipPipPipPip
  • 279 posts
  • Location:US
  • Real Name:Matthew
  • IPB Version:v2.3.x
Contributor

Posted 09 February 2007 - 03:44 AM

This is awesome! biggrin.gif

Now I can't wait for the next release tongue.gif
"One of the universal rules of happiness is: always be wary of any helpful item that weighs less than its operating manual."
-Terry Pratchett


~My Mods~

Like my mods? Like my support? Like me? Well...
Posted Image

#4 Nightwisher

Nightwisher

    Coder

  • Banned
  • PipPipPipPipPip
  • 221 posts
  • Location:Bosnia
  • Real Name:Damir
  • IPB Version:v2.3.x

Posted 09 February 2007 - 07:19 PM

If you are upgrading you must rewrite this in :

Section: Topic View

Template Bit: RenderRow

CODE
<if="ipb.vars['points_on'] == 1 AND ipb.member['id']"><br />
{$author['member_points']}
<a href="{$this->ipsclass->base_url}act=points&CODE=05&userid={$author['id']}"><br /><b>Donate iPoints</b></a><br>
</if><br />


With this:

CODE
{$author['member_points']}


Also you must do this in  sources/classes/class_session.php

find this
CODE
members_cache, members_disable_pm, points",


replace with this:
CODE
members_cache, members_disable_pm, points, deposited_points",


Thanks for upgrade excelent work !

Friendly
Nightwisher

Edited by Nightwisher, 09 February 2007 - 07:20 PM.


#5 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts
  • IPB Version:v3.2.x
Contributor

Posted 10 February 2007 - 03:52 AM

I have added a few lines to the components_public.php to block negative numbers from being used, also added a few error messages to lang_points.php, last thing is the points inc code I cant figure out, it appears not to work.

CODE
$points_type = "";
        
        if ( $this->ipsclass->vars['points_on'] && $this->ipsclass->member['id'] && $this->ipsclass->member['g_points'] )
        {
            if ( $this->ipsclass->input['CODE'] == '01' )
            {
                $points_type = 'newthreadpoints';
            }
            else if ( $this->ipsclass->input['CODE'] == '03' && !$this->is_merging_posts )
            {
                $points_type = 'replypoints';
            }
        }
        
        if ( $this->forum[ $points_type ] )
        {
            $pcount .= "points=points+".$this->forum[ $points_type ].", ";
        }


#6 stlmike

stlmike

    Member

  • Members
  • PipPipPip
  • 32 posts
  • Real Name:Mike
  • IPB Version:N/A

Posted 10 February 2007 - 07:24 AM

Try this


Open class_post.php

Find
CODE
$points_type = "";


Below it Add
CODE
$ipoints = "";


Find

CODE
$pcount .= "points=points+".$this->forum[ $points_type ].", ";



Replace with

CODE
$ipoints .= " , points=points+".$this->forum[ $points_type ].", ";



Find
CODE
$this->ipsclass->DB->simple_construct( array( 'update' => 'members',
                                                          'set'    => $pcount.$mgroup." last_post=".intval($this->ipsclass->member['last_post']),
                                                          'where'  => 'id='.$this->ipsclass->member['id']
                                                 )      );


Replace with
CODE
$this->ipsclass->DB->simple_construct( array( 'update' => 'members',
                                                          'set'    => $pcount.$ipoints.$mgroup." last_post=".intval($this->ipsclass->member['last_post']),
                                                          'where'  => 'id='.$this->ipsclass->member['id']
                                                 )      );


Save and Close

I tested it and it was working for me

Edited by stlmike, 10 February 2007 - 07:26 AM.


#7 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts
  • IPB Version:v3.2.x
Contributor

Posted 10 February 2007 - 07:29 AM

Yes, works for me also. Thanks very much. I will make the necessary filed edits to the mod and upload them. smile.gif

#8 stlmike

stlmike

    Member

  • Members
  • PipPipPip
  • 32 posts
  • Real Name:Mike
  • IPB Version:N/A

Posted 10 February 2007 - 07:36 AM

QUOTE(-Calypso- @ Feb 10 2007, 01:29 AM) <{POST_SNAPBACK}>
Yes, works for me also. Thanks very much. I will make the necessary filed edits to the mod and upload them. smile.gif



No problem

#9 Sparkysback

Sparkysback

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 136 posts
  • IPB Version:v2.3.x

Posted 10 February 2007 - 11:20 AM

Sounds really good  thumbsup.gif

I'm currently using iPoints v2.0.0

Do i take all the edits out, then add the new ones?

Posted Image


#10 Nandos

Nandos

    n00b

  • Members
  • Pip
  • 2 posts
  • IPB Version:v2.1.x

Posted 10 February 2007 - 12:04 PM

Thats what I did

btw, great mod smile.gif Like the shop feature.

Edited by Nandos, 10 February 2007 - 12:04 PM.


#11 Neville

Neville

    Advanced Member

  • Members
  • PipPipPipPip
  • 69 posts
  • IPB Version:v2.3.x

Posted 10 February 2007 - 01:51 PM

Can someone give me a brief summary on how to upgrade? I'm bit confused.
╔╗╔═╦╗
║╚╣║║╚╗
╚═╩═╩═╝

#12 KS2007

KS2007

    n00b

  • Members
  • Pip
  • 4 posts
  • IPB Version:v2.2.x

Posted 10 February 2007 - 03:04 PM

QUOTE(blade32 @ Feb 10 2007, 01:51 PM) <{POST_SNAPBACK}>
Can someone give me a brief summary on how to upgrade? I'm bit confused.


Upload all files .... to directorys .. run the installer (via universal mod installer) ...

then look at the post by Nightwisher hes given the edits you need to make i upgrading .............

#13 KS2007

KS2007

    n00b

  • Members
  • Pip
  • 4 posts
  • IPB Version:v2.2.x

Posted 10 February 2007 - 04:47 PM

Errors

Change Other Member's Title

I select this option it goes to a screen that displays the username of the user the Current User Title (Blank even if the user has something written for thata field). The cost which is fine and then space to enternew title. When filled and press Purchase i get the error

Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

The error returned was:
Sorry, we could not find that member

I double checked and even on the screen where you purchase this the members username goes to the correct user profile so it does exist ....

The option is also set to Yes in admin control panel ..........

Suggestions

I'm hoping you have the time to expand the shop vastly .......... a few features would be ...

The bank option when you save points to the bank you are knocked off the rich list.. any way of making it read and total from the bank and the points field?
Members being able to purchase subscriptions via Shop.
A History of users shop purchases (seen by user) and an admin version so admin can check this as well via admin panel or something.
Increase PM Storage. Members can use points to increase their PM storage (with a set maximum they can purchase). (i know these are based on group settings so may be hard to make them based upon individual users)?
Increase Attachment Space. Members can use points to increase their attachment storage (with a set maximum they can purchase). (i know these are based on group settings so may be hard to make them based upon individual users)?
By pass flood control.
Attachments in PM's.
Purchase the use of Bold, italic, glow, for the display name in topic view / profile.


Are any of these possible and are u interested in making any of these?

#14 Michael

Michael

    See code 431.322.12 of the Internet Privacy Act

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 22,042 posts
  • Location:Columbus, OH
  • Real Name:Michael McCune
  • IPB Version:v3.1.x
Contributor

Posted 10 February 2007 - 05:28 PM

I did test the code I suggested for class_post.php, it worked fine for me, there is really no need to have to make so many edits as stlmike suggested.

EDIT.  OK, I see what the problem with my code is.  The code I suggested for this class_post.php file is just in the wrong place, it should go immediately above this line:
CODE
$this->ipsclass->member['last_post'] = time();

So the correct instructions for class_posts.php are:

Find:
CODE
$this->ipsclass->member['last_post'] = time();

Add Above:
CODE
$points_type = "";
        
            if ( $this->ipsclass->vars['points_on'] && $this->ipsclass->member['id'] && $this->ipsclass->member['g_points'] )
            {
                if ( $this->ipsclass->input['CODE'] == '01' )
                {
                    $points_type = 'newthreadpoints';
                }
                else if ( $this->ipsclass->input['CODE'] == '03' && !$this->is_merging_posts )
                {
                    $points_type = 'replypoints';
                }
            }
            
            if ( $this->forum[ $points_type ] )
            {
                $pcount .= "points=points+".$this->forum[ $points_type ].", ";
            }

Save and upload.  You should always try and do as few edits as possible, if you find you have to do 4 edits to a single block of code, you're probably doing something wrong.
Michael McCune - IPS Marketplace Moderator

My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter

#15 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts
  • IPB Version:v3.2.x
Contributor

Posted 10 February 2007 - 06:25 PM

Much thanks forthe help Michael, I have edited the Fresh_Install.html and re-uploaded the mod.

#16 kidofthecentury

kidofthecentury

    Advanced Member

  • Members
  • PipPipPipPip
  • 95 posts
  • Location:Santiago, Chile
  • Real Name:Fabián
  • IPB Version:v2.3.x

Posted 10 February 2007 - 06:51 PM

So is now working fine? I'll be another Ginuea pig, thank you very much happy.gif

Posted Image


#17 Toa1337

Toa1337

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:San Diego California
  • Real Name:Michael Fine
  • IPB Version:v2.2.x

Posted 10 February 2007 - 06:51 PM

It says my group isnt alowed to use the points system, help?

#18 -Calypso-

-Calypso-

    i have a belly button

  • Members
  • PipPipPipPipPipPipPip
  • 671 posts
  • IPB Version:v3.2.x
Contributor

Posted 10 February 2007 - 06:54 PM

use the components menu to check and set your permissions.

#19 Toa1337

Toa1337

    Novice

  • Members
  • PipPip
  • 12 posts
  • Location:San Diego California
  • Real Name:Michael Fine
  • IPB Version:v2.2.x

Posted 10 February 2007 - 06:58 PM

Thanks! Now it works.

#20 Sparkysback

Sparkysback

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 136 posts
  • IPB Version:v2.3.x

Posted 10 February 2007 - 08:36 PM

Thanks for the update

I did notice in Components Universal Mod Installer

Points System is not marked Up To Date?

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users