Delete banned users

classic Classic list List threaded Threaded
52 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Pedro
Take a look here http://support.nabble.com/Extra-Profile-Fields-tp7586937p7586938.html .
You haven't edited your profile header yet.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
In reply to this post by juanete
Yes, juanete, I'm sure. This is the profile of a user who is writing these days in my forum..



What do you think about?
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

juanete
Hi, paste the complete code (not a photo) of the following macros:

extra_profile_fields
profile_header
new_post


Note: Paste the code between the tags:
< raw name = "code" class = "xml">
and
< /raw>

remove the space after the two symbols <
(if I remove the label is not displayed because the code is interpreted. I leave a picture for you to see better)


“El software libre construye una sociedad mejor“
"Free software builds a better society"
— Richard Stallman
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
In reply to this post by Pedro
Pedro, how do I have to edit my profile header? Can you explain me step by step, please? Thank you very much..
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
This post was updated on .
In reply to this post by juanete
I don't know if I have understood well, juanete. I hope I have done all right. Thank you..

extra_profile_fields :

    <macro name="extra_profile_fields" requires="user,servlet">  
        <n.set_local_user.this_user />  
        <!-- Listing the fields already filled -->  
         <n.this_user.list_extra_fields/>  
    </macro>  
      
    <macro name='list_extra_fields' requires='user'>  
        <!-- Ip property-->  
        <n.if.this_user.has_property name="ip">  
            <then>  
                <br/>  
                <strong>IP: </strong><n.this_user.get_property name="ip"/>  
            </then>  
        </n.if.this_user.has_property>  
    </macro>      

profile_header:

<override_macro name="profile_header" requires="user">
    <n.set_local_user.this_user />
    <n.block.>
        <div class="second-font shaded-bg-color rounded" style="font-size:170%;padding:.2em .5em;margin-left:.1em">
            <n.local_user.name/>
        </div>
        <table>
            <tr valign="top">
                <td><n.local_user.avatar size="big"/></td>
                <td style="width:100%;padding-left:.5em">
                    <n.if.both condition1="[n.visitor.is_site_admin/]" condition2="[n.local_user.is_authenticated/]">
                        <then>
                            <strong>Email</strong>: <n.local_user.user_email/>
                        </then>
                    </n.if.both>

                    <n.if.local_user.is_banned>
                        <then>
                            <n.local_user.banned_label/>
                        </then>
                        <else>
                            <n.local_user.registration_label/>
                            <n.local_user.list_current_groups/>
                            <n.if.not.local_user.is_deactivated>
                                <then.local_user.send_email_to_user_link/>
                            </n.if.not.local_user.is_deactivated>
                        </else>
                    </n.if.local_user.is_banned>

                    <!-- If this is the profile of the visitor -->
                    <n.if.visitor.equals.local_user>
                        <then>
                            <!-- if the user is authenticated -->
                            <n.if.local_user.is_authenticated>
                                <then.local_user.authenticated_self_profile_header/>
                                <else>
                                    <div style="margin-top:.5em">
                                        <t><n.register_link.>Register now</n.register_link.> if you want to edit your profile, receive posts via email,control your starred items or have access to your global profile.</t>
                                    </div>
                                </else>
                            </n.if.local_user.is_authenticated>
                        </then>
                        <else>
                            <n.if.visitor.can_manage_banned_users>
                                <then>
                                    <div style="margin-top:.5em">
                                        <img src="/images/icon_blocked.png" class="image16" style="margin:0 1px"/>
                                        <n.if.local_user.is_banned>
                                            <then><a href="[n.local_user.unban_path/]"><t>Unban this user</t></a></then>
                                            <else><a href="[n.local_user.ban_path/]"><t>Ban this user</t></a></else>
                                        </n.if.local_user.is_banned>
                                    </div>
                                </then>
                            </n.if.visitor.can_manage_banned_users>
                        </else>
                    </n.if.visitor.equals.local_user>
                </td>
            </tr>
        </table>
    </n.block.>
</override_macro>

new_post:

<override_macro name="new_post" parameters="page_name,mailing_list_etiquette,bottom,focus" requires="servlet">
    <n.node_page.>
        <n.handle_new_node_permission_error/>
        <n.if.not.is_submitted_form>
            <then>
                <n.subject_field.set_value value="[n.page_node.default_reply_subject/]" />
                <n.alert_field.set_value value="[n.page_node.alert_default_value/]" />
                <n.init_new_post_custom_fields/>
            </then>
            <else>
                <n.catch_exception. id="save-block">
                    <n.handle_anonymous_submit/>
                    <n.check_antispam_submit bypass="preview"/>
                    <n.check_recent_post_limit/>
                    <n.create_child_of_page_node commit="[n.not.is_preview/]">
                        <subject><n.subject_field.value/></subject>
                        <message><n.message_field.value/></message>
                        <is_html><n.html_format_field.value/></is_html>
                        <type><n.type_field.value/></type>
                        <kind>post</kind>
                        <do>
                            <n.remember_new_node/>
                            <n.if.not.is_preview>
                                <then>
                                    <n.save_post/>
                                    <n.save_new_post_custom_fields/>
                                    <n.new_node.send_node_as_email/>
                                </then>
                            </n.if.not.is_preview>
                        </do>
                    </n.create_child_of_page_node>
                    <n.if.not.is_preview>
                        <then>
                            <n.new_node.save_alert_field/>
                            <n.redirect_to.new_node.url/>
                        </then>
                    </n.if.not.is_preview>
                </n.catch_exception.>
            </else>
        </n.if.not.is_submitted_form>
        <n.html>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title.><n.page_name/></n.title.>
                <n.focus/>
                <style type="text/css">
                    .title-row {
                        padding:.6em .8em;
                        font-weight:bold;
                    }
                    div.field-title {
                        margin-top: 0;
                    }
                </style>
            </head>
            <body>
                <n.edit_header first_text="[n.page_name/]" second_text="[n.truncate. size='80'][n.page_node.subject/][/n.truncate.]" />

                <n.if.is_submitted_form>
                    <then>
                        <n.if.has_exception for="save-block">
                            <then.show_new_node_error/>
                            <else>
                                <n.if.is_preview>
                                    <then.new_node.preview/>
                                </n.if.is_preview>
                            </else>
                        </n.if.has_exception>
                    </then>
                </n.if.is_submitted_form>

                <n.subscription_reminder/>

                <n.form. onsubmit="return singleSubmit(this)">
                    <n.type_field.hidden/>
                    <n.mailing_list_notice.mailing_list_etiquette/>

                    <n.reply_form />

                    <div style="margin-top:1em">
                        <n.antispam_submit_button class="toolbar action-button" value="[t]Post Message[/t]"/>
                        <input type="submit" class="toolbar action-button" name="preview" value="[t]Preview Message[/t]"/>
                        <t>or</t>
                        <a href="[n.page_node.url /]"><t>Cancel</t></a>
                    </div>
                </n.form.>

                <n.hide_null.bottom/>
            </body>
        </n.html>
    </n.node_page.>
</override_macro>
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

juanete
You have not done well. I see strange things in the code. You should edit your message and delete the blank space between "<" and "raw", the beginning and end of the codes



What I do see is that, as Peter said, you have not edited the macro "profile_header", nor "new_post".

And if you edited, the changes have not kept

Edit again, as I explained. Find the two macros, click "Override this macro", make the changes and click "Save changes"
“El software libre construye una sociedad mejor“
"Free software builds a better society"
— Richard Stallman
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
OK, Greg. I made the changes, but, as you say, the changes have not kept. I don't know why.
I redid everything and now works.  Now I see the IP.  Thank you very much..
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

mywaytoo
Is there something that we can all copy... and instructions as to where to put everything... ?

Harvey... I see that you are listing spammers... Is there a reason for this... ?
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
He, mywaytoo. You have to follow these instructions .
To search for the macro to change, you have to use "search macros".



Juanete explained it very well and  if I have been able, anyone can do it....
Regards

I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

mywaytoo
I've googled 'block IP addresses' and found this... https://kb.mediatemple.net/questions/1699/Block+a+specific+IP+address+from+accessing+your+website#gs

It seems quite good but I can only pick out a few words / phrases that I have heard of in the past, eg. FTP. I have no idea what to do with these, let alone with NAML...

I'm wondering whether Nabble could help out and ban them at their level... if we gave them ALL our collected spammer email addresses... ???

BUT in the mean time, having got the IP address, you can use... http://www.stopforumspam.com/ ...
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

Silvana
In reply to this post by Pedro
I would like to give even a hint. It would be helpful if in options-> users-> change permissions, you put the possibility to choose who can send private messages to users, because now, all registered users can do it and, therefore, spammers also, if we do not block them immediately. Thanks
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Delete banned users

mywaytoo
Silvana... Good idea, but wouldn't it be an even better idea if Nabble were to select such an option for their free support forum... ?

I have had emails from people who are not among my known spammers, and it seems to me that they are just 'guests / anon' visitors to Nabble Free Support forum who are phishing for people's details...

In the mean time, I suggest to everyone...
DO NOT REPLY TO EMAILS VIA NABBLE UNLESS YOU KNOW THEM...
Anne
123