[ADDON] Donation Mod - Donator list

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[ADDON] Donation Mod - Donator list

Post by Rhyno »

Stoker wrote:Then you have been using a non existing group id.
Navigate to ACP - Manage groups.
With the mouse cursor you hover the Settings options. The last number in the link is the group id
Yer i know that soon as i try that it doesnt work....

=edit&g=18

My supporter group..... code above

[ADDON] Donation Mod - Donator list

Post by Stoker »

It only works if the supporters have the group as default group.
But we can make it work with rank id instead if interested?

[ADDON] Donation Mod - Donator list

Post by Rhyno »

Stoker wrote:It only works if the supporters have the group as default group.
But we can make it work with rank id instead if interested?
Ooooo thats the problem...its not default group for them....is there any advantage to make the default?
By rank would be nice

[ADDON] Donation Mod - Donator list

Post by Stoker »

First post updated to use ranks instead. Seems like a better solution.
You just need to replace: group_id with user_rank 3 times in donate.php and then use the rank id.

[ADDON] Donation Mod - Donator list

Post by Rhyno »

Stoker wrote:First post updated to use ranks instead. Seems like a better solution.
You just need to replace: group_id with user_rank 3 times in donate.php and then use the rank id.
That works fine....

Only problem i have is that i have many ranks, with my supporter group in it...

e.g. Supporter (rank id = 100) Supporter/Moderator (rank = 151)
So that won't work for me :(

I might just make them default group

[ADDON] Donation Mod - Donator list

Post by Stoker »

Then you can just add more ranks like this: WHERE user_type <> ' . USER_IGNORE . ' AND user_rank = 10 OR user_rank = 14 OR user_rank = 18

[ADDON] Donation Mod - Donator list

Post by Rhyno »

Stoker wrote:Then you can just add more ranks like this: WHERE user_type <> ' . USER_IGNORE . ' AND user_rank = 10 OR user_rank = 14 OR user_rank = 18
Ahhh ok thanks mate, really appreciate the time :)

[ADDON] Donation Mod - Donator list

Post by RMcGirr83 »

Stoker you can get the members of a group by using the group_memberships function located within includes/functions_user then use the PHP shuffle function on the array that is returned....eg

Code: Select all

$user_array = group_memberships(10);
shuffle($user_array);

[ADDON] Donation Mod - Donator list

Post by Stoker »

RMcGirr83 wrote:Stoker you can get the members of a group by using the group_memberships function located within includes/functions_user then use the PHP shuffle function on the array that is returned....eg

Code: Select all

$user_array = group_memberships(10);
shuffle($user_array);
Im sure Steve has it under control :D

[ADDON] Donation Mod - Donator list

Post by RMcGirr83 »

May the eternal father help you.