Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tanix

Pages: [1]
1
Coding / Re: Regular Credits
« on: February 21, 2007, 08:02:41 am »
Forgotten I'd posted that. Thanks, feeble. I'd actually worked out the cron job side of things - using Daniel's code from the bank interest calculation and his guide on setting cron jobs:

Code: [Select]
<?php

//File: dosalaries.php - Pays salaries to members
//MUST SET UP A CRON JOB FOR THIS TO WORK

if(!isset($_SERVER["HTTP_HOST"])) {

include("../../SSI.php");

$salary $modSettings['salary'];
db_query("UPDATE {$db_prefix}members
  SET moneyBank = moneyBank + 
{$salary}"__FILE____LINE__);

echo "Salary paid on ".date("d/m/Y h:i:s A");
}
?>

What I haven't figured out yet is how to work out different salary payments for different membergroups. PHP learner here.

2
Coding / Re: Help With Points For Boards
« on: February 08, 2007, 05:21:03 pm »
Thanks Pure. I'm having a go myself. Managed to do about half of what's needed I reckon but I'm a bit stuck at the mo on the rest.

3
Coding / Re: Help With Points For Boards
« on: February 01, 2007, 05:05:42 am »
np, thanks for trying.

4
Coding / Re: Help With Points For Boards
« on: February 01, 2007, 04:47:41 am »
Yup, seen that thanks. What I'm looking to do is change the marker from on/off to a numeric value (say 0,1 and 2) then multiply the result by the points score for a post.

Why do that? To encourage posting in particular boards where people would score double credits.

5
Coding / Regular Credits
« on: January 29, 2007, 01:05:19 am »
I'd like to give members credits on a regular basis. How could I do that?

Example: Pay membergroup x the sum of 5 credits every day. Pay membergroup y the sum of 10 credits every month.

6
Coding / Help With Points For Boards
« on: January 28, 2007, 05:10:03 am »
Currently, you can set boards on or off to count shop points. What would need to be done to set boards instead to a specific multiple of points? A laborious example:
Board 1 - zero so no points
Board 2 - multiple of 1, so regular points are scored for that board.
Board 3 - multiple of 1.5 - so points score for a post in that board is increased by 50%.
Board 4 - multiple of 2 - double points

7
Coding / Re: 2 kinds of points?
« on: January 28, 2007, 04:59:23 am »
Multi-currencies is a feature of the phpBB Cash Mod. The phpBB Stores Mod pulls its currencies from that mod. Currencies can be exchangeable.

Personally, I like that setup because you can then define currencies for more purposes than buying items.

I'm no coder, but based on my knowledge of using the phpBB Cash Mod, I'd say implementing its features, especially multi-currencies, would involve heavy coding. However, I do think it would be a very useful addition.

8
Coding / Re: Minimum post length
« on: January 28, 2007, 02:59:31 am »
Sometimes short posts are all you need, especially if you're a moderator. So I'd rather see the shop code modified to set a minimum amount of characters. It's something I need for a stand-alone points mod as well, in fact.

We've spoken of this elsewhere, Daniel - but I'll repeat that I do think the phpBB cash mod has much to commend it and there are many features worth copying, assuming the author has no objection.

9
Bugs / Character Bonus Recalculation
« on: January 28, 2007, 12:55:47 am »
I'm not sure if this is intentional or not, but the character bonus is not recalculated under the following conditions:

If a post is edited by a moderator
If a post is edited by the user
If a post is deleted
If a post is moved to/from a board where 'count shop points' is off.

10
Installation Problems / Undefined Variable: Salute
« on: January 27, 2007, 09:43:14 pm »
I'm getting this message in my error logs:

8: Undefined variable: salute
File: Themes/default/languages/Shop.english.php (main_above sub template - eval?)
Line: 189

What do I need to do?

11
Nice list of improvements, Daniel. You have a great mod as it is and these enhancements just add to that. I look forward to trying them out when you release the mod.

Two quick questions, if I may.

Does the bonus feature allow you to set a lower limit as well as an upper limit to characters per post? For example, zero points if characters less than 200, 1 if between 200 and 399, 2 if 400 or greater.

Does the bonus calculation ignore quotes and code?

Pages: [1]