Author |
Topic |
modifichicci
Average Member
Italy
787 Posts |
Posted - 17 June 2006 : 08:52:39
|
Set and implemented by Modifichicci
Support on http://www.herniasurgery.it/forum/
This mod is derived from Crash Award Members and Crash Warn Members Mods As these mods are old and created for an old version of snitz forum and with some errors for MySql, I have adapted them to create a new Warn Members Mod working on all snitz in access and MySql. New features: 1) Admin section from admin home 2) Mod set on /off from Config Features 3) Capability to set warning from topic of the member to be warned 4) If a warn is set,, in topics of meber warned there is the Warn Remove icon. This is view only by admin and moderators. 5) In topics, under the members data will be shown an icon and the word Warning: clikking on icon show the warning message. This is visible by all members 6) A mail is sent to warned members when a warn is set and when a warn is removed.
New add for cdosys mail, can send mail with html formatting if present in message. 24 june 2006
Instructions in text file. File to be edited: config.asp admin_home.asp admin_config_features.asp inc_iconfiles.asp pop_config_help.asp topic.asp
Difficulty (1 _10) = 2
Download: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=227
Italian Version available on http://www.superdeejay.net/download/files/Mod_Ammonizioni.zip
Image Portal Version available in Download section of http://www.hernisurgery.it/forum/ (registration required)
Try it and feedback errors and modify. Thank you.
Update 18 june 2006 Admin Name set from db, don't need any changes in file of the mod! Zip updated.
Update 24 june 2006 Corrected some bugs in three files (admin_warning, pop_warning, pop_warn_message)
Update 4 july 2006 Correct some errors shown from feedback, added lines for inc_mail to send HTML mail with Cdosys and Cdonts also. Deleted java lines generating errors in some forums (probably used from old snitz version)
<moved to="MOD Add-On Forum (W/O Code)" by="Shaggy" />< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
Edited by - modifichicci on 04 July 2006 13:48:17 |
|
modifichicci
Average Member
Italy
787 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 19 June 2006 : 16:09:33
|
Others little errors detected: in pop_warning.asp add at the top after the others include:
<!--#INCLUDE FILE="inc_header_short.asp" -->
in admin_warn_members.asp at line 84 " <td valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & Call Paging() & "</font></td>" & vbNewline & _ "</tr></table>" put Call Paging() inside " " it became like this:
" <td valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & "Call Paging()" & "</font></td>" & vbNewline & _ "</tr></table>"
Zip updated!< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
Edited by - modifichicci on 19 June 2006 16:10:01 |
|
|
JBaldwin
Junior Member
USA
137 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
|
TonyB7
Junior Member
USA
267 Posts |
Posted - 23 June 2006 : 21:04:17
|
Just in case this is something I might be interested in, what exactly does this mod do? I mean, what am I 'warning' members about?< |
|
|
JBaldwin
Junior Member
USA
137 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 26 June 2006 : 05:10:35
|
As there seem to be a good few glitches in this, I've moved it to the "W/O Code" forum for now.
< |
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 04 July 2006 : 03:53:54
|
quote: Originally posted by modifichicci
Any feedback?
First I like to say "Thank You" modifichicci!
IM using SHN forum code and just installed this 2 days ago. So far it's working GREAT!
There was a few things that I had to fix... 1- Fixed the Javascript Error as per JBaldwin thread in the Help: MOD Implementation forum. I to was getting that Javascript Error also and I removed lines 13,14,15,16, and 17 on inc_warning_functions.asp. That fixed the problem for Me!
2- On pop_warning_message.asp the following text was in another lang... Nome Membro: Icona ammonizione: Messaggio ammonizione: Chiudi finestra I Corrected to... WARNING MESSAGE: Member Name: Warning Level: Warning Message: Close Window
3- On admin_warning.asp when "setting" a warning to a member from the admin section on my forums the following text would show up 2 times...Warning set - Sent email to Member!. On admin_warning.asp I comment out line 81
4- On admin_warn_delete.asp when "removing" a warning to a member from the admin section on my forums the following text would show up 3 times...Warning removed! - Sent email to Member. On admin_warn_delete.asp I comment out lines 57 and 106
That's about it! I made a few personal changes for my site such as adding a openWindow function just for the mod itself so the text don't wrap for my members in popups who have their Screen Resolution set to 800x600, I Made the pop windows wider. Also a few minor personal changes to look better with SHN forum code
Thanks again modifichicci!
< |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 04 July 2006 : 13:46:02
|
Thank you!!
ZIP UPDATED (all zip)
Corrected errors shown by Pull My Finger
Add lines to inc_mail to send html letter format with cdonts also.
Deleted the java lines that generate error in some forum. I think that where for an old version of snitz.
If you want to change the window aspect of the message shown, you can set in inc_warning_functions:
Javascript:openWindowWarning1 change it to a window you like from that implemented in inc_header (there are 6 windows set from line 235 to line 257...) and you can delete the java lines in the top of this file. Or you can leave them and change the attributes such as dimension or scrollbars and resizable=yes...)
< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
Edited by - modifichicci on 04 July 2006 13:49:01 |
|
|
Pull My Finger
Starting Member
43 Posts |
Posted - 05 July 2006 : 06:32:16
|
modifichicci:
On pop_warning_message.asp the following text was in another lang...((You forgot to change in last update)}. Chiudi finestra needs to be changed to Close Window
Also on pop_warning_message.asp I found another minor problem..... Line 33
<td background="<% =strCrashColorTemplateDir %><% =strCrashBGCategoryImage %>" border="0" height="<% =strCrashBGCategoryHeight %>" colspan="2" align="center" valign="middle"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>"><b> Warning Message</b></font></td>
Needs to be changed to....
<td bgColor="<% =strHeadCellColor %>" border="0" height="20" colspan="2" align="center" valign="middle"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>"><b> WARNING MESSAGE</b></font></td>
Heres something you might consider on next update... On inc_warning_functions.asp In the function openWindowWarning1.... - on line 11 change this - popupWin = window.open(url,'new_page','width=400,height=200') - to this - popupWin = window.open(url,'new_page','width=600,height=300,scrollbars=yes,resizable=yes') -then- In your Instructions.txt file for topic.asp.... There is 4 lines that have openWindow5 in those lines. - change those to - openWindowWarning1
That way all the popup windows for the mod on topic.asp will use openWindowWarning1. Since pop_warning_message.asp uses openWindowWarning1 anyway why not use openWindowWarning1 for the admin part of it from topic.asp!
That way nobody will be wasting your time on popup window stuff from topic.asp Just a thought... I made those change's on inc_warning_functions.asp and topic.asp and everything works aok on my site
Thanks again! BOB
< |
Edited by - Pull My Finger on 05 July 2006 06:35:31 |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 05 July 2006 : 12:26:10
|
Thank you again! ZIP UPDATED
The function WindowWarning1 is cold only from inc_warning_functions because this window is only a display window, and should not need a resize, but every one can change it to his preference, as you say.
It is possible also change windowWarning1 to openWindow5 in inc_warning_function, deleting the java lines from this file, if you need some others layout...
THe function openWindow5 is already in snitz code, so we can use it instead another functin.. but everyone can choose what he prefers.. Thank you again!!!
< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
|
|
Pull My Finger
Starting Member
43 Posts |
Posted - 05 July 2006 : 13:52:58
|
quote: Originally posted by modifichicci
but everyone can choose what he prefers..
Yea, your right... and after thinking about it I have to agree. Plus if they do think they need to change it all they have to do is read this thread since it was disscused anyway!
The reason why I did it that way is so some of the text don't wrap when pop_warning.asp and pop_warning_del.asp pops up when clicking the admin icon from topic.asp. That was my personal choice.
Besafe and thanks again! Bob< |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 05 July 2006 : 14:35:49
|
That is strange, because openWindow5 has set this way in inc_header:
"function openWindow5(url) {" & vbNewLine & _
" popupWin = window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')" & vbNewLine & _
"}" & vbNewLine & _ I have chosen it just for the scrollbar and resizable function...< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
Edited by - modifichicci on 05 July 2006 15:04:51 |
|
|
Topic |
|