vWarn Mod

Started by Valodim, September 12, 2005, 08:30:40 PM

Previous topic - Next topic

J. Williams

Padfoot

Don't rush things!

Post moderation i think should be left alone,so theres no bugs.
Joshua Jon Williams
Back in Action.

Valodim

#21
I'll make a different mod for that. There will be a permission "post moderated reply", which allows a user to reply with post moderation, if the user has "post reply" anyways it doesn't have any effect. the moderated usergroup would have "post reply" denied and "post moderated reply" allowed :)

that way, people can use post moderation for specific boards, usergroups, etc. :)

I'll add some finishing touches to this and release 1.0, then work on post moderation mod ;)

\\ edit

this is lacking a warn button. can't seem to get a nice one with the button generator (all icons taken), could anyone make one for me? :)

\\\ edit

finally done! I just added a separate permission to view own/any log, and the permission-errormessages now, it should all be fine ;)

thanks for all your help ^_^

J. Williams

#22
I found a few errors

These errors happen when its a guest

Sorry but i deleted them for the log :(

//edit// Re-did test.

Guest   Today at 05:14:14 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?board=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:14 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?board=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:16 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:16 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:26 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
8: Undefined index: warnings
/home/scs/public_html/Community/Sources/Load.php
527

   Guest   Today at 05:14:26 PM 
81.97.89.10     d935c2af570a083a583c518d0a221577 
http://www.southchaddertonschool.cwhnetworks.com/Community/index.php?topic=2.0 
2: array_intersect(): Argument #1 is not an array
/home/scs/public_html/Community/Sources/Load.php
527

Joshua Jon Williams
Back in Action.

Valodim

#23
ah. yeah, looks like I forgot the empty($array) ?: in the load.php. I'll fix it asap (I'm not at home right now, maybe in 13 to 14 hours...) thanks :)

fixed ;)

mrandall131

#24
Mod looks and seems to work awsome, thanks!

[edit]

Guess I spoke too soon, I went into the permissions panel to make sure the muted group can not post and I got this error:

Quote
Parse error: parse error, unexpected ',', expecting ')' in *******/forum/Sources/ManagePermissions.php on line 1293

Here's how it got inserted into the code:

Quote
         'vwarn' => array(
            'vwarn_warn' => false,
            'vwarn_viewlog' => true,
         ),,
         'googlebot' => array(
            'googlebot_view' => false,
         ),         

I assume that I just need to remove the double comma.

Valodim

#25
that is correct. this syntax array('blah',) is correct, but I didn't think about other mods which may want to add their stuff there. fixed in a minute :)

\\ edit

uploaded a version without that comma. it's not a new version, I doubt anyone else has downloaded it in that period and the mistake is really minor ;)

mrandall131

#26
Foolish question, I see where I can get to individual warning logs,  how do I display / is there a global warning log?

[edit]

Hate to do this to ya, but I uninstalled and reinstalled your new version.  There was no comma on that line I mentioned above.   :o

Valodim

#27
you can use membergroups -> click on the member-count to get a listing of people in a warning group.

didn't do a global warning log... do you think that'd be useful? thought the membergroup listings would be good enough :P

\\ edit

downloaded and checked, and the comma is not there. must be the googlebot mod's fault :P

mrandall131

LOL!!  Now I understand what you had in mind and I think it works just fine!   ;)

J. Williams

Oh dear another bug

When you remove the mod,it moves the warned etc to post-count based group

Will you fix it?(please)
Joshua Jon Williams
Back in Action.

Valodim

you mean change the groups to normal groups?

J. Williams

yes,it changes them to post count groups on uninstall
Joshua Jon Williams
Back in Action.

Valodim

ok, I'll add a query UPDATE {$db_prefix}membergroups SET minPosts = -1 WHERE minPosts = -2, in about 3 hours. not at home right now. :)

J. Williams

Ok is that query sql executable?
Joshua Jon Williams
Back in Action.

Valodim


allever

I'm getting the following errors when I try to install this one: :(

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate latin1_general_ci NOT NULL,
`valid` tinyint(4) NOT
File: ************************/forums/Packages/temp/vWarnDB.php
Line: 13
Sometimes, it's the little features.. Err, things that matters....

Valodim

mysql < 4.1 doesn't support collate statement, could you check if that's the cause?

J. Williams

I had to delete my forum due to a bug
Joshua Jon Williams
Back in Action.

allever

Quote from: Valodim on September 19, 2005, 02:39:46 PM
mysql < 4.1 doesn't support collate statement, could you check if that's the cause?
Hrmms... Looks like I have mysql 4.0.22.. that's probably the case
Sometimes, it's the little features.. Err, things that matters....

Valodim

#39
allever: I'll take a closer look, expect my answer tomorrow.

Quote
I had to delete my forum due to a bug

huh? you mean, a bug in my mod? or what? o_O

Advertisement: