News:

Wondering if this will always be free?  See why free is better.

Main Menu

Visual Warning Mod

Started by Eleglin, July 31, 2007, 08:53:40 AM

Previous topic - Next topic

vince123

#640
Yeah, that was my question, how to switch to english. I'm new to this.

Edit: nevermind, thank you!

ms_ukyankee

#641
Quote from: hcfwesker on September 06, 2010, 09:14:50 AM
Then what is the purpose of this line in the MOd description ...

QuoteVersion 1.4+ adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)

yeah ... I'm confused  :o

I believe it hides the warning icon that shows in the profile summary in posts only, not the Warning reason added to the post text.

I've updated this for my own use, removed the part where it edits posts and instead adds the warning reason to the private message sent. Back up your original Sources/VisualWarning11.php and replace with the attached file instead if you'd like to try this functionality. It is working well for me, SMF 1.1.12. Hope that helps.
SMF since 2004 <3

ms_ukyankee

Also to get rid of the : Undefined index: return_to_post error appearing in the logs, find in Sources/Post.php


if ($options['return_to_post'] == '1' && $topic != '')
redirectexit("$scripturl?topic=$threadid;start=new");


Change to:
if (!empty($_REQUEST['goback']) && $topic != '')
redirectexit("$scripturl?topic=$topic.new#new");

SMF since 2004 <3

IlyZor

Will there be an update for 1.1.12 ?

ms_ukyankee

I've installed on 1.1.12, I don't think it needs updating. I had to make a few manual edits as well. I have a duplicate test forum (mods and templates) that I worked on first to make sure I had done it correctly before applying to the live forum and copying my hand edited files.
SMF since 2004 <3

MRM4

Quote from: Kindred on December 04, 2010, 07:01:24 PM
yes, that is what is wrong.
either switch to English, or update your modifications.english-utf8.php file with the text strings
I was having the same problem with the text not showing up. I was going to switch my board to English and there is no choice for it. All the choices are whatever lanuage-utf8. Anything I can do about this?

impreza

An interesting add-on, works ok
Portal Totemat - artykuły i filmy - treści w postaci artykułów i filmów.

Kindred

add the language strings to your modifications.englishutf8.php file
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

netoya

#648
It is a realy greate mod for SMF 1.1.13
Everything works fine, but my forum is in Russian Federation and so, if user name has cyrillic letters the warning not deleted automatically if it expired causing the following errors:
Database error: 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 ')
ORDER BY mem.lngfile
LIMIT 0' at line 9
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 771
?action=recenttopics;latest=1298664642;xml
2: implode(): Invalid arguments passed
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 769
?action=recenttopics;latest=1298664642;xml
2: array_merge(): Argument #2 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 758
?action=recenttopics;latest=1298664642;xml
2: array_merge(): Argument #1 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 758
?action=recenttopics;latest=1298664642;xml
2: array_diff(): Argument #1 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 755
?action=recenttopics;latest=1298664642;xml
2: array_unique(): The argument should be an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 755
?action=recenttopics;latest=1298664642;xml
2: array_unique(): The argument should be an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 752
?action=recenttopics;latest=1298664642;xml
2: Invalid argument supplied for foreach()
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 712
?action=recenttopics;latest=1298664642;xml

If user name is on Latin alphabet warn deleted correctly.

Analyzing the code came to the conclusion, it appears when script trying to send a PM to user with Cyrillic letters
Then warn time expired, PM is not send to user regardless of whether it is written his name in Latin or Cyrillic letters
Need your help to solve this problem.

Subs-Post.php attached

Maybe a bug in VisualWarning11.php including Subs-Post.php?

v.d.

can someone please help me out.
i`m on SMF 1.1.11. and with 1.42 visual warn mod.
I`ve got problem with PM that is sent to person that is warned. Message is without subject and content.
My forum is in Croatian UTF8, and i have copied $txt lines from Modifications.croatian.php but it still does not work.

yogesh_gamer

suing 1.1.13 version
When i click on apply mod i got this message:

Install Actions
Installations actions for "VisualWarning":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   VisualWarningPdb.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/ModSettings.php   Test successful
4.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
5.   Execute Modification   ./Sources/Display.php   Test successful
6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
7.   Execute Modification   ./Sources/Post.php   Test failed
8.   Execute Modification   ./Themes/default/Post.template.php   Test successful
9.   Execute Modification   ./Sources/Karma.php   Test successful
10.   Execute Modification   ./Sources/Subs.php   Test successful
11.   Execute Modification   ./Sources/Security.php   Test successful
12.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
13.   Execute Modification   ./Themes/default/index.template.php   Test successful
14.   Execute Modification   ./Sources/Load.php   Test successful
15.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
16.   Extract File   ./Sources/VisualWarning11.php   
17.   Extract File   ./Themes/default/VisualWarning.template.php   
18.   Extract File   ./Themes/default/images/warnban.gif   
19.   Extract File   ./Themes/default/images/warnpmod.gif   
20.   Extract File   ./Themes/default/images/warnmute.gif   
21.   Extract File   ./Themes/default/images/warnwarn.gif   
22.   Extract File   ./Themes/default/images/members.gif   
23.   Extract File   ./Themes/default/images/buttons/warn.gif   
24.   Execute Modification   ./Themes/default/languages/Modifications.french.php   File not found
25.   Execute Modification   ./Themes/default/languages/Modifications.polish.php   File not found
26.   Execute Modification   ./Themes/default/languages/Modifications.turkish.php   File not found
27.   Execute Modification   ./Themes/default/languages/Modifications.croatian.php   File not found
28.   Execute Modification   ./Themes/default/languages/Modifications.danish.php   File not found
29.   Execute Modification   ./Themes/default/languages/Modifications.spanish.php   File not found
30.   Execute Modification   ./Themes/default/languages/Modifications.portuguese.php   File not found
31.   Execute Modification   ./Themes/default/languages/Modifications.brazilian.php   File not found

Kindred

please try using search.  This same question has been raised and answered in nearly EVERY mod thread... and is addressed in the wiki.

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

smartmouse

Hello, i have installed SMF 2.0 and then i'm using the built-in warn system.
Now i want to import the data of Visual Warning Mod... is it possible?

What are the related database entries? "smf_vwarnings" table only?

Kindred

almost anything is possible.... but there is no easy way to do it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

smartmouse

I undestand.

Anyway can you reply to this?

Quote from: smartmouse on May 18, 2011, 01:59:21 PMWhat are the related database entries? "smf_vwarnings" table only?

smartmouse

Is Eleglin still partecipating to this forum?

timetraveller

Quote from: yogesh_gamer on May 17, 2011, 12:54:39 PM
suing 1.1.13 version
When i click on apply mod i got this message:
.....................
7.   Execute Modification   ./Sources/Post.php   Test failed
..............

I got this too. I looked on that Wiki link and also on an answer on another thread - something about looking at the manual install instructions and parse - which I did and got a whole bunch of code which, as a newbie, frightens the life out of me.

So where do I go from here?

Kindred

Since it appears that some other mod has changed the target code, you will have to manually make the code changes
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

timetraveller

How do I do that? The Wiki page was far from clear to me.

Kindred

I am not sure how to explain more clearly... Since I wrote the wiki article, I explained in what I thought was clear instructions.

You have to manually edit the files, as indicated in the failure message
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: