News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Visual Warning Mod

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

Previous topic - Next topic

bluesyrio

Thanks, I've installed it smoothly, except that the warning button does not show at all in the menu of buttons on the posts, so the mod can't really be used. I suspect it is related to the fact that I'm using the xtSMF Theme!. The rest is ok, as far I've seen, including all the links in the admin. Any tips, please?

Eleglin

This mod is installed on the default's theme only. You will need to edit manually your template files. More information here.
No support by PM or Mail.

bluesyrio

Thanks for your input. I've tried that before, but the theme folder has only the following files:

BoardIndex.template.php
index.template.php
MessageIndex.template.php

The only one with changes that can be applied is index.template.php which was already done.

I'm a bit lost. During the 1.0 version the mod worked with the theme. I think it has to do with some changes for 1.1, but I really don't know... :(

Eleglin

Does the warning button appear on the default theme ?
How many theme's directory have you got ?
No support by PM or Mail.

Kindred

the warning button's appearance in posts is determined in display.template.php.   If it is not showing up then eithger you did not get it applied in your default theme, or you have a copy of that file in your alternative theme directory.

I have this working just fine, on 4 different themes....
Сл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."

bluesyrio

#385
I have 4 theme directories:

babylon
classic
default
xtSMF

The button shows only in the default theme. Not the case for all the rest, but they do have a display.templalte.php file in the folder, except for the xtSMF directory. ???

This piece of code is showing in default's display.template.php, so everything is indeed ok there:

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];

Eleglin

So, edit the display.template.php files in the directories :
/babylon
/classic
and add the piece of code which determines the warning button's appareance in each ones.

I suppose that your xtSMF is not based upon the defaut theme.  :)
No support by PM or Mail.

bluesyrio

Ok, I've done it to both. It is based on YaBB SE Classic. It is weird, isn't it? Is there any way I can change that? But many thanks anyway, because it is working now! ;D

xtSMF them_info:

<?xml version="1.0"?>
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<!-- Theme name, used purely for aesthetics. -->
<name>xtSMF Theme!</name>
<!-- Author: A.M.A -->
<author name="Simple Machines">[email protected]</author>
<!-- Website... where to get updates and more information. -->
<website>http://www.simplemachines.org/</website>
<!-- Template layers to use, defaults to "main". -->
<layers>main</layers>
<!-- Templates to load on startup.  Default is "index". -->
<templates>index</templates>
<!-- Base this theme off another?  Default is blank, or no.  It could be "default". -->
<based-on></based-on>
</theme-info>



Eleglin

Quote from: bluesyrio on January 30, 2007, 11:38:37 AM
Ok, I've done it to both. It is based on YaBB SE Classic. It is weird, isn't it? Is there any way I can change that? But many thanks anyway, because it is working now! ;D
I think that a change will corrupt the appearance of your theme. You don't want that, do you ?  :P
No support by PM or Mail.

bluesyrio

Not at all! :D Thanks again for you help!

Vinspire

Where is the link to download this mod ?

Apoclypse

Mod is good, but I need to know how to make it work in a custom theme!  >:(

PLEASE HELP!  :'(

Please PM me if you can help me out, I really need this mod working.

Eleglin

Quote from: Vinspire on January 31, 2007, 09:41:05 PM
Where is the link to download this mod ?

HERE

Quote from: Apoclypse on February 01, 2007, 12:33:50 AM
Mod is good, but I need to know how to make it work in a custom theme!  >:(

PLEASE HELP!  :'(

Please PM me if you can help me out, I really need this mod working.

This mod is installed on the default's theme only. You will need to edit manually your template files. More information here.
No support by PM or Mail.

Sapphire_H

I just upgraded to 1.1.1 - this was the first mod I tried to install (I used this on 1.1rc2 for a long time - we depend on it, so I wanted it ASAP) after the upgrade, and I got this:

Quote1.     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    ./Themes/default/languages/Modifications.english.php    Test successful
13.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
14.    Execute Modification    ./Themes/default/index.template.php    Test successful
15.    Execute Modification    ./Sources/Load.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    

I've now installed a few other mods, just to see if that might somehow help - exact same failures with post.php and managepermissions.php

Any suggestions?  

Eleglin

verify your CHMod on these files.

Also, you can do a manual installation of mods. It's really easy :)

Above all, make backup of your database and files !
No support by PM or Mail.

bammoeller

Wont be that bad of a task. You only have to edit two files.

Sapphire_H

Thanks very much Eleglin - it's working now! :)


Qwee

Thanks, this is a nice mod but I have a question about it.

Everything works fine, but when you ban an user, the mod bans only users nickname, not for example ip or hostname, and allows banned user just to register a new account and keep spamming. Is there any way to easily ban also users hostname, without adding hostname manually?

Eleglin

Quote from: Dadin on February 06, 2007, 08:28:28 AM
Thanks, this is a nice mod but I have a question about it.

Everything works fine, but when you ban an user, the mod bans only users nickname, not for example ip or hostname, and allows banned user just to register a new account and keep spamming. Is there any way to easily ban also users hostname, without adding hostname manually?
hem... you can't be sure than you ban only one user; if you ban an IP or an hostname  : An IP or an hostname can be used by many users !
So I won't do this if I was you.  ;D
No support by PM or Mail.

Qwee

#399
Well, banning ip is pretty much the only way to stop spamming, I have experience with the users who just create a new account and keep spamming if only user id is banned..

I have always used both user id and ip ban and it hasn't caused any problems.. And possibility that the same IP is used by several users is pretty small..

Advertisement: