News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

vWarn Mod

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

Previous topic - Next topic

cotdagoo

is it possible to just remove the "collate latin1_general_ci" bit, and still have things work? (my webhost is a 4.0 sql version as well)

mrandall131

Just a note, I have tried it a couple of times now, to make sure it worked correctly and I noticed a couple things.

1. If you give somone a "moderated" warning, the mod also gives the lower level warning (warned) to the user as well.
2. I couldn't find any place to remove a warning, is there such a place.

Valodim

#42
1. no it doesn't, at least for me. if I set "moderated" to 1 and "warned" and "muted" to 0, the user is only moderated. if you mean "the user is in both membergroups if I warn and moderate him" - yeah that is correct. and makes perfect sense to me. (in the post-profile, only the group with the lowest expiry date is shown) :P

2. just set all warnings to 0. pretty obvious, isn't it? :P

mrandall131

How, I couldn't find, once I warned someone, a screne to set the values to 0.  Do I have to do it in the database?

The last time I wasned someone, I used the moderated level.  When it took me to the log for that person, both moderated and warned showed up in the box for that particular warning.  When I went to the membergroups page, he was added into both membergroups.

Valodim

erh? in the "warn user" dialogue, obviously. didn't think I'd have to explicitly add that to the help that setting all warning expiry times to 0 is unwarn. it's just like that in the Visual Warning mod, too >_>

and if the time for "warned" is 0, it shouldn't add that group. it doesn't do that for me, and the code wouldn't do that in any case I just checked. >_<

Valodim

this mod is now SMF1.1RC1 compatible :D

mogadishu

#46
There is just an Text "Warn User" Please  Add A Button To IT [You Should Do THAT]
Or give us a code to do that....THANX in advence !

[edit]

You Can Add the "BANNED" Level ?
AHost.ro- Free WebHosting & Free Domains .
AzD.Ro - Your Gambling Source !

Valodim

#47
well, if someone made me a button... I'm not a designer, I'm a coder >_>

a "banned" level would be more than a normal membergroup, which would be against the concept of this mod. bans are for ip-ranges, email-addresses, etc, not for user-accounts. just make a group "banned" and deny all permissions, if you like, that'd come pretty close to a ban :P

J. Williams

On the other warning mod,the button was phpbb style. And i'd ask someone from the graphics team about a button
Joshua Jon Williams
Back in Action.

mogadishu

You Can Use [Something] Like  This: *used for [Visual Warning MOD]

Or Use This Button Generator to make a Button For the Default Theme http://yabbg.dyndns.org/Version2/ [ i can't Make 4 you an Button ..Beacause i'm Not A designer Try to Ask Mods]
Anyway ..Please I Want To USE A Button..Give me[US] A Code To Add To MOD [To Show A Button]
AHost.ro- Free WebHosting & Free Domains .
AzD.Ro - Your Gambling Source !

Valodim

simple. find this line in the display.template.php template, find this (use Strg+F and search for the comment)


	
	
// Show warning button, if they can warn
	
	
if (
$context['can_warn'])
	
	
	
echo 
'
	
	
	
	
	
	
	
	
	
<a href="'
$scripturl'?action=profile;u='$message['member']['id'], ';sa=warn;postid='$message['id'], ';sesc='$context['session_id'], '">', (false && $settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/warn.gif" alt="' $txt['warn'] . '" border="0" />' $txt['warn']), '</a>';


and remove the "false &&" in front of the $settings['use_image_buttons'], then it will use warn.gif from the user's language's images dir...

And What's With All Words Capitalized?

mogadishu

Greate [Support Dude] MOD !
ThanX Alot ! 8)
AHost.ro- Free WebHosting & Free Domains .
AzD.Ro - Your Gambling Source !

cotdagoo

is there any sort of work-around or method of using this mod on a host that has mysql 4.0.x?

sorry for asking again, but I would really like to use this mod from all the great things I've read so far.

Valodim

yeah I'll kick the collate statement (later this day :P)

edi67

can be implemented for users too and not only for membergroups ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

mrandall131

I'm back, sorry.   ;D

Ok, two things. 

I tried to unwarn (un-moderate) a user by trying to warn him and making the warning time 0.  That didn't work, it said unwarned in the log, but he stayed warned (moderated level). 

Now, #2, he time was up today, and he is still showing the warning level (moderated).   When I went to the warn user screen, the moderaqted level was at -0.02 days??????  Now, I went back in and gave him a warning, we'll see if that deletes the moderated level once it expires.

Just wondering if these are supposed to happen?

Valodim

#1 sounds like a bug. I'll take a look ::)

#2 happens because the auto-unwarn-function is only called every 2 hours. I'll add an option for that in the next version. Do you think the default time is too high?

mrandall131

Nope, now that I know that fact, I think it is fine. 

J. Williams

I tried it out in the new smf & it made them into post groups again
Joshua Jon Williams
Back in Action.

Purplemadness

Quote from: Valodim on September 22, 2005, 03:58:19 PM
well, if someone made me a button... I'm not a designer, I'm a coder >_>
Here you go, if you don't like it, say it :P
Dutch power!

Advertisement: