Forum for users of JoomlaWatch / ExtraWatch for Joomla, Wordpress, Drupal, Magento, Prestashop

JoomlaWatch / ExtraWatch has following features: live real-time visitor statistics, location of your visitors on a map, blocking of users based on bad word list, front-end counters, click heat map, definition of goals and rules, graphs, directory size monitoring, monitoring of increase of database data in time, nightly email reports, interactive HTML5 chart of traffic flow within your website, SEO report with keyword statistics and keyword position trends

Welcome, Guest
Please Login or Register.    Lost Password?

Mathguard and Joomlaboard/Fireboard
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Mathguard and Joomlaboard/Fireboard
#931
Mathguard and Joomlaboard/Fireboard 8 Years, 2 Months ago Karma: 0
Hi - I see that you have implemented MathGuard in your Joomlaboard forum - I would really like to know how you did that - can you paste the code or add the modified files or just write some instructions?

I would like to implement that in my forum too, since a few days ago I started to receive spam again. The solution that worked for me till now is this:

Open post.php (/components/com_joomlaboard/post.php) and find the code:
if ($action=="post"){

?>
<table border="0" cellspacing="1" cellpadding="3" width="70%" align="center" class="contentpane"><tr><td>
<?php
$parent=(int)$parentid;
$message = isset($_POST['message']) ? trim($_POST['message']) : '';


than after that add this code - some parts must be replace (look at the code and you will see):

$http = '(http(s)?://)?';
$www = '(www\.)?';
$domain = '([a-zA-Z]((\.|\-)?[a-zA-Z0-9])*)';
$tld = '([a-zA-Z]{2,8})';
$usw = '[a-zA-Z0-9|_|-|+|.|/]*';


$regEx = $http.$www.$domain.'\.'.$tld.$usw;

if(ereg($regEx, $message)){
$checkSecurity = false;
}
else{

$checkSecurity = true;
}

if (empty($sb_authorname))
{
echo _POST_FORGOT_NAME;
}
else if (empty($subject))
{
echo _POST_FORGOT_SUBJECT;
}
else if (empty($message))
{
echo _POST_FORGOT_MESSAGE;
}
else
{

if ($my->id==0 && $checkSecurity==false){
echo "<center><span style='color:red'>Sorry, not registered users cannot post links!</SPAN>";
echo "<br>Copy message from below!";
echo "<br>-------------------------------------------------------------<br>";
echo $message;
echo "<br>-------------------------------------------------------------<p>";

else{

if ($parent == 0)
$thread = $parent = 0;
bobysolo (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Latest News

Get the latest freelance project announcements
Follow CodeGravity.com

Download ExtraWatch™

ExtraWatch™ FREE is Joomla, Wordpress, Prestashop, Magento plugin with following features: Live Stats, Nightly Email Reports, Goals, Graphs, Anti-spam, History and more