[ABD] Simple user achievements 0.0.2

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.
Mircea007
Registered User
Posts: 74
Joined: Mon Jun 15, 2009 9:24 pm

Re: [BETA] Simple user achievements 0.0.2

Post by Mircea007 » Sun Jul 26, 2009 9:57 am

i tried to instal in a subsilver 2 black_pearl theme

and it looks like this


Image

Image
and i reinstalled the old files and it still looks that way

please help
Flash Games like you never seen before

User avatar
kopacko
Registered User
Posts: 254
Joined: Mon Feb 17, 2003 1:39 am

Re: [BETA] Simple user achievements 0.0.2

Post by kopacko » Wed Jul 29, 2009 5:29 pm

Subscribed...liking this MOD!!!

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] Simple user achievements 0.0.2

Post by platinum_2007 » Wed Jul 29, 2009 5:34 pm

Mircea007 wrote:i tried to instal in a subsilver 2 black_pearl theme

and it looks like this


Image

Image
and i reinstalled the old files and it still looks that way

please help
The first picture shows your index page, there is no style edits in this mod other then memberlist_view.html

User avatar
Snorlaxative
Registered User
Posts: 85
Joined: Wed Feb 11, 2009 3:34 am
Location: The Web Tower
Contact:

Re: [BETA] Simple user achievements 0.0.2

Post by Snorlaxative » Thu Aug 06, 2009 11:54 pm

Here is a JS achievement mod for ProBoards. Maybe some ideas will interest you?

http://forum.sz-ex.com/index.cgi?action ... shadowyone

Mircea007
Registered User
Posts: 74
Joined: Mon Jun 15, 2009 9:24 pm

Re: [BETA] Simple user achievements 0.0.2

Post by Mircea007 » Tue Aug 11, 2009 12:33 am

i get this when i click on newest member


[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3855: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3857: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3858: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3859: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)




nevermind i found the fix on the mods website

thank you
Flash Games like you never seen before

redlof
Registered User
Posts: 7
Joined: Sun Sep 13, 2009 11:51 am

Re: [BETA] Simple user achievements 0.0.2

Post by redlof » Mon Sep 21, 2009 10:54 pm

I have problem
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3859: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3861: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3862: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3863: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
It show when i achieve "Posts 20+ times per day ". Can someone help?

User avatar
Nailz
Registered User
Posts: 125
Joined: Fri Nov 10, 2006 8:44 pm
Contact:

Re: [BETA] Simple user achievements 0.0.2

Post by Nailz » Tue Sep 22, 2009 2:24 pm

Posted on authors web site

in includes/functions_goals.php
find :

Code: Select all

      $userdays       = round((time() - $joindate) / 86400, 0);
replace with

Code: Select all

          $userdays       = round((time() - $joindate) / 86400, 4);

F.Gozalo
Registered User
Posts: 82
Joined: Thu Jun 26, 2008 3:01 pm

Re: [BETA] Simple user achievements 0.0.2

Post by F.Gozalo » Sat Sep 26, 2009 1:55 pm

Hi, is there a way to make the trophies show in the mini profiles (the ones when posting and reading a thread)!?

If so could anyone please explain. I'm kinda new to this. To the OP this mod ROCKS!

Thanks. Please do reply.

lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Simple user achievements 0.0.2

Post by lugsciath » Sat Sep 26, 2009 10:10 pm

german translation

language/de/memberlist.php

search for

Code: Select all

 	'WWW'					=> 'Website', 
add after

Code: Select all

 	'ACHIEVE'				=> 'Benutzerleistungen',
	'40_POSTS'				=> 'Erreichte 40 Beiträge',
	'80_POSTS'				=> 'Erreichte 80 Beiträge',
	'160_POSTS'				=> 'Erreichte 160 Beiträge',
	'240_POSTS'				=> 'Erreichte 240 Beiträge',
	'480_POSTS'				=> 'Erreichte 480 Beiträge',
	'600_POSTS'				=> 'Erreichte 600 Beiträge',
	'1000_POSTS'			=> 'Erreichte 1000 Beiträge',
	'2000_POSTS'			=> 'Erreichte 2000 Beiträge',
	'3000_POSTS'			=> 'Erreichte über 3000 Beiträge',
	'TOPIC_VIEWS_500'		=> 'Machte ein Thema mit über 500 Sichtungen',
	'TOPIC_VIEWS_1000'		=> 'Machte ein Thema mit über 1000 Sichtungen',
	'TOPIC_VIEWS_10000'		=> 'Machte ein Thema mit über 10000 Sichtungen',
	'TOPIC_REPLIES_25'		=> 'Machte ein Thema mit über 25 Antworten',
	'TOPIC_REPLIES_50'		=> 'Machte ein Thema mit über 50 Antworten',
	'TOPIC_REPLIES_100'		=> 'Machte ein Thema mit über 100 Antworten',
	'TOPIC_REPLIES_500'		=> 'Machte ein Thema mit über 500 Antworten',
	'HAS_ATTACHED'			=> 'Lud eine Datei hoch',
	'HAS_POLL'				=> 'Machte eine Abstimmung',
	'UP_AVATAR'				=> 'Besitzt einen Avatar',
	'FRIEND_5'				=> 'Erreichte 5 Freunde',
	'FRIEND_10'				=> 'Erreichte 10 Freunde',
	'FRIEND_20'				=> 'Erreichte 20 Freunde',
	'FRIEND_50'				=> 'Erreichte 50 Freunde',
	'JOIN_30'				=> 'War mindestens für 30 Tag',
	'JOIN_60'				=> 'War mindestens für 60 Tag',
	'JOIN_365'				=> 'War mindestens für ein Jahr',
	'POST_PER_DAY_5'		=> 'Postete 5+ mal am Tag',
	'POST_PER_DAY_10'		=> 'Postete 10+ mal am Tag',
	'POST_PER_DAY_20'		=> 'Postete 20+ mal am Tag',
	'VOTED_POLL'			=> 'Wählte bei einer Abstimmung',
	'CREATED_TOPIC_10'		=> 'Erstellte 10 Themen',
	'CREATED_TOPIC_20'		=> 'Erstellte 20 Themen',
	'CREATED_TOPIC_50'		=> 'Erstellte 50 Themen',
	'TOTAL_REACH'			=> 'total erreicht',
	'TROPHY'				=> 'Leistungstrophaen',
	'TOTAL_POST_REACH'		=> 'Total Betragsziele erreicht :',
	'TOPIC_CREATE'			=> 'Themen Erstellungsziele erreicht :',
	'TOPIC_VIEW'			=> 'Themen Betrachtungsziele erreicht :',
	'TOPIC_REPLIES'			=> 'Themen Antwortziele erreicht :',
	'RANDOM_GOALS'			=> 'Total Wahlweiseziele erreicht :',
	'MEMBER_GOALS'			=> 'Total Mitgliederziele erreicht :',
	'FRIEND_GOALS'			=> 'Total Freundeziele erreicht :',
	'JOIN_GOALS'			=> 'Total Beiträge pro Tag Ziele erreicht :',
	'NONE_YET'				=> '<strong>Dieser Benutzer erreichte nicht das Minimum bei 10 Zielen um eine Trophae zu erreichen!</strong>',

User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [BETA] Simple user achievements 0.0.2

Post by woipi90 » Sun Sep 27, 2009 8:01 am

lugsciath wrote:german translation

language/de/memberlist.php

search for

Code: Select all

 	'WWW'					=> 'Website', 
add after

Code: Select all

 	'ACHIEVE'				=> 'Benutzerleistungen',
	'40_POSTS'				=> 'Erreichte 40 Beiträge',
	'80_POSTS'				=> 'Erreichte 80 Beiträge',
	'160_POSTS'				=> 'Erreichte 160 Beiträge',
	'240_POSTS'				=> 'Erreichte 240 Beiträge',
	'480_POSTS'				=> 'Erreichte 480 Beiträge',
	'600_POSTS'				=> 'Erreichte 600 Beiträge',
	'1000_POSTS'			=> 'Erreichte 1000 Beiträge',
	'2000_POSTS'			=> 'Erreichte 2000 Beiträge',
	'3000_POSTS'			=> 'Erreichte über 3000 Beiträge',
	'TOPIC_VIEWS_500'		=> 'Machte ein Thema mit über 500 Sichtungen',
	'TOPIC_VIEWS_1000'		=> 'Machte ein Thema mit über 1000 Sichtungen',
	'TOPIC_VIEWS_10000'		=> 'Machte ein Thema mit über 10000 Sichtungen',
	'TOPIC_REPLIES_25'		=> 'Machte ein Thema mit über 25 Antworten',
	'TOPIC_REPLIES_50'		=> 'Machte ein Thema mit über 50 Antworten',
	'TOPIC_REPLIES_100'		=> 'Machte ein Thema mit über 100 Antworten',
	'TOPIC_REPLIES_500'		=> 'Machte ein Thema mit über 500 Antworten',
	'HAS_ATTACHED'			=> 'Lud eine Datei hoch',
	'HAS_POLL'				=> 'Machte eine Abstimmung',
	'UP_AVATAR'				=> 'Besitzt einen Avatar',
	'FRIEND_5'				=> 'Erreichte 5 Freunde',
	'FRIEND_10'				=> 'Erreichte 10 Freunde',
	'FRIEND_20'				=> 'Erreichte 20 Freunde',
	'FRIEND_50'				=> 'Erreichte 50 Freunde',
	'JOIN_30'				=> 'War mindestens für 30 Tag',
	'JOIN_60'				=> 'War mindestens für 60 Tag',
	'JOIN_365'				=> 'War mindestens für ein Jahr',
	'POST_PER_DAY_5'		=> 'Postete 5+ mal am Tag',
	'POST_PER_DAY_10'		=> 'Postete 10+ mal am Tag',
	'POST_PER_DAY_20'		=> 'Postete 20+ mal am Tag',
	'VOTED_POLL'			=> 'Wählte bei einer Abstimmung',
	'CREATED_TOPIC_10'		=> 'Erstellte 10 Themen',
	'CREATED_TOPIC_20'		=> 'Erstellte 20 Themen',
	'CREATED_TOPIC_50'		=> 'Erstellte 50 Themen',
	'TOTAL_REACH'			=> 'total erreicht',
	'TROPHY'				=> 'Leistungstrophaen',
	'TOTAL_POST_REACH'		=> 'Total Betragsziele erreicht :',
	'TOPIC_CREATE'			=> 'Themen Erstellungsziele erreicht :',
	'TOPIC_VIEW'			=> 'Themen Betrachtungsziele erreicht :',
	'TOPIC_REPLIES'			=> 'Themen Antwortziele erreicht :',
	'RANDOM_GOALS'			=> 'Total Wahlweiseziele erreicht :',
	'MEMBER_GOALS'			=> 'Total Mitgliederziele erreicht :',
	'FRIEND_GOALS'			=> 'Total Freundeziele erreicht :',
	'JOIN_GOALS'			=> 'Total Beiträge pro Tag Ziele erreicht :',
	'NONE_YET'				=> '<strong>Dieser Benutzer erreichte nicht das Minimum bei 10 Zielen um eine Trophae zu erreichen!</strong>',

thx very much....


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";

Alighieri
Registered User
Posts: 135
Joined: Sun Mar 13, 2005 5:24 pm

Re: [BETA] Simple user achievements 0.0.2

Post by Alighieri » Mon Sep 28, 2009 10:25 pm

Some key things that are necessary before this MOD will go mainstream:

- Easier configuration of achievements. Definitely needs to be easier to add/remove achievements by editing ONE file, or updating ONE table.
- Support for permanent achievements. Once you have reached a "goal", it should be permanent (or configurable per goal).

Once you've added these two features, you'll have a rock-solid MOD that'll be worthy of featuring on certain phpBB podcasts. :)

User avatar
-CoS-
Registered User
Posts: 62
Joined: Tue Mar 20, 2007 7:59 pm

Re: [BETA] Simple user achievements 0.0.2

Post by -CoS- » Tue Sep 29, 2009 10:07 am

Hi! I have two suggestions for this mod.

1. Rewards for complete achievementes. I think one of the best rewards and that would work in every forum would be special ranks for users (giving them the option to select what rank they want to display). Example: if you reach 1000 posts you can set your rank to "Compulsive Poster".

2. As Alighieri said, it would be great if there were permanent achievements and they're not calculated in realtime. This way, people can create easily achievements addons for their mods like points mod, thanks mod, etc. I suppose this involves to create a new table where achievement progress for every feature is saved for each user.

Anyway, thanks a lot for your work. :)

djluba
Registered User
Posts: 14
Joined: Thu Oct 15, 2009 5:04 pm

Re: [BETA] Simple user achievements 0.0.2

Post by djluba » Tue Oct 27, 2009 2:26 pm

Please help me, mod work good, but when i click on who is online>users profile=

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 273: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 274: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions_goals.php on line 275: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4017: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3269)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4019: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3269)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4020: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3269)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4021: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3269)

Sorry now is work! I correct the code (last post).

plasmino
Registered User
Posts: 261
Joined: Sat Jul 25, 2009 11:12 am

Re: [BETA] Simple user achievements 0.0.2

Post by plasmino » Wed Nov 11, 2009 10:51 pm

idem problem with new user with 0 post

my fix, includes/functions_goals.php find

Code: Select all

$per_day = total_join_days($user_id);
	$post_per_day_5 = ($member['user_posts'] / $per_day >= 5) ? true : false;
	$post_per_day_10 = ($member['user_posts'] / $per_day >= 10) ? true : false;
	$post_per_day_20 = ($member['user_posts'] / $per_day >= 20) ? true : false;
	
	$post_per_day_goal = $post_per_day_10 + $post_per_day_5 + $post_per_day_20
replace with

Code: Select all

$per_day = total_join_days($user_id);
	$post_per_day_0 = ($member['user_posts'] / $per_day = 1) ? true : false;
	$post_per_day_5 = ($member['user_posts'] / $per_day >= 5) ? true : false;
	$post_per_day_10 = ($member['user_posts'] / $per_day >= 10) ? true : false;
	$post_per_day_20 = ($member['user_posts'] / $per_day >= 20) ? true : false;
	
	$post_per_day_goal = $post_per_day_10 + $post_per_day_5 + $post_per_day_20 - $post_per_day_0;

User avatar
waxxie
Registered User
Posts: 119
Joined: Fri Oct 16, 2009 5:21 pm

BUG FIX

Post by waxxie » Sat Nov 14, 2009 5:46 pm

Awesome mod!

Found a bug though

when you get a new user with zero posts, and only a few hours on the site, their profile causes a a header exception error because the values dont exist

Code: Select all

open: includes/functions_goals.php

FIND:
	$per_day = total_join_days($user_id);
	$post_per_day_5 = ($member['user_posts'] / $per_day >= 5) ? true : false;
	$post_per_day_10 = ($member['user_posts'] / $per_day >= 10) ? true : false;
	$post_per_day_20 = ($member['user_posts'] / $per_day >= 20) ? true : false;
	
	$post_per_day_goal = $post_per_day_10 + $post_per_day_5 + $post_per_day_20;

REPLACE WITH:
	if($member['user_posts'] <= 0 || !$member['user_posts']){
	  $per_day = 0;
	  $post_per_day_5 = 0;
	  $post_per_day_10 = 0;
	  $post_per_day_20 = 0;
	  $post_per_day_goal = 0;
	}else{
	  $per_day = total_join_days($user_id);
	  $post_per_day_5 = ($member['user_posts'] / $per_day >= 5) ? true : false;
	  $post_per_day_10 = ($member['user_posts'] / $per_day >= 10) ? true : false;
	  $post_per_day_20 = ($member['user_posts'] / $per_day >= 20) ? true : false;
	  $post_per_day_goal = $post_per_day_10 + $post_per_day_5 + $post_per_day_20;
	}

Locked

Return to “[3.0.x] Abandoned MODs”