Mini-meThis file will show you what's new to this version of CuteNews.ru and how to use their features. Please make sure you are familiar with CuteNews.ru 2.5.4 and older as none of it's previous features will be explained in this document.
1) Use this in your include code for random posts when $number is greater than or equal to 2:
$random = "true";
2) Use this in your include code for a single random post:
$random_single = "true";
3) Include 'guest.php' for guest can add news feature (now with {avatar} capability like on the 'add news' page. This file can be found in the root directory of your CuteNews.ru 2.5.5 installation. Captcha is installed and working on this.
4) RSS Feed Importer has been installed. Activate it in your plugins.
5) Newsletter feature has been installed. You can send your posts by mail to your subscribers. You can add emails manually through the admin panel or you can show a little subscribe box where people can leave their email to get the newsletter.
***Explaining the newsletter template:***
Go to Options -> Edit Templates and select "Newsletter" in the dropdown.
See the list below to learn what part of the template corresponds to which part of the newsletter and its available tags.
"Active News" -> Header of the newsletter -> Tags: {nl-count}
"Full Story" -> Table of contents -> Tags: {nl-title}, {nl-archive-id}, {nl-news-id}, {nl-cat-id}, {nl-num}, {nl-short-story}, {nl-full-story}
"Comment" -> Body of the newsletter -> Tags: {nl-title}, {nl-archive-id}, {nl-news-id}, {nl-cat-id}, {nl-num}, {nl-short-story}, {nl-full-story}
"Add comment form" -> Footer of the newsletter -> Tags: {nl-count}
6) Captcha (for spam protection) has been added to the overall CuteNews.ru installation. Utilize it by adding {captcha} to your 'Comment form' in your templates.
7) Comments pagination has been added (might only work if you have mod_rewrite enabled at the moment). Put something like this into your comments pagination template:
<p align=center>[prev-link]<[/prev-link] {cpages} [next-link]>[/next-link]</p>
<p align=center>{current-cpages} of {total-cpages}</p>Add a login box anywhere you'd like in your site layout. Put this at the beginning of your news page:
<?php include('path_to_cute/loginbox.php'); ?>
Put this where you want to show the login box in your news page:
<?php include('path_to_cute/loginbox.php'); ?>
9) Approve/moderate comments has been installed. Activate it in plugins.
10) Poll system installed. Add this where you want to see poll:
<?php cn_poll(); ?>
11) resizeAvatar has been installed. Activate in plugins to use. This will allow you to force the size of your avatar to whatever you'd like in your templates by using this in your templates:
{avatar=width,height}
For example: {avatar=120,60}
12) You may now use PHP in your templates. Activate the plugin and follow these guidelines:
Make sure you use full PHP tags: <?php echo 'blahblah'; ?>
This won't work: <? echo 'blahblah'; ?>
And you have to escape the variables: Use \$variable instead of $variable
13) Registration mod has been added. Your users can now sign up on your site. This is useful in association with the loginbox that has been added to this installation. You can change the settings in the admin panel. You can easily create a new template for your registration form. Just create a new folder in
rootpath/plugins/registration/newtemplate/
and copy the template files from the default template into this folder and change them as you like. You can show the register form on your page like this:
echo regFORM('NameOfTemplate');
example: echo regForm('default');
If the template you called doesn't exist, the default template is loaded.
14) News rating has been installed. Activate plugin, then go to plugins menu in admin-panel and push 'Create table!'. You can use these in your active and full story templates:
{rating} - Shows stars from /plugins/rating/ directory
{rating-total} - shows total ratings
{rating-middle} - shows average rating
{rating-form} - use in full story template to show the rating form
15) Improved image manager has been installed. Along with some small cosmetical fixes this will allow you to:
define the width of the thumb in pixels,
add a shadow to the thumb,
sort the images alphabetically or chronologically,
preview pictures next to each image,
choose image align,
add a watermark (text and/or image)
16) Private messaging has been added to your admin panel. Activate in plugins to use it. Set $mail_on_new_pm to true inside /plugins/private-messaging.php on line 564 to activate email notification on new PM.
17) Multiple authors has been added to your plugins. Activate to use. This will allow admin to select/change the author of a news item via a dropdown menu.
18 ) "Today" plugin has been added. Activate to use. It will show for example "Today, 15:34:23" or "Yesterday, 12:26:03". If the article is older than "Yesterday" it displays the normal date. Use {today} in your template.
19) Category order hack is installed.
txtSQL Warning: Table "pm_inbox" doesn't exist in /home/.../public_html/portal/cnr2/index.php on line 142Users browsing this forum: No registered users and 0 guests