Database problem: no option is saved

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Database problem: no option is saved

Postby dve on Sun 08. May, 2005 13:57

I have installed this mod, but I don't see a choice saved in profile. The entry is in the database, but it doesn't select an option, so it isn't saved.
How can I fix this?
dve
Poster
Poster
 
Posts: 14
Joined: Thu 20. Jun, 2002 11:56

Postby nielsrune on Wed 26. Oct, 2005 18:23

After running several error check (I've had some troubles getting this MOD to work), I have the same problem.

When I choose to edit a group i ACP, I see the five options of who to have permission to send mass PM's. But all of them is empty - also after selecting one and hit the submit button.

The value is correctly saved in the sql-database, but the value isn't loaded when looking the group edit menu.

Have anyone solved this?

Rune
nielsrune
Poster
Poster
 
Posts: 4
Joined: Wed 26. Oct, 2005 18:16

SOLVED

Postby nielsrune on Sat 05. Nov, 2005 23:30

I found out myself :D

It turned out that I had put some lines a wrong place. They had to be moved a few lines down instead :D

Code: Select all
// Start add - Custom mass PM MOD
$group_allow_pm_all = ( $group_info['group_allow_pm'] == AUTH_ALL ) ? ' checked="checked"' : '';
$group_allow_pm_reg = ( $group_info['group_allow_pm'] == AUTH_REG ) ? ' checked="checked"' : '';
$group_allow_pm_private = ( $group_info['group_allow_pm'] == AUTH_ACL ) ? ' checked="checked"' : '';
$group_allow_pm_mod = ( $group_info['group_allow_pm'] == AUTH_MOD ) ? ' checked="checked"' : '';
$group_allow_pm_admin = ( $group_info['group_allow_pm'] == AUTH_ADMIN ) ? ' checked="checked"' : '';
// End add - Custom mass PM MOD
nielsrune
Poster
Poster
 
Posts: 4
Joined: Wed 26. Oct, 2005 18:16


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron