Page 3 of 11

Re: [RC] Post Congratulations

Posted: Tue Jul 22, 2008 1:29 pm
by MartectX
darkonia wrote:how can i make it, that the next milestone is not 1000?
i want only 250
OPEN root/set_congrat_goal.php (from the mod's archive)

FIND

Code: Select all

$goal = $config['num_posts'];
while ($goal % 1000 != 0) $goal++;
REPLACE WITH

Code: Select all

$goal = 250;
Upload to root directory and execute.

You will also need to change the steps in which the mod increments the counter. Do this:

OPEN index.php

FIND

Code: Select all

$config['congrat_goal'] - 1000
REPLACE WITH

Code: Select all

$config['congrat_goal'] - 250
OPEN includes/functions.php

FIND

Code: Select all

$config['congrat_goal'] + 1000
REPLACE WITH

Code: Select all

$config['congrat_goal'] + 250
Next goal: 250 and new step size: 250.

Re: [RC] Post Congratulations

Posted: Tue Jul 22, 2008 1:40 pm
by darkonia
thx a lot :D

Re: [RC] Post Congratulations

Posted: Tue Jul 22, 2008 10:42 pm
by Sunka
Looking good. Thank you for your time to creating this MOD :mrgreen:

Re: [RC] Post Congratulations

Posted: Tue Jul 22, 2008 11:47 pm
by Muzet
Very very nice MOD. Thanks. :D

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 3:17 am
by MartectX
1.0.1
- Small change in /contrib/congrat_history.xml
- Small change in /contrib/colorize_username.xml
- Changes in the language variables
- Make use of language variables in /root/install_post_congrat.php (cause of mod denial)
- You asked for it: Now supporting custom goal increments!

Good news: Custom Goal increments! :D
Bad news: If you want to update you have to redo the whole thing (read: uninstall 1.0.0) because every little replace and insert action has changed. :| But 1.0.0 is not buggy, so if you want to keep that you're good to go! :)

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 3:28 am
by Jaga
Heh, I wasn't updating - just watching - for this reason. Mod is looking better, keep up the momentum and add more good stuff! ;)

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 3:36 am
by MartectX
Jaga wrote:Heh, I wasn't updating - just watching - for this reason. Mod is looking better, keep up the momentum and add more good stuff! ;)
Keep the suggestions coming, I say! :lol:

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 4:11 am
by Jaga
Alrighty then.. if you want a truly unique and fresh idea:

Make another milestone, this time for Topics started. i.e. the person with the most new topics in the forum this month, also gets a line with their name in it on the Index, and a separate page which tracks all the milestones (just like you have for posts). Try to combine the queries with what you already have, to keep down the DB overhead.

What inspired the idea: there's a mod out by nickvergessen called "NV user topics 0.1.1", which I think is a really great idea. It adds the number of topics the user has started next to their postcount in their Profile and Viewtopic pages. People stop obsessing about post count, and start thinking about topic count too. i.e. more people will be trying to start new conversations on a forum, instead of just jumping in a topic and posting a few smilies or a "lol".

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 11:14 am
by MartectX
Jaga wrote:Make another milestone, this time for Topics started. i.e. the person with the most new topics in the forum this month, also gets a line with their name in it on the Index, and a separate page which tracks all the milestones (just like you have for posts).
It is no problem at all to extend the functionality to topics and even registered user # (to be consistent with the existing statistics box); but I'll keep it to milestones and not monthly records.

Due to increased complexity I'll make an ACP module, though. This may take some time, never done this before. *g*

Thanks for your suggestion!

Re: [RC] Post Congratulations

Posted: Wed Jul 23, 2008 4:56 pm
by Jaga
Sounds good, I look forward to seeing it in action. :ugeek:

Edit: As I type in another topic, I think back to the feature suggestion here, and have to do a "doh!". Of course, your mod is concerned mainly with milestone posts and not top posters (like the other topic has). In that regard yes, you'd need to add the Topic Milestone and poster name, and not the top poster. I put that suggestion in the other mod's thread for that author to consider.

Cheers.

Re: [RC] Milestone Congratulations 1.2.0

Posted: Sun Jul 27, 2008 2:12 pm
by MartectX
Version 1.2.0
  • Changed name to reflect new functionality: "Milestone Congratulations"
  • Integrated /contrib/*: "History" and "Colorized Usernames"
  • Expanded mod to include topics and users, as well
  • Created module for Admin Control Panel
  • Keep changes to core phpBB files to a minimum
  • Change next milestone without changing currently displayed milestone
  • Included history output page for proSilver and subSilver2 with option to be admin-only

Re: [RC] Milestone Congratulations 1.2.0

Posted: Sun Jul 27, 2008 6:38 pm
by Jaga
Very nice additions. As soon as I get done debugging this Joomla extension I'm working with, I'll give it a test drive. :ugeek:

Re: [RC] Milestone Congratulations 1.2.0

Posted: Sun Jul 27, 2008 6:49 pm
by MartectX
Version 1.2.1
  • Fixed small quirk in the ACP module
  • Changed logged installation message

Re: [RC] Milestone Congratulations 1.2.1

Posted: Sun Jul 27, 2008 9:23 pm
by Capion
Where the SQL to create the table "milestones" ?

Re: [RC] Milestone Congratulations 1.2.1

Posted: Sun Jul 27, 2008 9:38 pm
by MartectX
Capion wrote:Where the SQL to create the table "milestones" ?
It's automatically created once you install and open the Admin Control Panel module. I code for the lazy! :D