|
Profile
Personal Photo
Rating
Options
Personal Statement
Flexer doesn't have a personal statement currently.
Personal Info
Flexer
Administrator
27 years old
Male
London, UK
Born Aug-2-1985
Interests
No Information
Statistics
Joined: 2-July 04
Profile Views: 10,893*
Last Seen: 10th May 2013 - 04:11 PM
Local Time: May 19 2013, 08:13 PM
640 posts (0 per day)
Contact Information
No Information
No Information
No Information
georgi_avr@hotmail.com
* Profile views updated each hour
|
Topics
Posts
Comments
Friends
My Content
9 Jul 2004
In The latest CuteNews versions there is a lost-password function included!
This won't work when your host doesn't allow you to send mails. Then try the following You can't retrieve your lost password but you can change it. To change your password, open users.db.php that is located in you CuteNews folder. Then find the line in users.db.php where is displayed your username after your username there should be a | and then a long string of letters and numbers, this is your crypted password. Now you should delete this password string and make a new password in md5 format, you can do this using this tool (or google for md5 encoder when this tool doesn't work), then replace with your new password and save.
9 Jul 2004
CuteNews has this kind of function that will always display the X latest news on your site if you use the include code with $number;
Example: If you have just archived all your news and dont use $number in your include code, on your page whre news should appear there wont be shown any news. But if you use $number in your include code then CuteNews will get the X latest news from the last archive and will display them, so on your page will always be displayed the X latest news.
3 Jul 2004
Go to: Options > System Configurations
Select "no" on "Show Comments When Showing Full Story". Under the comments tab. The news tab has a similar function. Then delete all occurrences ([com-link]) of comments in your templates. Also delete everything in the comments form template part
3 Jul 2004
Name: Automatic Short Story
Author: StealthEye Updated by: FUNimations CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet) Description: This hack will allow you when adding news to add only the Full story and the Short story to be auto-generated from the first X characters of the full story. Now you can use [truncate=X]...[/truncate] in your templates. CODE [truncate=10]1234567890[/truncate] -> 1234567890 [truncate=10]12345678901[/truncate] -> 1234567... [truncate=10]12345678901234567890[/truncate] -> 1234567... You should be able to do the same on a title, like CODE [truncate=20]{title}[/truncate] if the title is longer than 20 chars, it will be truncated Instructions: Find this snippet of code in shows.inc.php 2 times: CODE $output = str_replace("{cute-http-path}", $config_http_script_dir, $output); and below both, put this: CODE // Truncate v1.0 - addblock if (!function_exists(clbTruncate)) { function clbTruncate($match) { if (strlen($match[2]) > $match[1]) { return substr($match[2], 0, $match[1] - 3) . '...'; } else { return $match[2]; } } } $output = preg_replace_callback('#\[truncate=(.*?)\](.*?)\[/truncate\]#i', clbTruncate, $output); // Truncate v1.0 - End addblock *Update by FUNimations CuteNews doesn't allow empty short stories. This error was reported with CN 1.4.6, older versions may also have this problem In addnews.mdu find CODE if(trim($short_story) == "" or !$short_story){ msg("error","Error !!!","The story can not be blank.", "java script:history.go(-1)"); } and put CODE // in front of it.
3 Jul 2004
Name: Maximum lenght of comment
Author: Flexer CuteNews Compatibility: 1.3.6 (higher versions have this built in) Description: Prevent people from posting long comments that are usually spam anyway. Instructions: open shows.inc.php and search for: CODE if($allow_add_comment){ then below it add this: CODE $max_len = 300; if(strlen($comments) > $max_len){ echo("<div style=\"text-align: center;\">Your comment must not be longer than $max_len</div>"); $CN_HALT = TRUE; break 1; } where $max_len is set to the maximum characters that a comment must contain |
Last Visitors
Guest
6 Aug 2012 - 9:36
Comments
Friends
|
|
Lo-Fi Version | Time is now: 19th May 2013 - 07:13 PM |