Closed Thread
Results 1 to 6 of 6

Thread: phpBB3 credits system

  1. #1
    unknownperson is offline x10Hosting Member unknownperson is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    13

    phpBB3 credits system

    Is there a mod/hack for this?
    If so i would really like the link. Thanks.

  2. #2
    Mitch's Avatar
    Mitch is offline x10 Elder Mitch is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Netherlands
    Posts
    906

    Re: phpBB3 credits system

    I know one. It is called Cash Mod by Handyman.

    The link:
    http://startrekguide.com/community/v...php?f=27&t=751

    But this addon isn't that far yet. View the roadmap (second post)
    Last edited by Mitch; 03-25-2008 at 04:04 PM.
    My Website: mitch.exofire.net (currenly not really working on it ;))



  3. #3
    unknownperson is offline x10Hosting Member unknownperson is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    13

    Re: phpBB3 credits system

    OK what do i do now i have downloaded it and put it in the prosilver category with templates?
    it's not working my template is set as management.html but that hasn't worked?
    What is the problem?
    Last edited by unknownperson; 03-25-2008 at 05:15 PM.

  4. #4
    kkenny's Avatar
    kkenny is offline Lord Of The Keys kkenny is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    I REP THE BAY. (Bay Area, CA, USA)
    Posts
    1,950

    Re: phpBB3 credits system

    Did the download come with instruction guide?

    If so go read it
    kkenny - retired.
    -Became a Moderator/Staff Member on 4/23/08
    -Became Senior Mod on 8/28/08
    -Became Account Manager on 10/18/08
    -Left Staff and X10 in 2009.


  5. #5
    Mitch's Avatar
    Mitch is offline x10 Elder Mitch is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Netherlands
    Posts
    906

    Re: phpBB3 credits system

    I downloaded my self this is the install guide:
    ################################################## ############
    ## MOD Title: Cash Mod
    ## MOD Author: Handyman < Francis@michaellewismusic.com > (Francis Lewis) http://startrekguide.com
    ## MOD Description: Allows users to gain points/cash for posts they make.
    ##
    ## MOD Version: 0.3.2
    ##
    ## Installation Level: Intermediate
    ## Installation Time: 20 Minutes
    ## Files To Edit: 6
    ## includes/constants.php
    ## includes/functions_posting.php
    ## viewtopic.php
    ## memberlist.php
    ## styles/subSilver/template/viewtopic_body.html
    ## styles/subSilver/template/memberlist_body.html
    ##
    ## Included Files: 5
    ## cash_db.php
    ## includes/acp/acp_cash.php
    ## includes/acp/info/acp_cash.php
    ## adm/styles/acp_cash.html
    ## language/en/acp/cash.php
    ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
    ################################################## ############
    ## For security purposes, please check: http://startrekguide.com/forum/mods/
    ## Or http://phpbb.com/community/viewforum.php?f=70
    ## for the latest version of this MOD. No support
    ## will be given for MODs not found within the MODs Database
    ################################################## ############
    ## Author Notes:
    ##
    ## Copyright 2007 © Handyman.
    ##
    ################################################## ############
    ## History:
    ## (yyyy-mm-dd)
    ## 2006-10-12 - Version 0.0.1 (BETA)
    ## - Beta release
    ## 2007-02-03 - Version 0.1.0
    ## - Added display on viewtopic and memberlist
    ## 2007-03-03 - Version 0.2.0
    ## - Added cash toggle switches so it only works if you have it set in the ACP
    ##
    ## 2007-05-27 - Version 0.3.0
    ## - Added view all users cash amounts in profile
    ## - Added Bank Management for Admins and Mods with permission to edit users cash
    ## - Added permissions for admins and mods to edit users cash
    ## - Added prosilver and subsilver2 instructions
    ## - Updated to work with RC1
    ## - Cash on/off on per forum basis
    ## - Limit Cash per time period
    ##
    ## 2007-6-26 - Version 0.3.2
    ## - Serious code cleanup and overhaul
    ## - Made all cash instances into functions for easy upgrading
    ## - Finished the ACP so it now controls all currently available options
    ## - Made link to Bank in viewtopic
    ################################################## ############

    #
    #-----[ COPY ]----------------------
    #
    root/adm/style/acp_cash.html to adm/style/acp_cash.html
    root/cash_db.php to cash_db.php
    root/includes/acp/acp_cash.php to includes/acp/acp_cash.php
    root/includes/acp/info/acp_cash.php to includes/acp/info/acp_cash.php
    root/includes/mods to includes/mods
    root/ucp/ucp_bank.php to ucp/ucp_bank.php
    root/ucp/info/ucp_bank.php to ucp/info/ucp_bank.php
    root/language/en/mods/cash.php to language/en/mods/cash.php
    #
    #-----[ DIY ]----------------------
    #
    before you go any further, make sure you run the db script.
    browse to cash_db.php?mode=install
    #
    #-----[ OPEN ]----------------------
    #
    adm/index.php
    #
    #-----[ FIND ]----------------------
    #
    $user->setup('acp/common');
    #
    #-----[ AFTER, ADD ]----------------------
    #
    $user->add_lang('mods/cash');
    #
    #-----[ OPEN ]----------------------
    #
    includes/constants.php
    #
    #-----[ FIND ]----------------------
    #
    define('BOTS_TABLE', $table_prefix . 'bots');
    #
    #-----[ AFTER, ADD ]----------------------
    #
    define('CASH_TABLE', $table_prefix . 'cash');
    define('CASH_AMT_TABLE', $table_prefix . 'cash_amt');
    #
    #-----[ OPEN ]----------------------
    #
    includes/functions_posting.php
    #
    #-----[ FIND ]----------------------
    #
    // We do not handle erasing posts here
    #
    #-----[ BEFORE, ADD ]----------------------
    #
    //include the cash mod functions file here
    include("{$phpbb_root_path}includes/mods/functions_cash.$phpEx");
    #
    #-----[ FIND ]----------------------
    #
    $sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : '');
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    + 1' : '')
    #
    #-----[ IN-LINE AFTER, ADD ]----------------------
    #
    . cash_post($data['forum_id'])
    #
    #-----[ FIND ]----------------------
    #
    $sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : '');
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    + 1' : '')
    #
    #-----[ IN-LINE AFTER, ADD ]----------------------
    #
    . cash_post($data['forum_id'])
    #
    #-----[ OPEN ]----------------------
    #
    language/en/acp/permissions_phpbb.php
    #
    #-----[ FIND ]----------------------
    #
    'actions' => 'Actions',
    #
    #-----[ AFTER, ADD ]----------------------
    #
    'bank' => 'Bank',
    #
    #-----[ OPEN ]----------------------
    #
    language/en/memberlist.php
    #
    #-----[ FIND ]----------------------
    #
    'ABOUT_USER' => 'Profile',
    #
    #-----[ AFTER, ADD ]----------------------
    #
    'ACCOUNT' => 'Account',
    #
    #-----[ OPEN ]----------------------
    #
    memberlist.php
    #
    #-----[ FIND ]----------------------
    #
    include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
    #
    #-----[ AFTER, ADD ]----------------------
    #
    include($phpbb_root_path . 'includes/mods/functions_cash.' . $phpEx);
    #
    #-----[ FIND ]----------------------
    #
    $user_id = (int) $member['user_id'];
    #
    #-----[ AFTER, ADD ]----------------------
    #
    $member['cash'] = member_cash($user_id);
    #
    #-----[ FIND ]----------------------
    #
    WHERE ' . $db->sql_in_set('user_id', $user_list);
    #
    #-----[ AFTER, ADD ]----------------------
    #
    cash_sql($sql, $user_list);
    #
    #-----[ FIND ]----------------------
    #
    // Generate page
    #
    #-----[ BEFORE, ADD ]----------------------
    #
    cash_vars();
    #
    #-----[ FIND ]----------------------
    #
    return array(
    #
    #-----[ REPLACE WITH ]----------------------
    #
    //put this here… maybe somebody else can use it as well
    $show_profile_ary = array();
    $show_profile_ary = array_merge(cash_array($data, $user_id), $show_profile_ary);

    return array_merge($show_profile_ary, array(
    #
    #-----[ FIND ]----------------------
    #
    'L_VIEWING_PROFILE' => sprintf($user->lang['VIEWING_PROFILE'], $username),
    );
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    );
    #
    #-----[ IN-LINE BEFORE, ADD ]----------------------
    #
    )
    #
    #-----[ OPEN ]----------------------
    #
    ucp.php
    #
    #-----[ FIND ]----------------------
    #
    $user->setup('ucp');
    #
    #-----[ AFTER, ADD ]----------------------
    #
    $user->add_lang('mods/cash');
    #
    #-----[ OPEN ]----------------------
    #
    viewtopic.php
    #
    #-----[ FIND ]----------------------
    #
    include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
    #
    #-----[ AFTER, ADD ]----------------------
    #
    include($phpbb_root_path . 'includes/mods/functions_cash.' . $phpEx);
    #
    #-----[ FIND ]----------------------
    #
    'WHERE' => $db->sql_in_set('p.post_id', $post_list) . '
    AND u.user_id = p.poster_id'
    ));
    #
    #-----[ AFTER, ADD ]----------------------
    #
    viewtopic_cash($sql);
    #
    #-----[ FIND ]----------------------
    #
    $user_cache[$poster_id] = array(
    #
    #-----[ REPLACE WITH ]----------------------
    #
    //put this here... maybe somebody else can use it as well
    $user_cache[$poster_id] = array();
    $user_cache[$poster_id] = array_merge(user_cash($poster_id), $user_cache[$poster_id]);

    $user_cache[$poster_id] = array_merge($user_cache[$poster_id], array(
    #
    #-----[ FIND ]----------------------
    #
    'allow_pm' => 0,
    );
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    );
    #
    #-----[ IN-LINE BEFORE, ADD ]----------------------
    #
    )
    #
    #-----[ FIND ]----------------------
    #
    $user_cache[$poster_id] = array(
    #
    #-----[ REPLACE WITH ]----------------------
    #
    //put this here... maybe somebody else can use it as well
    $user_cache[$poster_id] = array();
    $user_cache[$poster_id] = array_merge(user_cash($poster_id, $row), $user_cache[$poster_id]);

    $user_cache[$poster_id] = array_merge($user_cache[$poster_id], array(
    #
    #-----[ FIND ]----------------------
    #
    'search_author=' . urlencode($row['username']) .'&amp;showresults=posts') : '',
    );
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    );
    #
    #-----[ IN-LINE BEFORE, ADD ]----------------------
    #
    )
    #
    #-----[ FIND ]----------------------
    #
    $postrow = array(
    #
    #-----[ REPLACE WITH ]----------------------
    #
    //put this here... maybe somebody else can use it as well
    $postrow = array();
    $postrow = array_merge(postrow_cash($user_cache, $poster_id), $postrow);

    $postrow = array_merge($postrow, array(
    #
    #-----[ FIND ]----------------------
    #
    'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&amp;p={$row['post_id']}&amp;view=show#p{$row['post_id']}" . '">', '</a>') : '',
    );
    #
    #-----[ IN-LINE FIND ]----------------------
    #
    );
    #
    #-----[ IN-LINE BEFORE, ADD ]----------------------
    #
    )
    See attach for all the install notes (include prosilver and subsilver)
    Attached Files
    Last edited by Mitch; 03-26-2008 at 02:34 AM.
    My Website: mitch.exofire.net (currenly not really working on it ;))



  6. #6
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: phpBB3 credits system

    shouldn't this thread be moved to "Scripts & 3rd Party Apps" ?

Closed Thread

Similar Threads

  1. Look at my sites and get credits!
    By Scott B in forum Review My Site
    Replies: 36
    Last Post: 06-01-2008, 06:28 PM
  2. Need Advertising - Will pay in Credits
    By Loneua Technologies in forum Advertising
    Replies: 52
    Last Post: 03-16-2008, 02:40 PM
  3. Joomla credits system?
    By Scott B in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 03-07-2008, 08:31 PM
  4. Earn 150+ Credits Answering my question....
    By admintwo in forum The Marketplace
    Replies: 23
    Last Post: 02-15-2008, 07:40 AM
  5. Advertise me to easily double credits!
    By QuwenQ in forum The Marketplace
    Replies: 0
    Last Post: 11-01-2007, 04:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers