1
kyraha
Re: Anti-Spam Operation
  • 2006/9/15 22:30

  • kyraha

  • Just popping in

  • Posts: 4

  • Since: 2005/7/2 2


Finally I got it. I have implemented my idea that I explained above.
If anyone is interested in my aproach here is the hack (pretty rough though, but well... let's clean it up together). In the file 'include/comment_post.php' at the line about 240 make the code to look close to this:
if (!empty($com_id)) {
// [ skipped ]
        
} else {
// [ skipped ]
                
if (is_object($xoopsUser)) {
// [ skipped ]
                
} else {
                        
$dohtml 0;
                        
$uid 0;
                        if (
$xoopsModuleConfig['com_anonpost'] != 1) {
                                
redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order1_NOPERM);
                                exit();
                        }
                        
$myts =& MyTextSanitizer::getInstance();
                        if (
eregi('<A ',$myts->sanitizeForPreview($com_text,1))) {
                                
redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order1"No URLs permitted for unregistered users");
                                exit();
                        };
                }

The addition is actually this:
$myts =& MyTextSanitizer::getInstance();
                        if (
eregi('<A ',$myts->sanitizeForPreview($com_text,1))) {
                                
redirect_header($redirect_page.'='.$com_itemid.'&com_id='.$com_id.'&com_mode='.$com_mode.'&com_order='.$com_order1"No URLs permitted for unregistered users");
                                exit();
                        };

I have been using it for a month. So far no spam at all. And users have not noticed any change in the interface. Even the anonymous ones. They're happy and so am I.



2
kyraha
Re: Anti-Spam Operation
  • 2006/8/21 21:39

  • kyraha

  • Just popping in

  • Posts: 4

  • Since: 2005/7/2 2


I have implemented a very simple approach with one of my phpbb boards. Maybe we could use something similar here too. The point is: all the spammers need are href links. On the other hand, most of anonymous posters don't want to post such links. What I did is just deny the entire post if it is anonymous and it contains a href link in any form - [ url ] or < a href= > or just http substring. A human poster can read the error message and edit his/her post to match the requirements or go ahead and register to be able to post links if links are so important to him/her. Spam-bots can not do that and just bounce back with no success (bye-bye). So far it works great. I tried to implement the same with my XOOPS site but got confused with all that spaghetti of the modules/includes structure. But you guys got the idea. Please let me know if anyone succeeds with the coding. Thank you.



3
kyraha
Re: Has anyone installed Xoops on an Ipowerweb server?
  • 2005/7/14 18:16

  • kyraha

  • Just popping in

  • Posts: 4

  • Since: 2005/7/2 2


I have a XOOPS instance (http://doydu.sakhaopenworld.org/) with iPowerweb. The installation went pretty smooth and it worked right a way. But then (maybe when I added some blocks in the main page or some content was added) the loading of it got to be very slow. I don't know why. I haven't investigated it yet. The only thing I can say that other applications (standalone phpBB for instance) on the same host work fast in the same moment of time.



4
kyraha
View sent private messages (Sent PM)
  • 2005/7/2 21:05

  • kyraha

  • Just popping in

  • Posts: 4

  • Since: 2005/7/2 2


Hi there,

I couldn't find this feature in hacks and have created my own code by modifying veiewpmsg.php and readpmsg.php files. But upgrading to new versions such as 2.0.10 and up I had to make those changes again. It would be very good if the possibility of viewing sent PMs will be included in future versions.

Thank you,
Kyraha




TopTop



Login

Who's Online

130 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 130


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits