Upload a new plugin: News & Comments.
Upload a new version (v0_041211_2227) in: http://get-simple.info/forum/post/20362/#p20362
Test Web: http://cumbe.no-ip.biz/gs_30/list_news/
Please test, before upload to extend.
///////////////////////////////////////////////////
OBSOLETE
//////////////////////////////////////////////////
FEATURES:
* I test in GS30 and GS31beta
* Include comments in pages.
* To do List of Pages or News.
* From Admin > plugins, settings system.
* Backup system.
* CSS system. CSS file is in /plugins/news_comments/nc.css. Thanks to Oleg06 for you good job in to do CSS.
List of news still isn't in css; style directly in news_comments.php
* Works with fancy url on and off.
* Internationalization system: the language of plugins is the same language that admin.
Instrucctions:
1) unzip in folder plugins.
FIRST TO DO:
a) To have pages created.
a) Create a group, or more... (view button Group options).
b) Add page to news in groups created...by default when you add page to news, ALWAYS is in group 1. Then you must EDIT the options of this news created, putting the group correct, type of order, nº of order or priority in group,...(view button Page to News).
c) if you want COMMENTS IN PAGE
- copy and paste you template.php and rename like, for example nw_comments.php
- inside this nw_comments.php, you must put, after of <?php get_page_content(); ?>:
<?php sv_news('nameofuser'); ?>
- create a new page and choose this template.
- Put this page like News (view button Page to News). If the page isn't like News, will not appear the form, nor comments.
Comments are created in data/other/news_comments, 1 file for page: name of page.log.
If a page changes the url, too is changed the log of comments, and the url in data/other/news_comments/nc_manager.xml.
d) If you want LIST OF NEWS or LIST of PAGES:
To see a list of news in a page, you must put in template (or better in content of a page, with exec_plugin installed):
<?php ls_news(groupofnews, true or false); ?>,
* group of news or pages (view button Group Options)
* true, cause a 'echo', and shown the list of pages for group choosed.
* false, cause a 'return', for that the string can to be treated later.
for example: <?php ls_news('1', true); ?>
we will see the news for group 1.
e) In Admin > Plugins, you have a button News & comments.
The settings of News are saved in data/other/news_comments/nc_manager.xml
The setting of groups are saved in data/other/news_comments/nc_group.xml
Buttons:
- NEWS, to see the pages are news, and the settings by page.
* Edit news, click in url or image 'pencil', to choose if you want to use captcha, emoticons,...
In comments, you can put emoticons. The emoticons are in /plugins/news_comments/img_emots . If you want add more emoticons, only you have to paste *.gif in this folder. If you want delete some emoticons, only you have to delete it from folder.
* Comments, to see comments of each news. If a New has comments, will appear a binoculars; click in one you can see, remove, moderate the comments, and create a backup of comments log.
* Image, if the new has a image, will appear a 'Y' with link to image. If you want that appear a image in list of news, you must put folder + image where is one. For example, if you image(image.jpg) is in /images then mut put: 'image/image.jpg'
* Delete Page from News. Click in image 'x', you can remove only the page from News, or page + comments of this page.
It NEVER remove the page of 'PAGES'.
The news can to be joined by groups, by default, only there is one group: '1'.
- PAGE TO NEWS:
Will see all pages created; and that page are News. We can to do:
* to add the pages to News, click in image (+).
* Edit news, to choice if you want to use captcha, emoticons,...
When add a page to News, is created in group 1 by default; you must edit it, and put the settings right.
- GROUP OPTIONS:
Will see all groups created. You can Add groups and edit it.
Edit group:
* Name of group: can be a number, name,...
* Caption: label that will appear in the list of news.
* Nº news in list: pagination, is the number of news that will appear in the list.
* Order: D(decrease): first, the last news, ...
I(increase): first, the first news ...
* Type of order:
+ by entry: in the order the page are saved like news.
+ by field order of news: is possible put a number like has to appear the news. It order can not be repeated inside of the same group.
- BACKUPs:
Will see the list of backup of logs (comments). These backups are created in View Comments (binocular).
Every time that a log is created, the name of backup is: name of log + date + time.bak. It is possible recover this log, and remove it. When a log is recovered, always is done a copy of current log.
The backups are saved in data/other/news_comments/news_comments_bak.
I'm sorry for my english.
Regards.
Upload a new version (v0_041211_2227) in: http://get-simple.info/forum/post/20362/#p20362
Test Web: http://cumbe.no-ip.biz/gs_30/list_news/
Please test, before upload to extend.
///////////////////////////////////////////////////
OBSOLETE
//////////////////////////////////////////////////
FEATURES:
* I test in GS30 and GS31beta
* Include comments in pages.
* To do List of Pages or News.
* From Admin > plugins, settings system.
* Backup system.
* CSS system. CSS file is in /plugins/news_comments/nc.css. Thanks to Oleg06 for you good job in to do CSS.
List of news still isn't in css; style directly in news_comments.php
* Works with fancy url on and off.
* Internationalization system: the language of plugins is the same language that admin.
Instrucctions:
1) unzip in folder plugins.
FIRST TO DO:
a) To have pages created.
a) Create a group, or more... (view button Group options).
b) Add page to news in groups created...by default when you add page to news, ALWAYS is in group 1. Then you must EDIT the options of this news created, putting the group correct, type of order, nº of order or priority in group,...(view button Page to News).
c) if you want COMMENTS IN PAGE
- copy and paste you template.php and rename like, for example nw_comments.php
- inside this nw_comments.php, you must put, after of <?php get_page_content(); ?>:
<?php sv_news('nameofuser'); ?>
- create a new page and choose this template.
- Put this page like News (view button Page to News). If the page isn't like News, will not appear the form, nor comments.
Comments are created in data/other/news_comments, 1 file for page: name of page.log.
If a page changes the url, too is changed the log of comments, and the url in data/other/news_comments/nc_manager.xml.
d) If you want LIST OF NEWS or LIST of PAGES:
To see a list of news in a page, you must put in template (or better in content of a page, with exec_plugin installed):
<?php ls_news(groupofnews, true or false); ?>,
* group of news or pages (view button Group Options)
* true, cause a 'echo', and shown the list of pages for group choosed.
* false, cause a 'return', for that the string can to be treated later.
for example: <?php ls_news('1', true); ?>
we will see the news for group 1.
e) In Admin > Plugins, you have a button News & comments.
The settings of News are saved in data/other/news_comments/nc_manager.xml
The setting of groups are saved in data/other/news_comments/nc_group.xml
Buttons:
- NEWS, to see the pages are news, and the settings by page.
* Edit news, click in url or image 'pencil', to choose if you want to use captcha, emoticons,...
In comments, you can put emoticons. The emoticons are in /plugins/news_comments/img_emots . If you want add more emoticons, only you have to paste *.gif in this folder. If you want delete some emoticons, only you have to delete it from folder.
* Comments, to see comments of each news. If a New has comments, will appear a binoculars; click in one you can see, remove, moderate the comments, and create a backup of comments log.
* Image, if the new has a image, will appear a 'Y' with link to image. If you want that appear a image in list of news, you must put folder + image where is one. For example, if you image(image.jpg) is in /images then mut put: 'image/image.jpg'
* Delete Page from News. Click in image 'x', you can remove only the page from News, or page + comments of this page.
It NEVER remove the page of 'PAGES'.
The news can to be joined by groups, by default, only there is one group: '1'.
- PAGE TO NEWS:
Will see all pages created; and that page are News. We can to do:
* to add the pages to News, click in image (+).
* Edit news, to choice if you want to use captcha, emoticons,...
When add a page to News, is created in group 1 by default; you must edit it, and put the settings right.
- GROUP OPTIONS:
Will see all groups created. You can Add groups and edit it.
Edit group:
* Name of group: can be a number, name,...
* Caption: label that will appear in the list of news.
* Nº news in list: pagination, is the number of news that will appear in the list.
* Order: D(decrease): first, the last news, ...
I(increase): first, the first news ...
* Type of order:
+ by entry: in the order the page are saved like news.
+ by field order of news: is possible put a number like has to appear the news. It order can not be repeated inside of the same group.
- BACKUPs:
Will see the list of backup of logs (comments). These backups are created in View Comments (binocular).
Every time that a log is created, the name of backup is: name of log + date + time.bak. It is possible recover this log, and remove it. When a log is recovered, always is done a copy of current log.
The backups are saved in data/other/news_comments/news_comments_bak.
I'm sorry for my english.
Regards.