[MODDB] Ultimate Points 1.0.6

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!
Suggested Hosts
Locked
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Ultimate Points 1.0.5

Post by femu »

Robster400 wrote:Hi, a suggestion for the robbery module..

If attacker fails in a robbery attempt, can you add a switch so that the victim of the failed attack receives the attackers failure penalty if its turned on?
Kind of like 'compensation' for the failed attack..

Thanks :)
I'll put it on the wish list. But NO promise, if it really will be implemented.
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: [RC] Ultimate Points 1.0.5

Post by Abera »

femu wrote:
Abera wrote:... Do you, or do you know anyone that will install UP on my site. I installed it on a test site and works fine, but my site that I want to install it on has a few lines not found in the XML, or previous mods have changed the lines.
Thanks
@ keith: Agree. Would be the best, to show us, where you can't find the needed edits.
I did a simulation with Modshield 3. I installed it and my site crashed.

The error it threw:
[20-Oct-2009 19:51:31] PHP Parse error: syntax error, unexpected ';', expecting ')' in /home2/gxxxx/public_html/includes/functions.php on line 3891

My line 3891:

'SITE_DESCRIPTION' => $config['site_desc'],

After uninstalling.

From version 1.0.4.

Open: includes/functions.php

Find
Tip: This may be a partial find and not the whole line.

Code:Select All
// The following assigns all _common_ variables that may be used at any point in a

template.
$template->assign_vars(array(


Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
// Start Ultimate Points
$user->add_lang('mods/points');
// End Ultimate Points

The paste started at 3888 I uninstalled the MOD.

The simulation.

Code: Select all

# 19:08:26(3):[xed] [OPEN FILE] includes/acp/acp_users.php

# 19:08:26(4):[xed] [FIND]
                    'USER_POSTS'        => $user_row['user_posts'],
                    'USER_INACTIVE_REASON'    => $inactive_reason,
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

					'USER_WARNINGS'		=> $user_row['user_warnings'],
					'USER_POSTS'		=> $user_row['user_posts'],
// user reputation points
					'USER_REPUTATION'	=> $user_row

['user_reputation'],
// end user reputation points
					'USER_INACTIVE_REASON'	=> $inactive_reason,
					 
				));

			break;


19:08:26(3):[xed] [OPEN FILE] includes/functions.php

# 19:08:26(4):[xed] [FIND]
    // The following assigns all _common_ variables that may be used at any point in a 

template.
    $template->assign_vars(array(
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

	// The following assigns all _common_ variables that may be used at any point in a 

template.
	if (!isset($arcade))
	{
		$user->add_lang('mods/arcade');
		$template->assign_var('U_ARCADE', append_sid("{$phpbb_root_path}

arcade.$phpEx"));
	}
	$template->assign_vars(array(



19:08:26(3):[xed] [OPEN FILE] memberlist.php

# 19:08:26(4):[xed] [FIND]
$user->setup(array('memberlist', 'groups'));
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

$user->setup(array('memberlist', 'groups', 'mods/points'
));


19:08:26(3):[xed] [OPEN FILE] posting.php

# 19:08:26(4):[xed] [FIND]
                meta_refresh(3, $redirect_url);

                $message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
                $message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang

['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

				meta_refresh(3, $redirect_url);

				$message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
				$message = $user->lang[$message] . $points_message . '<br 

/><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');


19:08:26(3):[xed] [OPEN FILE] viewtopic.php

# 19:08:26(4):[xed] [FIND]
$sql = $db->sql_build_query('SELECT', array(
    'SELECT'    => 'u.*, z.friend, z.foe, p.*
# 19:08:26(4):[xed] Found at offset 35614
# 19:08:26(4):[xed] Line 957 [35614 - 35658] (Size: 44)

# 19:08:26(4):[xed] [INLINE FIND]
'u.*, z.friend, z.foe, p.*
# 19:08:26(4):[xed] [ATTEMPT INLINE FIND TRIMMED]
'u.*, z.friend, z.foe, p.*
# 19:08:26(0):[edt] Not found.
# 19:08:26(4):[xed] Section of line is 0 - 26 (Size: 26)
# 19:08:26(4):[xed] [INLINE APPEND]
, pb.id AS pb_id, pb.holding AS pb_holding


Mine: 

$sql = $db->sql_build_query('SELECT', array(
	'SELECT'	=> 'u.*, z.friend, z.foe, p.*',



19:08:26(3):[xed] [OPEN FILE] styles/prosilver/template/index_body.html

# 19:08:26(4):[xed] [FIND]
<!-- IF NEWEST_USER -->
    <h3>{L_STATISTICS}</h3>
    <p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	       <p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {L_TOTAL_ADS}: <b>{TOTAL_ADS}</b> 

&bull; {TOTAL_USERS} &bull; {L_VIEWS} <strong>{HITS}</strong> &bull; {NEWEST_USER}<br />

{MILESTONE_MESSAGE} {MILESTONE_HISTORY} {MILESTONE_INFO}</p>
<!-- ENDIF -->


19:08:26(3):[xed] [OPEN FILE] styles/prosilver/theme/bidi.css

# 19:08:26(4):[xed] [FIND]
/* Icon images
---------------------------------------- */
.rtl .sitehome,
# 19:08:26(4):[xed] Found at offset 7470
# 19:08:26(4):[xed] Line 466 [7470 - 7484] (Size: 14)

# 19:08:26(4):[xed] [INLINE FIND]
.rtl .sitehome,
# 19:08:26(4):[xed] [ATTEMPT INLINE FIND TRIMMED]
.rtl .sitehome,
# 19:08:26(0):[edt] Not found.


Mine:

/* Icon images
---------------------------------------- */
.rtl .sitehome, .rtl .icon-points, .rtl .icon-faq, .rtl .icon-members, .rtl .icon-home, .rtl 

.icon-ucp, .rtl .icon-register, .rtl .icon-logout,
.rtl .icon-bookmark, .rtl .icon-bump, .rtl .icon-subscribe, .rtl .icon-unsubscribe, .rtl 

.icon-pages, .rtl .icon-search {
	background-position: 100% 50%;
	padding: 1px 17px 0 0;


19:08:26(3):[xed] [OPEN FILE] styles/prosilver/theme/buttons.css

# 19:08:26(4):[xed] [FIND]
.sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages,
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.



Mine:

/* Icon images
---------------------------------------- */
.sitehome, .icon-points, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, 

.icon-logout,
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages, .icon-search {

That's about it. Maybe too much, but tried to lay it out.
Thanks for the help.
siberian58
Registered User
Posts: 10
Joined: Sat May 02, 2009 11:48 am

Re: [RC] Ultimate Points 1.0.5

Post by siberian58 »

femu wrote:
siberian58 wrote:I updated UP from 1.0.4 to 1.0.5 seems like without a hitch.. till I decided to use my shop mod. now when I click on shop mod I receive this error.. mind you I did nothing to shop mod 1.05b

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Unknown column 'points_name' in 'field list' [1054]

SQL

SELECT points_name FROM phpbb_points_config

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions_shop.php
LINE: 351
CALL: dbal_mysql->sql_query()

FILE: shop.php
LINE: 285
CALL: get_points()
Any ideas how I can fix it?

Very simple. The field 'points_name' is not in the phpbb_points_config, but in the phpbb_config ... So a wrong reference in the shop mod.
Any ideas how this was changed? worked fine in 1.0.4 So how can I change the reference?
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [RC] Ultimate Points 1.0.5

Post by keith10456 »

Upgraded from 1.0.4 to 1.0.5... All went well.

Great job and thanks for the hard work ;)
autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [RC] Ultimate Points 1.0.5

Post by autinhyeu »

Thanks for new version :D
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [RC] Ultimate Points 1.0.5

Post by lovelysummer »

femu wrote:
lovelysummer wrote:I am now using the 1.0.5 version (upgrade from 1.0.4) and tried to warn a user. However , after I submitted a warning, I got the following error last for few seconds in the header of the board.

Could anyone tell me where I should check for this error ?

Thank You .
Try follwoing fix:

Search in includes/mcp/mcp_warn.php

Code: Select all

	// Start Ultimate Points
	if ( $config['points_enable'] )
	{
		substract_points($user_row['user_id'], $points_values['points_per_warn']);
	}
	// End Ultimate Points
and replace with

Code: Select all

       // Start Ultimate Points
       global $points_values;
       
       if ( $config['points_enable'] )
       {
          substract_points($user_row['user_id'], $points_values['points_per_warn']);
       }
       // End Ultimate Points
@ femu,
fix is fine and works :) , tKs
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Ultimate Points 1.0.5

Post by femu »

siberian58 wrote:
femu wrote:
siberian58 wrote:I updated UP from 1.0.4 to 1.0.5 seems like without a hitch.. till I decided to use my shop mod. now when I click on shop mod I receive this error.. mind you I did nothing to shop mod 1.05b

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Unknown column 'points_name' in 'field list' [1054]

SQL

SELECT points_name FROM phpbb_points_config

BACKTRACE

FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()

FILE: includes/functions_shop.php
LINE: 351
CALL: dbal_mysql->sql_query()

FILE: shop.php
LINE: 285
CALL: get_points()
Any ideas how I can fix it?

Very simple. The field 'points_name' is not in the phpbb_points_config, but in the phpbb_config ... So a wrong reference in the shop mod.
Any ideas how this was changed? worked fine in 1.0.4 So how can I change the reference?
Did you checked the hint from Adrian in his topic?

Probably this will fix it ;)
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Ultimate Points 1.0.5

Post by femu »

Abera wrote:
femu wrote:
Abera wrote:... Do you, or do you know anyone that will install UP on my site. I installed it on a test site and works fine, but my site that I want to install it on has a few lines not found in the XML, or previous mods have changed the lines.
Thanks
@ keith: Agree. Would be the best, to show us, where you can't find the needed edits.
I did a simulation with Modshield 3. I installed it and my site crashed.
What's this? Never heared about it ...
Abera wrote:The error it threw:
[20-Oct-2009 19:51:31] PHP Parse error: syntax error, unexpected ';', expecting ')' in /home2/gxxxx/public_html/includes/functions.php on line 3891

My line 3891:

'SITE_DESCRIPTION' => $config['site_desc'],
Do not only show the specified line .... the error could also be a few lines before. So always post a block around the line ...
Abera wrote:After uninstalling.

From version 1.0.4.

Open: includes/functions.php

Find
Tip: This may be a partial find and not the whole line.

Code:Select All
// The following assigns all _common_ variables that may be used at any point in a

template.
$template->assign_vars(array(


Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Code:Select All
// Start Ultimate Points
$user->add_lang('mods/points');
// End Ultimate Points

The paste started at 3888 I uninstalled the MOD.

The simulation.

Code: Select all

# 19:08:26(3):[xed] [OPEN FILE] includes/acp/acp_users.php

# 19:08:26(4):[xed] [FIND]
                    'USER_POSTS'        => $user_row['user_posts'],
                    'USER_INACTIVE_REASON'    => $inactive_reason,
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

					'USER_WARNINGS'		=> $user_row['user_warnings'],
					'USER_POSTS'		=> $user_row['user_posts'],
// user reputation points
					'USER_REPUTATION'	=> $user_row

['user_reputation'],
// end user reputation points
					'USER_INACTIVE_REASON'	=> $inactive_reason,
					 
				));

			break;


19:08:26(3):[xed] [OPEN FILE] includes/functions.php

# 19:08:26(4):[xed] [FIND]
    // The following assigns all _common_ variables that may be used at any point in a 

template.
    $template->assign_vars(array(
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

	// The following assigns all _common_ variables that may be used at any point in a 

template.
	if (!isset($arcade))
	{
		$user->add_lang('mods/arcade');
		$template->assign_var('U_ARCADE', append_sid("{$phpbb_root_path}

arcade.$phpEx"));
	}
	$template->assign_vars(array(



19:08:26(3):[xed] [OPEN FILE] memberlist.php

# 19:08:26(4):[xed] [FIND]
$user->setup(array('memberlist', 'groups'));
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

$user->setup(array('memberlist', 'groups', 'mods/points'
));


19:08:26(3):[xed] [OPEN FILE] posting.php

# 19:08:26(4):[xed] [FIND]
                meta_refresh(3, $redirect_url);

                $message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
                $message = $user->lang[$message] . '<br /><br />' . sprintf($user->lang

['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

				meta_refresh(3, $redirect_url);

				$message = ($mode == 'edit') ? 'POST_EDITED' : 'POST_STORED';
				$message = $user->lang[$message] . $points_message . '<br 

/><br />' . sprintf($user->lang['VIEW_MESSAGE'], '<a href="' . $redirect_url . '">', '</a>');


19:08:26(3):[xed] [OPEN FILE] viewtopic.php

# 19:08:26(4):[xed] [FIND]
$sql = $db->sql_build_query('SELECT', array(
    'SELECT'    => 'u.*, z.friend, z.foe, p.*
# 19:08:26(4):[xed] Found at offset 35614
# 19:08:26(4):[xed] Line 957 [35614 - 35658] (Size: 44)

# 19:08:26(4):[xed] [INLINE FIND]
'u.*, z.friend, z.foe, p.*
# 19:08:26(4):[xed] [ATTEMPT INLINE FIND TRIMMED]
'u.*, z.friend, z.foe, p.*
# 19:08:26(0):[edt] Not found.
# 19:08:26(4):[xed] Section of line is 0 - 26 (Size: 26)
# 19:08:26(4):[xed] [INLINE APPEND]
, pb.id AS pb_id, pb.holding AS pb_holding


Mine: 

$sql = $db->sql_build_query('SELECT', array(
	'SELECT'	=> 'u.*, z.friend, z.foe, p.*',



19:08:26(3):[xed] [OPEN FILE] styles/prosilver/template/index_body.html

# 19:08:26(4):[xed] [FIND]
<!-- IF NEWEST_USER -->
    <h3>{L_STATISTICS}</h3>
    <p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.


Mine:

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	       <p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {L_TOTAL_ADS}: <b>{TOTAL_ADS}</b> 

&bull; {TOTAL_USERS} &bull; {L_VIEWS} <strong>{HITS}</strong> &bull; {NEWEST_USER}<br />

{MILESTONE_MESSAGE} {MILESTONE_HISTORY} {MILESTONE_INFO}</p>
<!-- ENDIF -->


19:08:26(3):[xed] [OPEN FILE] styles/prosilver/theme/bidi.css

# 19:08:26(4):[xed] [FIND]
/* Icon images
---------------------------------------- */
.rtl .sitehome,
# 19:08:26(4):[xed] Found at offset 7470
# 19:08:26(4):[xed] Line 466 [7470 - 7484] (Size: 14)

# 19:08:26(4):[xed] [INLINE FIND]
.rtl .sitehome,
# 19:08:26(4):[xed] [ATTEMPT INLINE FIND TRIMMED]
.rtl .sitehome,
# 19:08:26(0):[edt] Not found.


Mine:

/* Icon images
---------------------------------------- */
.rtl .sitehome, .rtl .icon-points, .rtl .icon-faq, .rtl .icon-members, .rtl .icon-home, .rtl 

.icon-ucp, .rtl .icon-register, .rtl .icon-logout,
.rtl .icon-bookmark, .rtl .icon-bump, .rtl .icon-subscribe, .rtl .icon-unsubscribe, .rtl 

.icon-pages, .rtl .icon-search {
	background-position: 100% 50%;
	padding: 1px 17px 0 0;


19:08:26(3):[xed] [OPEN FILE] styles/prosilver/theme/buttons.css

# 19:08:26(4):[xed] [FIND]
.sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages,
# 19:08:26(4):[xed] [ATTEMPT FIND TRIMMED]
# 19:08:26(4):[xed] [ATTEMPT FIND SPACE(4) TO TAB]
# 19:08:26(4):[xed] [ATTEMPT ADVANCED REGEX DEEP SEARCH]
# 19:08:26(0):[edt] Not found.



Mine:

/* Icon images
---------------------------------------- */
.sitehome, .icon-points, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, 

.icon-logout,
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages, .icon-search {

That's about it. Maybe too much, but tried to lay it out.
Thanks for the help.

Don't make too complicate. Maybe even try first the new version, where we tried to make the search parts easier to be found. If other mods are incorporated, try to search for parts of the find. If you are completely overextended, zip the files where you have problems and put it somewhere, where we can download it and then help you out with correct edits.
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
siberian58
Registered User
Posts: 10
Joined: Sat May 02, 2009 11:48 am

Re: [RC] Ultimate Points 1.0.5

Post by siberian58 »

From what I'm finding out is the new 1.0.5 Ultimate points no longer works with Shop Mod 1.05b
Message received on Adrians Board
When femu updated the mod, he had to rewrite the mod for MODDB changes & guidelines, and no doubt moved where the points are stored as he stated, so Adrian will have to make some code changes to get it working with UPS again.
and femu replies
Very simple. The field 'points_name' is not in the phpbb_points_config, but in the phpbb_config ... So a wrong reference in the shop mod.
If there is a fix it be nice to know. If it's not going to be supported maybe it should state UP 1.0.5 no longer supported by Adrians Shop Mod v1.05b
Known working version may help when listing new or updated mods. I know we all take a chances when we update or install any mod. So do I revert back to UP 1.0.4 and hope I don't screw it up anymore or do I hope Adrian will update shop mod to UP 1.0.5? My users loved when these worked together.. I know these guys put allot of hard work in these mods and I really do appreciate their efforts!
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Ultimate Points 1.0.5

Post by femu »

Hi,

again. Please use the information Adrian puts here and change the needed parts in functions_shop.php and the constants.php.

The reason is perhaps, since there are still users out there, which uses Adrians APS ... Since the UPS does store the variables in a different way, Adrian posted this information for the UPS users.

Another way, which Adrian might use in his version in the functions_shop.php, is something like:

Code: Select all

		if ( defined('IN_ULTIMATE_POINTS')
		{
			$return = $config['points_name'];
		}
		else
		{
			$sql = 'SELECT points_name
               FROM ' . POINTS_CONFIG_TABLE;
            $result = $db->sql_query($sql);
            $return = $db->sql_fetchfield('points_name');
            $db->sql_freeresult($result);
		}
Then both points systems will be supported.
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: [RC] Ultimate Points 1.0.5

Post by Abera »

femu wrote:
Abera wrote:
I did a simulation with Modshield 3. I installed it and my site crashed.
What's this? Never heared about it ...
If you are talking Modshield 3; here is the link. Much better than Automod due to the options and it works.

modshield30

By the way... I have installed the MOD on my local (wamp). A clone of my live site with Modshiel3. I did have to go in and edit the files that were giving me the problems, but did get it. Fingers crossed and going for the live. ;)
Thanks
User avatar
katib
Registered User
Posts: 562
Joined: Thu Jun 26, 2008 12:27 pm

Re: [RC] Ultimate Points 1.0.5

Post by katib »

femu wrote: No. It's not deposited in the bank. They have to do a little by themselves ;)
So not everybody opens a bank account or they want to have the points directly available. Otherwise they might not do certain things like playing Arcade ... All addons take their points from the "cash" account. So the bank account is untouchable.
Thanks a lt for explanations !!
But, what Cash account is good for ?!
I want users to be able to use thiere points hardelly earned by making usefull postings etc.. to gain access to some VIP forums
How can I acheive that !? :roll:
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Ultimate Points 1.0.5

Post by femu »

katib wrote:
femu wrote: No. It's not deposited in the bank. They have to do a little by themselves ;)
So not everybody opens a bank account or they want to have the points directly available. Otherwise they might not do certain things like playing Arcade ... All addons take their points from the "cash" account. So the bank account is untouchable.
Thanks a lt for explanations !!
But, what Cash account is good for ?!
I want users to be able to use thiere points hardelly earned by making usefull postings etc.. to gain access to some VIP forums
How can I acheive that !? :roll:
The "cash" account s the regular account, where every mod is going to give and substract points. The "bank" account is used to keep the points save from ie a robbery ;) So the bank is more an addon, while the "cash" account is the regular one.
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
User avatar
Eclipse2564
Registered User
Posts: 85
Joined: Thu Mar 20, 2008 2:28 am
Contact:

Re: [RC] Ultimate Points 1.0.5

Post by Eclipse2564 »

Can someone provide me with a link to DM EDS Easy Download System?

In the first post of this topic it says that UPS and DM EDS Easy Download System can work together but I cannot find DM EDS Easy Download System anywhere.

Edit: okay I found it right after I posted this.
Abera
Registered User
Posts: 674
Joined: Mon Jan 15, 2007 1:26 am

Re: [RC] Ultimate Points 1.0.5

Post by Abera »

Hi again femu,
I tried to install it on my live site and when trying to reply, or starting a new topic, I get:

Code: Select all

Fatal error: Cannot redeclare add_points() (previously declared in /home2/gx/public_html/includes/points/functions_points.php:293) in /home2/gx/public_html/includes/mods/functions_points.php on line 30


[phpBB Debug] PHP Notice: in file /posting.php on line 21: include(./includes/mods/functions_points.php) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /posting.php on line 21: include(./includes/mods/functions_points.php) [function.include]: failed to open stream: No such file or directory

I renamed the file here. I thought it was throwing the error.

[phpBB Debug] PHP Notice: in file /posting.php on line 21: include() [function.include]: Failed opening './includes/mods/functions_points.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4031: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3266)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4033: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3266)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4034: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3266)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4035: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3266)
This looks like it could have been an earlier install of UPS that I didn't get all of it cleaned out. Any hints on where to start?
Thanks
Locked

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