News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Visual Warning Mod

Started by xenovanis, November 06, 2005, 01:39:15 AM

Previous topic - Next topic

xenovanis

Quote from: Bonk on November 08, 2005, 08:46:34 AM
Um, what does it do?

Added description to the first post. Will add some screenshots soon ;)
"Insanity: doing the same thing over and over again and expecting different results."

Bonk

Coolness!  8) Thanks. We just might use this one. (as it looks like it won't be lost in a future 1.0.5 -> 1.1.x upgrade of our forums)

Fizzy

Bonk,

This is a great and very useful mod. Personally I think the dev team would do well to include Xeno's mod in to the main release, but that's just my opinion :)
"Reality is merely an illusion, albeit a very persistent one." - A.E.


xenovanis

Thanks Fizzy, but that's way to much credit for me.  :-[ I only updated it because I needed it, Grudge created it.
"Insanity: doing the same thing over and over again and expecting different results."

CuTe_MaN

hi thx for the nice mod

but the problem is that i get this message when i click on "Post Moderation Manegment"

"Unable to load the 'main' template."

i am using SMF 1.1RC1 and i installed the mod using Packages instillation

i uploaded it to the Packages folder in my site and then installed it

so any body can help

thx

Nitro

sounds like you have mambo/joomla? just wondering
MPF Rocks!!!

CuTe_MaN

i have SMF 1.1 RC1 and using the defualt theme

i am getting the same problem with any mod that i install

can u help

Bonk

#27
Seems to be working OK for me. (haven't tested using it yet though, as I cannot create a new account as registrations seem to be broken on MySQL 5 - hope to resolve that shortly...)

Bonk

#28
Getting errors posting as a moderated user - not sure if php 5.0.5 or MySQL 5.0.15 related:

Quote
8: Undefined index: returnToPost
File: \forum\Sources\Post.php
Line: 1294

8: Undefined variable: scripturl
File: \forum\Sources\Post.php
Line: 1297

Think its php 5.0.5...

Bonk

It seems to work despite these errors however... (so far).

Bonk

#30
It works for me up to banning:

Quote
Database Error
Field 'hostname' doesn't have a default value
File: \forum\Sources\VisualWarning.php
Line: 185


Running on php 5.0.5 and MySQL 5.0.15 in strict mode.

Bonk

To get it to work, I had to modify the ban query code like so:


elseif ( $major_version == '1.0' ) {
db_query("
INSERT INTO {$db_prefix}banned (ID_MEMBER, ban_type, hostname, email_address, reason, notes, restriction_type, ban_time, expire_time)
VALUES ($_REQUEST[user], 'user_ban', '', '', '$message', '$txt[visual_warning_management]', 'full_ban', $ban_time, $expire_time)", __FILE__, __LINE__);
}


Though it really should use the member account's actual e-mail address...

I have not done so for the other database versions...

xenovanis

Hi Bonk,

I'm very sorry for the delay. I will look into those errors as soon as I'm up to it. Right now I'm having some personal problems, so I won't be able to spend much time on it.
"Insanity: doing the same thing over and over again and expecting different results."

Bonk

No problem xenovanis, I understand.

Its working OK for us for now, it would be nice to get it running error free though, when you get the chance to look at it.

Our admins and mods love it! Thanks for the effort you've already put into updating it.

TimeJunky

Quote from: Bonk on November 11, 2005, 11:08:54 AM
To get it to work, I had to modify the ban query code like so:


.....


Though it really should use the member account's actual e-mail address...

I have not done so for the other database versions...


I installed SMF for the first time at all. As I have the same error, it would be nice, if you tell me rigth path and file to make the bug-fix. thx

Bonk

Sources\VisualWarning.php lines 182-186. My fix posted above is only for 1.0.x. I am not working with 1.1.x yet.

stryker69

ok im running the new 1.1rc1 and with this mod i se everything but the WARN button on the post.
i am useing the helios mutli skin so any help i would like...

thank you

edi67

i want reply for tell only that this mod work like a charm with SMF 1.1 RC without no problme and not error

thx again
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

desistyle

I know i am asking a stupid question but i installed  this mod and everything i dont see a error my only question is how to use it i mean where should i click to warn the members

stryker69

Quote from: desistyle on November 17, 2005, 07:23:11 PM
I know i am asking a stupid question but i installed  this mod and everything i dont see a error my only question is how to use it i mean where should i click to warn the members

same here guys it stalls fine it just dont show the warn button or anything like that. and i have followed the HOW TO GET MODS TO WORK WITH OTHER THEMES and it still dont work please help.

p.s. please see my other post!

thank you

Advertisement: