i guess that's supposed to be how can i erase images using this tool.
The answer would be select them and use the "deleted selected images" button

look for the hack.

I've tried everthing but it will not work?

define everything. If you actual tried everything, then what's the point of asking....
Please list the steps you've tried here.

It only shows when you select the "watermark option"
Are you sure you have javascript enabled?

255

(7 replies, posted in Hacks & Tricks / FAQ)

Original topic: here

Hack Name: reCaptcha Hack
Description: Show a image inside your comments form with a scrambled code in it. Enter the code for confirmation. Makes use of a captcha service.
Author: Greg G
Installation notes:
1) Go to reCaptcha and "Sign Up Now"

2) Sign up and note your "Private & Public Keys"

3) Download the latest version of reCaptcha for PHP here.

4) Drop "recaptchalib.php" into your /inc folder

5) Open /inc/shows.inc.php

6) find:

if($allow_add_comment){

and add BELOW IT:

    //----------------------------------
    // Recaptcha
    //----------------------------------

require_once('recaptchalib.php');
$privatekey = "###";
$resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

if (!$resp->is_valid) {
  die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
       "(reCAPTCHA said: " . $resp->error . ")");
}

REPLACE ### WITH YOUR PRIVATE KEY

This code validates the captcha.

7) Now find:

$template_form = str_replace("{smilies}", $smilies_form, $template_form);

and add ABOVE IT:

require_once('recaptchalib.php');
$publickey = "###";
$template_form = str_replace("{captcha}", recaptcha_get_html($publickey), $template_form);


REPLACE ### WITH YOUR PUBLIC KEY

This code displays the captcha.

8) Find:

echo"<div style=\"text-align: center;\">This name is owned by a registered user and you must enter password to use it

<form name=passwordForm id=passwordForm method=\"post\" action=\"\">

Replace with:

echo"<div style=\"text-align: center;\">";
echo"<form name=passwordForm id=passwordForm method=\"post\" action=\"\">";

require_once('recaptchalib.php');
$publickey = "###";
echo recaptcha_get_html($publickey);

echo"


REPLACE ### WITH YOUR PUBLIC KEY
This code adds the captcha window to the page displayed when an admin needs to verify their password when they leave a comment.
The rearranging happens because recaptcha needs to be inside the <form> tag.

9) Save shows.inc.php

10) Go into your template editor (in the cutenews controle pannel) and add {captcha} into your template wherever you want the captcha box to be displayed.

Now I know its not the prettiest captcha box but it works really well and has cool features like "read the captcha text as audio". Browse around the reCaptcha site and you will find some adjustments that can be made to the box itself.

?? i don't get it.

FUNimations wrote:

Indeed it's been months since we were supposed to get information about this.
To all people who want to participate, save yourself the trouble of posting, as nothing happens with this project.


FUNimations wrote:

I guess some people can't read.

FUNimations wrote:

Indeed it's been months since we were supposed to get information about this.
To all people who want to participate, save yourself the trouble of posting, as nothing happens with this project.

I guess some people can't read.

it's not so clear whta the problem is.
Make a temp journalist account and put the account details here with a link to your pane, so we can see the problem in action, along with the source code provided by the server.

No such file or directory in

me thinks there's no thumb
1-Ass.FIGC-400.jpg

on a other note: some hosts don't allow acces from certain countries. I should have remembered that :s
because this is the case for funpic.de

I don't like wasting my time.

me too.

havent i seen a topic about this before?

the news main idea. Doesn't that get represented by the category name? And there is a category-icon option available.
OR use the avatar fiels instead.

SO i checked out the 2 hacks. Only the approve hack adds something to index.php, and got nothing to do with headers.

<?php
header("Cache-Control: must-revalidate");
header("Pragma: cache");

$if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']);

$mtime = filemtime("./cutenews/data/comments.txt");
$gmdate_mod = gmdate('D, d M Y H:i:s', $mtime) . ' GMT';

if ($if_modified_since == $gmdate_mod) {
header("HTTP/1.0 304 Not Modified");
die();
}
header("Last-Modified: $gmdate_mod");
?>

I dont believe that this code goes into the cutenews index.php file but rather your websites main page. (index.php is the most common filename for the websites main page.)

i'll take a look at it tomorrow. (maybe tonight depends on when i'll be home).

what's the original code you need to look for
the code you replaced it with (willy's code)
and what part are you supposed to add for this mod.

You can chagne this in the image.mdu file. somewhere at the top of the file, you have some variables you need to configure.

search.php?

cutenews isn't mysql but txtsql. It uses .txt files to save data.
Try and search for cutenews ru on google
It's a somewhat other news script with the same basic function and feeling, but it has plugins, on of which is a password protect entry plugin.
But don't start deleting cutenews and just switch. Try it out first and see if you get it working.

Indeed it's been months since we were supposed to get information about this.
To all people who want to participate, save yourself the trouble of posting, as nothing happens with this project.

Did you read this? There's isn't any progress made on this project.

271

(7 replies, posted in Hacks & Tricks / FAQ)

Original topic: <strike>here</strike>

Hack Name: Captcha Hack
Description: Show a image inside your comments form with a scrambled code in it. Enter the code for confirmation.
Author: FI-DD
Downloadable File: Download, extract the files and upload them to your main cutenews folder. Read the readme and follow the instruction.
Captcha1: Use these files if you have only 1 cutenews include on your newspage. Comments in popup still works.
Captcha2: Use these files if you have more then 1 cutenews include on your newspage. Comments in popup don't work here.

The hack itself: see orignal topic for the hack. READ THE INSTRUCTIONS really carefull and double check everything you do. Many have had problems because they overlooked something.
ATTENTION: not all servers support this hack!! You need GD2 Lib support.

272

(7 replies, posted in Hacks & Tricks / FAQ)

Original topic: <strike>here</strike>

Hack Name: Deny URLs in comments.
Description: Prevent people from adding comments with a URL in it. This is quite effective, because spambots leave URLs behind. Downsize is, if a spambot adds a URL in the email field and you allow email field to act as URL field it will come through as we only check the comments themselves.
Author: FUNimations, Silk & DistantJ
Downloadable file:
shows.inc.php download the file and rename .txt to .php

1. open shows.inc.php in inc folder ... important make back-up first.
find

if( strlen($comments) > $config_comment_max_long and $config_comment_max_long != "" and $config_comment_max_long != "0"){
               echo"<div style=\"text-align: center;\">Your comment is too long!</div>";
                $CN_HALT = TRUE;
                break 1;
        }

add under it.

$pattern = "/[.]+(aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs
|mobi|mil|museum|name|net|org|pro|root|tel|travel|ac
|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az
|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bw|by
|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx
|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj
|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr
|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|htm|html|php|il|im|in|io|iq
|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la
|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm
|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|asp|cgi
|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk
|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd
|se|sg|sh|si|sk|sl|sm|sn|sr|st|sv|sy|sz|tc|td|tf|tg|th
|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va
|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$/i";
$message = "Your not allowed to put URL\"s in the comments field.";
if ( preg_match($pattern, $comments) || preg_match("/www./i", $comments) || preg_match("/http/i", $comments) ) {
echo"<div style=\"text-align: center;\">$message</div>";
$CN_HALT = TRUE;
break 1;
}

273

(7 replies, posted in Hacks & Tricks / FAQ)

Original topic: <strike>here</strike>

Hack Name: Spam protection with random bot word.
Description: people will have to fill in this word before the comment can be added to the database. This word is a generated String of letters and numbers. This hack is updated on 06/08/2008 to improve the effectiveness. It should work now with more than 1 include code, though that's unconfirmed!
Author: FUNimations
Extra credits: Ifa
1. open the file that has your CN include code ... important make back-up first.
add

<?php session_start(); ?>

At the top of that page. This must be the very first PHP code!!
If you get a warning/error about sessions on your site. This will be due to the fact you have another PHP script in there that also uses sessions.
Ask their support what to do. And tell them that session_start() already happens before you use their script. This function is a PHP function and is not limited to a script, but can be used by all scripts in that page.

2. open shows.inc.php in inc folder
find 

$mail = trim($mail);

add under

 $test = trim($_POST[$_SESSION['spam']]);

find

<input type=\"hidden\" name=\"ucat\" value=\"$ucat\" />

and radd under

<input type=\"hidden\" name=\"".$_SESSION['spam']."\" value=\"$test\" />

find

$mail                 = replace_comment("add", preg_replace("/\n/", "",$mail));

add under

$test                = replace_comment("add", preg_replace("/\n/", "",$test));

find

if($name == " " or $name == ""){

add above

if($_SESSION[$_SESSION['spam']] == $test ) {$ok = TRUE;}
    else
        { echo("<div style=\"text-align: center;color:white;background-color:darkred;\"> Your write too long!
 [url=] go back [/url] </div>");
                $CN_HALT = TRUE;
                break 1;
        }


Please ... before you save show.inc.php , make sure javascript doesn't have a space like this:
java script:history.go(-1)

find

$template_form = str_replace("{smilies}", $smilies_form, $template_form);

add under

if( !isset($input_name) ){
function code($nc, $a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0') {
       $l=strlen($a)-1; $r='';
       while($nc-->0) $r.=$a{mt_rand(0,$l)};
       return $r;
    }
$input_name = code(10);
$_SESSION['spam'] = $input_name;
$code = code(5);
$_SESSION[$input_name] = $code;
}
    $template_form = str_replace("{smilies}", $smilies_form, $template_form);
    $template_form = str_replace("{bot-inputname}", $_SESSION['spam'] ,$template_form);
    $template_form = str_replace("{bot-word}", $_SESSION[$_SESSION['spam']] ,$template_form);


3. Go to the comments form template.
Put something along this piece of code goes inside the comments form template.

<tr>
<td width="450" height="1"> 
<small>Type {bot-word} in the box:</small>
</td>
<td width="450" height="1"><small><input type="text" name="{bot-inputname}" tabindex="1"> (anti-spam)</small>
</td>
</tr>

Content List

* Spam protection with random bot word.
* Deny URL&#039;s in commentshttp://users.belgacom.net/bn333252/emoticon/hot.png
* Captcha Hack
* ReCaptcha servicehttp://users.belgacom.net/bn333252/emoticon/hot.png
* Spam protection with asking three random chars from a random string of chars.
* Hidden input fields (no captcha)

i guess your asking for subcategories. Cutenws doesn't support and as we don't hear anything anymore from the devellopper, i doubt it'll ever be part of CN.
I think cutenews.ru would be a better choice, cause it allready ahs subcategories in it.
http://english.cutenews.ru/forum/

Posts found: 251 to 275 of 286

Pages Previous 1 9 10 11 12 Next

CutePHP Forums → Posts by FUNimations



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.