Xoops Comments - Prevent Anonymous User Spam

Although there is option in every module that would let you choose who can post a comment. But what if you want anonymous users to post comments as well. There isn't any option (at least I couldn't find any) that will prevent anonymous users from spamming. So this hack will prevent spam if a url\link is found in anonymous users' post.

As always recommended while playing with hacks, make sure you backup the file you will be editing. In this case its: XOOPS_ROOT_DIR\Include\comment_post.php

Note: I have tested it only on Xoops 2.0.16


Start...

1) Open XOOPS_ROOT_DIR\Include\comment_post.php


2) Look for the following on line 138

Original Code
break;
case 
"post":

   
$doimage 1;
    
$comment_handler =& xoops_gethandler('comment');
    
$add_userpost false;
    
$call_approvefunc false;
    
$call_updatefunc false;





3) Change it to ...
break;
case 
"post":

    
//myhack - Prevent Anonymous User Spam
    //if a URLLINK is found in link, then dont let annonymous user post.
    
$myhack_comment $_POST['com_text'];
    
$myhack_title $_POST['com_title'];
    
//checking if poster is anonymous
    
if (!is_object($xoopsUser)) {
        if (
preg_match("/http/",$myhack_comment) || preg_match("/www/",$myhack_comment) || preg_match("/href/",$myhack_comment) || preg_match("/http/",$myhack_title) || preg_match("/www/",$myhack_title)) {
            echo 
"Dont Spam Bitch!!!!!";
            exit();    
        }
        else {
        }
    }
    
//end of myhack


    
$doimage 1;
    
$comment_handler =& xoops_gethandler('comment');
    
$add_userpost false;
    
$call_approvefunc false;
    
$call_updatefunc false;



Read more... | 3 comments

Release of SmartPartner 2.0 RC !

Release of SmartPartner 2.0 RC !The SmartFactory is proud to release the new version of its partners management module : SmartPartner 2.0 RC ! What is SmartPartner? SmartPartner is an advanced Partners Management System for your XOOPS site. It features all the functionalities of the original XoopsPartners module, combined with the features of the other SmartModules. And now, with version 2.0, many new cool features were added !! What's new in version 2.0? - Addition of multiple category for a partner. - Addition of two perms levels: Full view & Partial view - Addition of offers within a partner - Addition of new/updated icon to mark partners - Addition of scrolling partner block - Addition of category list block - Addition of new partner block - Addition of new offer block - Addition of random offer block - Addition of new partner notification - Addition of new offer notification Where could I see this LIVE ? We just updated the partners section SmartFactory with our new module so come have a look :http://smartfactory.ca/modules/smartpartner Where can I get it ? If you are upgrading from a prior version of the module, please carefully read the file upgrade.txt as it contains important informations about the steps that need to be performed in order to successfully upgrade to this version. You can download the module here : SmartPartner 2.0 RC. Please note that this version requires the latest SmartObject Framework Module to be installed on your site. The language packs are available here : SmartPartner Language Packs. As usual, any comments, bugs or suggestion are welcomed on the SmartPartner Community Support Forum. Enjoy !
Read more... | 11 comments

Ramadan Theme

Arabxoops is proud to announce the release of Ramadan 3-Column fixed width theme. That is both W3C XHTML + CSS 2.0 Compliant.

Resized Image

Ramadan theme based on web templates designed by dtxp.com and one of xoopsdesign.com themes.

Demo: www.arabxoops.com
Download: click here

Happy Ramadan

Read more... | 8 comments

Stonehenge Festival

http://www.stonehengefestival.nl
Just an average Xoops-site.

A site I build for the small dutch heavy metal festival 'Stonehenge'. The reason I switched to Xoops was the handy use of multiple languages with the xLanguage module. As more and more foreign visitors visited the site it became important to present at least a bi-langual site.
Performance is an issue though, but thats not the fault of Xoops but of my hostingprovider www.servage.net. They're cheap, and give you A LOT but performance isn't a strong point of them. At the bottom of my site you can see the loadtime; in black so it doesn't draw to much attention.
I tried other cms-es but Xoops is the one I feel most comfortable with.
Comments?

The XOOPS group on Facebook !

The XOOPS group on Facebook !It is my great pleasure to announce that a XOOPS group has been created on Facebook to create connections between XOOPSers of the world ! If you are interested, simply access this group here, or do a quick search for XOOPS in Facebook. Hope to see you there ! Cheers !
Read more... | 2 comments

Xoops Multisite (MultiX) first Beta Release

We announce the first beta version of the MultiSite Project for Xoops (yes... the famous hack MultiX).

This is the 2.0.17 xoops version modified to allow multiple sites in one root directory, with the posibility to share tables, groups, sessions and more. Also you can use some configurations files that will help you to administer some functionality aspects of each site.

The link to the project in sourceforge ishttp://sourceforge.net/projects/multixoops/. You can download from here.

We hope Multix would be helpfull for you and the feedback help Multix to grow and be better!!
Read more... | 21 comments

Theatreport Celebrates 4 years Using XOOPS with re-launch

Resized ImageTheatre Port, a Houston based, online theatre magazine/resource celebrates its fourth year using XOOPS with a new design and layout. For 4 years Theatre Port has been using XOOPS to offer a free supportive website for man y of the city's (houston , tx) diverse non-profit theatre scene.

Accessible under both spellings of theatre-TheatrePort offers organizations with limited resources an opportunity to promote their events, seek volunteers and post audition and job notices. The site not only features user submitted press releases but also events, research, resources, links and even columns. The site is free for registered members to use.

The integration of forums into XOOPS has also been a bonus, it allows our users a chance to argue, debate and often share stories and announcements. We utilize such features as a calendar, image gallery, news, special sections and many custom altered modules. In short, we have grown into a full fledged online community!

The site was first generated in 2002 and born as a XOOPS powered site in the spring of 2003. TheatrePort was born from the need for local coverage for the performing arts, particularly theatrical events. Many other sources of the local media simply were not covering the scene. The often over looked performing arts scene in Houston has grown immensely in the last decade and the all volunteer run TheatrePort has inspired organizations with 10x the budget (which is easy because we are really 100% volunteer) to get their act together and support the performing arts in Houston!

We owe a great deal of gratitude to the XOOPS community and a great number of people who have contributed to it, either through their modules or theme development over the years. So in short, we thank the entire XOOPS community for inspiring and driving us to create a user powered site that is grass roots in spirit and determined to always be free for it’s non-profit members.

A new look
Our new layout is based on the Zetareticuli theme, the foundation behind morphogenesis -We wound up blending old Zetareticuli with some modern morph ‘ elements, classic default elements and of course many of our old sites attributes.

Thanks to everyone for their continued work on XOOPS, keep it up!

We've been running volunteer for four years now and with even less of a team then we started off with. We know what its like to constantly produce something and expect nothing in return but gain simple satisfaction from it’s use and growth. Xoops has been and always will be an integral part of our sites success.

The spirit behind our site has always been inspired by the sense of community in XOOPS, the power of open source and the spirit of grass roots promotion. Whatever quarrels people may have from time to time, remember that you all have contributed to XOOPS in some way, and that in turn has spurned an endless cycle of creativity.

Here’s to the future-

Thank you, Everyone!

Resized Image

p.s
We are still troubleshooting some of our sites elements and as always looking to improve its layout and functionality. We look forward to further participation in XOOPS in the future and to continue to serve our community and promote the infinite power behind the arts with a XOOPS powered site.

Visit Theatre Port Online
Read more... | 5 comments

MrTheme.com Presents MrBiz! *56kWarning*

Mr. Theme Designs is proud to announce the release of MrBiz a vibrant 3-Column fixed width theme. That is both W3C XHTML + CSS 2.0 Compliant.

Resized Image

This theme has a 100% custom Imageset as well as a ridiculously gorgeous CBB 3.08 template set.

The best I can do is tell you to go DEMO it!

Download can be found at Mr. Theme Designs - Registration is required.

Be sure to clear your templates_c!

Please read the readme.

Header PSD and Button PSD Included!
Read more... | 1 comment

Release of XOOPS 2.0.17.1 RC

The XOOPS Core Development team is pleased to announce the release of XOOPS 2.0.17.1 RC !

This is a bugfix release addressing login problems with some IE browsers caused by session_regenerate_id on some PHP versions.

Users who still suffer from login problem after implementing the patch are suggested to turn on custom session in system preferences, or set "enableRegenerateId" to FALSE in /kernel/session.php line #78.

Please read the full changelog for details.
Read more... | 1449 bytes more | 14 comments

feuershow.biz a German Fireshow Page

http://www.feuershow.biz We are two fire performers, we get 95% of bookings any this website This Site is a one to one clon from my old site wiche was developed with an frameset. Caution this site looks differently than the most xoops sites.

The site is developed with Simple Xoops 0.7.9, I used the following Modules :

  1. formulaire 3.31
  2. wiwimod 0.8
  3. myalbum 2.88
  4. multiSite 1.13.4 for the english version

I hope you have fun to watch the pictures and the video from my site. skelink

http://www.feuershow.biz
Comments?
« 1 ... 234 235 236 (237) 238 239 240 ... 553 »


Login

Who's Online

243 user(s) are online (11 user(s) are browsing XOOPS News)


Members: 0


Guests: 243


more...

Donat-O-Meter

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

Latest GitHub Commits

Archives

News archives