[ABD] Simple Points System 0.5.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Ganon_master
Registered User
Posts: 228
Joined: Sat May 14, 2005 9:05 pm
Location: Soesterberg, Utrecht, The Netherlands

Re: [BETA] Simple Points System

Post by Ganon_master »

It doesn't have per-character points. Just a fixed points amount per new reply or topic.
Please do not PM me with support questions! I'm getting fed up with people asking.
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

i installed this on my forum and when i go to post a message I get this
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(./includes/mods/functions_points.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(./includes/mods/functions_points.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(): Failed opening './includes/mods/functions_points.php' for inclusion (include_path='.:/usr/local/lib/php')
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4314: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4315: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4316: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)

what did i do wrong?
roxxy86
Registered User
Posts: 2
Joined: Wed May 30, 2007 5:08 pm

Re: [BETA] Simple Points System

Post by roxxy86 »

Hi!!! Your mod is very beautiful!!! :D
But... can i see (under my avatar) the points number??
Ganon_master
Registered User
Posts: 228
Joined: Sat May 14, 2005 9:05 pm
Location: Soesterberg, Utrecht, The Netherlands

Re: [BETA] Simple Points System

Post by Ganon_master »

Zheverling wrote:i installed this on my forum and when i go to post a message I get this
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(./includes/mods/functions_points.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(./includes/mods/functions_points.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Notice: in file /posting.php on line 20: main(): Failed opening './includes/mods/functions_points.php' for inclusion (include_path='.:/usr/local/lib/php')
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4314: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4315: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4316: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3661)

what did i do wrong?
Make sure you upload the functions_points.php file to the correct directory.
roxxy86 wrote:Hi!!! Your mod is very beautiful!!! :D
But... can i see (under my avatar) the points number??
Yes, you should be able to see the points number once you install this mod.
Please do not PM me with support questions! I'm getting fed up with people asking.
roxxy86
Registered User
Posts: 2
Joined: Wed May 30, 2007 5:08 pm

Re: [BETA] Simple Points System

Post by roxxy86 »

thanks but...
Image
in my forum there aren't points number!
Last edited by roxxy86 on Wed May 30, 2007 9:31 pm, edited 1 time in total.
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

Make sure you upload the functions_points.php file to the correct directory.

where is the mods directory? I went to
phpbb3 ->Includes ->

but where is mods!!!
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

ok i added the mods folder now the error is reduced to

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4314: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4315: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4316: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)


whats up with this?
Ganon_master
Registered User
Posts: 228
Joined: Sat May 14, 2005 9:05 pm
Location: Soesterberg, Utrecht, The Netherlands

Re: [BETA] Simple Points System

Post by Ganon_master »

Zheverling wrote:ok i added the mods folder now the error is reduced to

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4314: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4315: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4316: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)


whats up with this?
Do you have any spaces or linebreaks at the top in your posting.php file? I you do, please remove them.
roxxy86 wrote:thanks but...
Image
in my forum there isn't points number!
Did you make the edits from the files in the /templates folder of the install package? It should contain two XML files called 'subsilver2.xml' and 'prosilver.xml'.
Please do not PM me with support questions! I'm getting fed up with people asking.
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

Code: Select all

<?php
/** 
*
* posting [English]
*
* @package language
* @version $Id: posting.php,v 1.64 2007/05/17 14:58:40 acydburn Exp $
* @copyright (c) 2005 phpBB Group 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'ADD_ATTACHMENT'			=> 'Upload attachment',
	'ADD_ATTACHMENT_EXPLAIN'	=> 'If you wish to attach one or more files enter the details below.',
	'ADD_FILE'					=> 'Add the file',
	'ADD_POLL'					=> 'Poll creation',
	'ADD_POLL_EXPLAIN'			=> 'If you do not want to add a poll to your topic leave the fields blank.',
	'ALREADY_DELETED'			=> 'Sorry but this message is already deleted.',
	'ATTACH_QUOTA_REACHED'		=> 'Sorry, the board attachment quota has been reached.',
	'ATTACH_SIG'				=> 'Attach a signature (signatures can be altered via the UCP)',

	'BBCODE_A_HELP'				=> 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]',
	'BBCODE_B_HELP'				=> 'Bold text: [b]text[/b]',
	'BBCODE_C_HELP'				=> 'Code display: [code]code
',
'BBCODE_E_HELP' => 'List: Add list element',
'BBCODE_F_HELP' => 'Font size: [size=x-small]small text[/size]',
'BBCODE_IS_OFF' => '%sBBCode%s is <em>OFF</em>',
'BBCODE_IS_ON' => '%sBBCode%s is <em>ON</em>',
'BBCODE_I_HELP' => 'Italic text: text',
'BBCODE_L_HELP' => 'List:
  • text
',
'BBCODE_LISTITEM_HELP' => 'List item: [*]text[/*]',
'BBCODE_O_HELP' => 'Ordered list:
  • text
',
'BBCODE_P_HELP' => 'Insert image: [img]http://image_url[/img]',
'BBCODE_Q_HELP' => 'Quote text: [quote]text[/quote]',
'BBCODE_S_HELP' => 'Font color: text Tip: you can also use color=#FF0000',
'BBCODE_U_HELP' => 'Underline text: text',
'BBCODE_W_HELP' => 'Insert URL: http://url or URL text',
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
'BUMP_ERROR' => 'You cannot bump this topic so soon after the last post.',

'CANNOT_DELETE_REPLIED' => 'Sorry but you may only delete posts which have not been replied to.',
'CANNOT_EDIT_POST_LOCKED' => 'This post has been locked. You can no longer edit that post.',
'CANNOT_EDIT_TIME' => 'You can no longer edit or delete that post.',
'CANNOT_POST_ANNOUNCE' => 'Sorry but you cannot post announcements.',
'CANNOT_POST_STICKY' => 'Sorry but you cannot post sticky topics.',
'CHANGE_TOPIC_TO' => 'Change topic type to',
'CLOSE_TAGS' => 'Close tags',
'CURRENT_TOPIC' => 'Current topic',

'DELETE_FILE' => 'Delete file',
'DELETE_MESSAGE' => 'Delete message',
'DELETE_MESSAGE_CONFIRM' => 'Are you sure you want to delete this message?',
'DELETE_OWN_POSTS' => 'Sorry but you can only delete your own posts.',
'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this message?',
'DELETE_POST_WARN' => 'Once deleted the post cannot be recovered',
'DISABLE_BBCODE' => 'Disable BBCode',
'DISABLE_MAGIC_URL' => 'Do not automatically parse URLs',
'DISABLE_SMILIES' => 'Disable smilies',
'DISALLOWED_EXTENSION' => 'The extension %s is not allowed.',
'DRAFT_LOADED' => 'Draft loaded into posting area, you may want to finish your post now.<br />Your draft will be deleted after submitting this post.',
'DRAFT_LOADED_PM' => 'Draft loaded into message area, you may want to finish your private message now.<br />Your draft will be deleted after submitting this private message.',
'DRAFT_SAVED' => 'Draft successfully saved.',
'DRAFT_TITLE' => 'Draft title',

'EDIT_REASON' => 'Reason for editing this post',
'EMPTY_FILEUPLOAD' => 'The uploaded file is empty.',
'EMPTY_MESSAGE' => 'You must enter a message when posting.',
'EMPTY_REMOTE_DATA' => 'File could not be uploaded, please try uploading the file manually.',

'FLASH_IS_OFF' => '[flash] is <em>OFF</em>',
'FLASH_IS_ON' => '[flash] is <em>ON</em>',
'FLOOD_ERROR' => 'You cannot make another post so soon after your last.',
'FONT_COLOR' => 'Font color',
'FONT_COLOR_HIDE' => 'Hide font color',
'FONT_HUGE' => 'Huge',
'FONT_LARGE' => 'Large',
'FONT_NORMAL' => 'Normal',
'FONT_SIZE' => 'Font size',
'FONT_SMALL' => 'Small',
'FONT_TINY' => 'Tiny',

'GENERAL_UPLOAD_ERROR' => 'Could not upload attachment to %s.',

'IMAGES_ARE_OFF' => '[img] is <em>OFF</em>',
'IMAGES_ARE_ON' => '[img] is <em>ON</em>',
'INVALID_FILENAME' => '%s is an invalid filename.',

'LOAD' => 'Load',
'LOAD_DRAFT' => 'Load draft',
'LOAD_DRAFT_EXPLAIN' => 'Here you are able to select the draft you want to continue writing. Your current post will be cancelled, all current post contents will be deleted. View, edit and delete drafts within your User Control Panel.',
'LOGIN_EXPLAIN_BUMP' => 'You need to login in order to bump topics within this forum.',
'LOGIN_EXPLAIN_DELETE' => 'You need to login in order to delete posts within this forum.',
'LOGIN_EXPLAIN_POST' => 'You need to login in order to post within this forum.',
'LOGIN_EXPLAIN_QUOTE' => 'You need to login in order to quote posts within this forum.',
'LOGIN_EXPLAIN_REPLY' => 'You need to login in order to reply to topics within this forum.',

'MAX_FONT_SIZE_EXCEEDED' => 'You may only use fonts up to size %1$d.',
'MAX_FLASH_HEIGHT_EXCEEDED' => 'Your flash files may only be up to %1$d pixels high.',
'MAX_FLASH_WIDTH_EXCEEDED' => 'Your flash files may only be up to %1$d pixels wide.',
'MAX_IMG_HEIGHT_EXCEEDED' => 'Your images may only be up to %1$d pixels high.',
'MAX_IMG_WIDTH_EXCEEDED' => 'Your images may only be up to %1$d pixels wide.',

'MESSAGE_BODY_EXPLAIN' => 'Enter your message here, it may contain no more than <strong>%d</strong> characters.',
'MESSAGE_DELETED' => 'This message has been deleted successfully.',
'MORE_SMILIES' => 'View more smilies',

'NOTIFY_REPLY' => 'Notify me when a reply is posted',
'NOT_UPLOADED' => 'File could not be uploaded.',
'NO_DELETE_POLL_OPTIONS' => 'You cannot delete existing poll options.',
'NO_PM_ICON' => 'No PM icon',
'NO_POLL_TITLE' => 'You have to enter a poll title.',
'NO_POST' => 'The requested post does not exist.',
'NO_POST_MODE' => 'No post mode specified.',

'PARTIAL_UPLOAD' => 'The uploaded file was only partially uploaded.',
'PHP_SIZE_NA' => 'The attachment’s file size is too large.<br />Could not determine the maximum size defined by PHP in php.ini.',
'PHP_SIZE_OVERRUN' => 'The attachment’s file size is too large, the maximum upload size is %d MB.<br />Please note this is set in php.ini and cannot be overridden.',
'PLACE_INLINE' => 'Place inline',
'POLL_DELETE' => 'Delete poll',
'POLL_FOR' => 'Run poll for',
'POLL_FOR_EXPLAIN' => 'Enter 0 or leave blank for a never ending poll.',
'POLL_MAX_OPTIONS' => 'Options per user',
'POLL_MAX_OPTIONS_EXPLAIN' => 'This is the number of options each user may select when voting.',
'POLL_OPTIONS' => 'Poll options',
'POLL_OPTIONS_EXPLAIN' => 'Place each option on a new line. You may enter up to <strong>%d</strong> options.',
'POLL_QUESTION' => 'Poll question',
'POLL_TITLE_TOO_LONG' => 'The poll title must contain fewer than 100 characters.',
'POLL_TITLE_COMP_TOO_LONG' => 'The parsed size of your poll title is too large, consider removing BBCodes or smilies.',
'POLL_VOTE_CHANGE' => 'Allow re-voting',
'POLL_VOTE_CHANGE_EXPLAIN' => 'If enabled users are able to change their vote.',
'POSTED_ATTACHMENTS' => 'Posted attachments',
'POST_CONFIRMATION' => 'Confirmation of post',
'POST_CONFIRM_EXPLAIN' => 'To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.',
'POST_DELETED' => 'This message has been deleted successfully.',
'POST_EDITED' => 'This message has been edited successfully.',
'POST_EDITED_MOD' => 'This message has been edited successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved.',
'POST_GLOBAL' => 'Global',
'POST_ICON' => 'Post icon',
'POST_NORMAL' => 'Normal',
'POST_REVIEW' => 'Post review',
'POST_REVIEW_EXPLAIN' => 'At least one new post has been made to this topic. You may wish to review your post in light of this.',
'POST_STORED' => 'This message has been posted successfully.',
'POST_STORED_MOD' => 'This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable. You will be notified when your post has been approved.',
'POST_TOPIC_AS' => 'Post topic as',
'PROGRESS_BAR' => 'Progress bar',

'QUOTE_DEPTH_EXCEEDED' => 'You may embed only %1$d quotes within each other.',

'SAVE' => 'Save',
'SAVE_DATE' => 'Saved at',
'SAVE_DRAFT' => 'Save draft',
'SAVE_DRAFT_CONFIRM' => 'Please note that saved drafts only include the subject and the message, any other element will be removed. Do you want to save your draft now?',
'SMILIES' => 'Smilies',
'SMILIES_ARE_OFF' => 'Smilies are <em>OFF</em>',
'SMILIES_ARE_ON' => 'Smilies are <em>ON</em>',
'STICKY_ANNOUNCE_TIME_LIMIT'=> 'Sticky/Announcement time limit',
'STICK_TOPIC_FOR' => 'Stick topic for',
'STICK_TOPIC_FOR_EXPLAIN' => 'Enter 0 or leave blank for a never ending Sticky/Announcement.',
'STYLES_TIP' => 'Tip: Styles can be applied quickly to selected text.',

'TOO_FEW_CHARS' => 'Your message contains too few characters.',
'TOO_FEW_POLL_OPTIONS' => 'You must enter at least two poll options.',
'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maximum.',
'TOO_MANY_CHARS' => 'Your message contains too many characters.',
'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options.',
'TOO_MANY_SMILIES' => 'Your message contains too many smilies. The maximum number of smilies allowed is %d.',
'TOO_MANY_URLS' => 'Your message contains too many URLs. The maximum number of URLs allowed is %d.',
'TOO_MANY_USER_OPTIONS' => 'You cannot specify more options per user than existing poll options.',
'TOPIC_BUMPED' => 'Topic has been bumped successfully.',

'UNAUTHORISED_BBCODE' => 'You cannot use certain BBCodes: %s.',
'UNGLOBALISE_EXPLAIN' => 'To switch this topic back from being global to a normal topic, you need to select the forum you wish this topic to be displayed.',
'UPDATE_COMMENT' => 'Update comment',
'URL_INVALID' => 'The URL you specified is invalid.',
'URL_NOT_FOUND' => 'The file specified could not be found.',
'URL_IS_OFF' => '[url] is <em>OFF</em>',
'URL_IS_ON' => '[url] is <em>ON</em>',
'USER_CANNOT_BUMP' => 'You cannot bump topics in this forum.',
'USER_CANNOT_DELETE' => 'You cannot delete posts in this forum.',
'USER_CANNOT_EDIT' => 'You cannot edit posts in this forum.',
'USER_CANNOT_REPLY' => 'You cannot reply in this forum.',
'USER_CANNOT_FORUM_POST' => 'You are not able to do posting operations on this forum due to the forum type not supporting it.',

'VIEW_MESSAGE' => '%sView your submitted message%s',

'WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s.',
'WRONG_SIZE' => 'The image must be at least %1$d pixels wide, %2$d pixels high and at most %3$d pixels wide and %4$d pixels high. The submitted image is %5$d pixels wide and %6$d pixels high.',
'POINTS_EARNED' => 'You earned %1$d %2$s for that post.',

));

?>[/code]
Ganon_master
Registered User
Posts: 228
Joined: Sat May 14, 2005 9:05 pm
Location: Soesterberg, Utrecht, The Netherlands

Re: [BETA] Simple Points System

Post by Ganon_master »

Just make sure that this is the top of the file, with nothing else above it: <?php
That should work.
Please do not PM me with support questions! I'm getting fed up with people asking.
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

that is what is at the top still does not work
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

The errors seem to come from phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: is there a way to look at that file on that line and see what the problem is
User avatar
GeorgiePorgie
Registered User
Posts: 80
Joined: Thu Aug 03, 2006 3:19 am
Location: 37° 42' N, 122° 05' W
Contact:

Re: [BETA] Simple Points System

Post by GeorgiePorgie »

Ganon_master,

Thanks again for your excellent mod. As I mentioned in a previous reply in this topic, I'm running your mod with no problems. I'm running 0.2.3, and I'll upgrade to the latest version sometime during the next few days.

If you're open to suggestions and requests for features...

I can think of just one feature from my old phpbb2 Cash Mod board that I made much use of, but currently lack with your Simple Points System mod. That feature is:

ACP support for awarding a specified number of points to each newly registered user, immediately upon the completion of their registration. For instance, I might like to have each new member begin with 10 points instead of starting with 0 points.

This is certainly not a critical need. I can live without it, but it would be a nice feature to have in a future version. Just thought I'd mention it. If features of this nature fall outside of the scope of a "Simple" points system, then.... nevermind! ;)

Thanks again for your excellent mod! :)
Image
Ganon_master
Registered User
Posts: 228
Joined: Sat May 14, 2005 9:05 pm
Location: Soesterberg, Utrecht, The Netherlands

Re: [BETA] Simple Points System

Post by Ganon_master »

Zheverling wrote:The errors seem to come from phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: is there a way to look at that file on that line and see what the problem is
You are misunderstanding the error. Normally /includes/functions.php uses the header function to start sending the page to the user. However, this results in an error if a character has already been sent. That is the error you are getting. Take a look at the bolded area in the error below.

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4312: Cannot modify header information - headers already sent by (output started at /language/en/posting.php:1)

So the problem is probably in your /language/en/posting.php file. I don't know what the problem could be except for outputted characters before the <?php or after the ?>.
GeorgiePorgie wrote:If you're open to suggestions and requests for features...

I can think of just one feature from my old phpbb2 Cash Mod board that I made much use of, but currently lack with your Simple Points System mod. That feature is:

ACP support for awarding a specified number of points to each newly registered user, immediately upon the completion of their registration. For instance, I might like to have each new member begin with 10 points instead of starting with 0 points.

This is certainly not a critical need. I can live without it, but it would be a nice feature to have in a future version. Just thought I'd mention it. If features of this nature fall outside of the scope of a "Simple" points system, then.... nevermind! ;)
It's a rather small feature, and there's a little trick to do it manually using phpMyAdmin. You can run the following SQL query:

Code: Select all

 ALTER TABLE `phpbb_users` CHANGE `user_points` `user_points` INT( 11 ) NOT NULL DEFAULT '1000' 
You can change 1000 with the amount you want users to start off with. I might add this feature if enough user request.
Please do not PM me with support questions! I'm getting fed up with people asking.
Zheverling
Registered User
Posts: 33
Joined: Mon May 21, 2007 7:02 pm

Re: [BETA] Simple Points System

Post by Zheverling »

there is nothing before or after so i am not sure why i am getting this error. i pasted that whole page maybe someone can see something. what editor do you use to edit your php files
Locked

Return to “[3.0.x] Abandoned MODs”