xoops forums

Forum Index


Board index » All Posts




Wayne

Just popping in
Posted on: 2002/6/25 18:03
Wayne
Wayne (Show more)
Just popping in
Posts: 35
Since: 2002/2/13
#292231

Re: desperately need help tracking and banning trolls.

Thank you so much. You're always on the ball.

Wayne Hunt


onokazu

XOOPS Founder
Posted on: 2002/6/25 17:27
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#292232

Re: desperately need help tracking and banning trolls.

You can change the line in register.php like this

$mailbody = sprintf(_US_HASJUSTREG,$uname)."\nIP:".$REMOTE_ADDR;
$xoopsMailer->setBody($mailbody);

The notify mail should now include the IP address of the new user.


And yes, we will be adding an enable/disable switch for the img tag feature in user posts.


Wayne

Just popping in
Posted on: 2002/6/25 13:51
Wayne
Wayne (Show more)
Just popping in
Posts: 35
Since: 2002/2/13
#292233

desperately need help tracking and banning trolls.

Hi guys,

I need your help. It seems I've inherited a troll. He is now misusing my system to post child porn images in protest to announcements by the company which makes the Amiga computer.

Since the Ban stuff inside XOOPS has apparently been abandoned, I am in desperate need of help getting rid of this "human".

Specifically, I have the site set up to send me e-mails whenever a user registers. I need that e-mail to include the IP address that the user is using.

I've tracked it down to register.php, line 204

$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$uname));

but I do not know how to modify that line to include the IP address that was used when registering. Once I can get the IP address, I can add it to my .htaccess ban file.

Also! If I could, I would love very much to be able to remove the ability inside the forums and comments for a user to insert an img tag (using bbcode) but have no idea where to begin working with that.

Please help if you have any ideas what I could do to stop this guy from his childish efforts to offend people.


Wayne

Just popping in
Posted on: 2002/6/23 19:42
Wayne
Wayne (Show more)
Just popping in
Posts: 35
Since: 2002/2/13
#292234

Re: Forum: Post new thread button doesn't work

Thank you very much sir. It is much, much appreciated. I also want to thank you for having the "changes" file reflect the individual code changes. It'll help me keep up when I upgrade without wiping out all my little mods.

Wayne


jctsup1

Not too shy to talk
Posted on: 2002/6/23 18:51
jctsup1
jctsup1 (Show more)
Not too shy to talk
Posts: 146
Since: 2002/5/23
#292235

Re: Email Issues

onokazu -

You are the man -

Problem fixed & emails are being delivered!

Thanks



onokazu

XOOPS Founder
Posted on: 2002/6/23 18:04
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#292236

Re: Forum: Post new thread button doesn't work

File: modules/newbb/page_header.php
Line 68, 83

change

echo "<input type='button' value='"._MD_POSTNEW."' onclick='location.href=\"newtopic.php?forum=".$forum."\"' />";

to

myTextForm(XOOPS_URL."/modules/newbb/newtopic.php?forum=".$forum."", _MD_POSTNEW);


Or if you prefer, you can just use <a> tag

echo "<a href='newtopic.php?forum=".$forum."'>"._MD_POSTNEW."</a>";


Alternatively, you can still use the old way which displays the "New Topic" image.

echo "<a href='newtopic.php?forum=$forum'><img src='".$bbImage['newtopic']."' alt='"._MD_POSTNEW."' /></a>";


onokazu

XOOPS Founder
Posted on: 2002/6/23 17:51
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#292237

Re: Email Issues

In class/xoopsmailer.php find the following codes on line 100

$this->LE ="\n";

then change this to

$this->LE ="\r\n";

and on line 187

change

$this->body = str_replace("\r", $this->LE, $this->body);

to

$this->body = str_replace("\n", $this->LE, $this->body);

Please try if this works out your problem.


Anonymous

Posted on: 2002/6/23 17:26
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#292238

Re: Email Issues

bump


Wayne

Just popping in
Posted on: 2002/6/23 17:01
Wayne
Wayne (Show more)
Just popping in
Posts: 35
Since: 2002/2/13
#292239

Re: Forum: Post new thread button doesn't work

Thanks for the reply. Javascript is enabled in all browsers displaying the problem. Seems to be browser specific code. Unfortunately I can't really wait for the next release version. I would absolutely hate to walk away from such a great package out of necessity though.

Is there any chance you should shoot out a fix and paste the code here? I (and my 2100+ users) really, really need it.


onokazu

XOOPS Founder
Posted on: 2002/6/23 16:49
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#292240

Re: Forum: Post new thread button doesn't work

Please check if javascript is enabled on the browser. We will change this to non-javascript button in the next version, but it should work on most of the browsers.
Worked fine using Opera6/IE6/Mozilla1.0 under WinXP and NN6.2/IE6 on Win 2000.