|
Profile
Personal Photo
Rating
Options
Personal Statement
Support_Team doesn't have a personal statement currently.
Personal Info
Support_Team
Advanced Member
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 17-January 12
Profile Views: 2,194*
Last Seen: 19 minutes ago
Local Time: May 23 2013, 12:50 PM
268 posts (1 per day)
Contact Information
No Information
No Information
No Information
No Information
* Profile views updated each hour
|
Topics
Posts
Comments
Friends
My Content
12 Mar 2013
The new Cutenews 1.5.3 released.
In this release we've made some changes of correcting bugs, you can see the list of these changes in changelog http://cutephp.com/cutenews/changelog.php. Also we've added some new options: 1) 5 plugins were written and officially placed on the site http://cutephp.com/cutenews/plugins.php. We also will keep an eye on these plugins and avoid bugs. 2) The update modules of cutenews through unzipping archives have been improved, the migration script has been carried out to the extern module. 3) Added the improved file permissions that actually detects accessibility of files and catalogues for reading and recording. You can send your bug reports to our bugtracker, attach screenshots with step-by-step reproduction of errors. That will help us to easily and quickly understand your problem and solve it. Also if it's possible, we ask you to send the file ./cdata/log/error_dump.log and specify the number of the Cutenews version. This function has been added to the bugreport form.
30 Jan 2013
The idea of plug-ins is that there are the functions hook() that pass the data meanings in the particular places of the original CuteNews code, and these data are handled by plug-ins' filters.
To show how the hooks work we can take for example the code for processing the news template from core.php: CODE list($output, $news_arr) = hook('template_replacer_news_before', array($output, $news_arr)); Here the hook is called for the function "template_replacer_news before" the changes of the constructions like {title}, {author} and so on. Explanations: The array $news_arr is the data with the meanings of the current news, $output is the content of tpl-template, for example the content of Default.tpl. The called hook has a name "template_replacer_news_before". This name is registered when plug-in initialization and can be used for calling other plug-ins, i.e. if one plug-in registered the name "template_replacer_news_before" and another one did the same then the function of the first plug-in will be called primarily. Let's create the first plug-in. Name it my_plugin.php and place in ./cdata/plugins directory. Here are the the plug-in snippet: CODE <?php /* Connect the hook "template_replacer_news_before" with the function 'my_plugin_trnewsb'. It means that while calling the hook ('template_replacer_news_before', $args) the function my_plugin_trnewsb() will be called that will have the parameter $data. */ add_hook('template_replacer_news_before', 'my_plugin_trnewsb'); function my_plugin_trnewsb($data) { // Here the $data is the array, that's why the hook will return the same array return $data; } ?> As you can see the mechanism is quite easy. You need to register the hook and write for it the appropriate handler function. You shouldn't forget to do a 'return' of the data meanings (modified probably) or you can have an incorrect input. Let's write the new field for templates, for example the field "{show_php_version}" CODE <?php add_hook('template_replacer_news_before', 'my_plugin_trnewsb'); function my_plugin_trnewsb($data) { // Unpack the data from the array list($output, $news) = $data; // Make a change of {show_php_version} to the meaning PHP_VERSION $output = str_replace('{show_php_version}', 'PHP Version is '.PHP_VERSION, $output); // Return the data to the code return array($output, $news); } ?> Now add to the template code, for example to the Full Story the fragment {show_php_version}, then create news and see the PHP version data. It's easy to make the additional menu in options with the help of plug-ins. Two hooks are responsible for this – "more_options" and "options_additional_actions". The hook "more_options" is necessary for adding the links to the section Options, the second one processes the incoming data on ?mod=options&action=options. An example: Create the file add_options.php in ./cdata/plugins: CODE <?php add_hook('more_options', 'aopt_menu'); add_hook('options_additional_actions', 'aopt_handler'); // The parameter $options is passed for this hook, we should add function aopt_menu($options) { $PHP_SELF = PHP_SELF; $options[] = array ( 'name' => lang('My plugin!', 'options'), 'url' => "$PHP_SELF?mod=options&action=my_more_options", 'access' => ACL_LEVEL_ADMIN, ); return $options; } // The data aren't passed, we should use the global variables function aopt_handler() { // Instead of the straight call $_GET you can use the function REQ if (REQ('action','GET') == 'my_more_options') msg('info', 'Hello!', lang("It's my FIRST plugin")); } ?> Now in Options there is a new menu 'My plugin!'. While clicking to it we will see the message "It's my FIRST plugin". Good luck with creating of plug-ins!
29 Jan 2013
The new 1.5.2 version has been launched.
The main difference is simplification of the installation process and correction bugs reported here post. You can also see Changelog following this link changelog to analyze the changes. We will constantly work to improve Cutenews, make it stable, easy to use and versatile.
29 Jan 2013
Dear user!
Now there is a form to fill in with bug reports on our site. You can send screenshots with descriptions of the errors and we'll help you as soon as possible and make all necessary code changes. You should attach at least one screenshot, maximum 5. You can add small description with them. The link to the bug tracker-http://cutephp.com/cutenews/bugtracker.php
23 Jan 2013
Dear users!
After careful beta-tests, we are proud to finally present the new Cutenews stable version 1.5.1. With your tremendous support, we have achieved great results. However, there is still a long way to go: we are firmly committed to stay one of the best and will keep trying to make Cutenews meet as many of your needs and desires as possible. You can also participate in developing Cutenews under our GitHub project page. Learn more about it at contrib page The most significant changes in version 1.5.1 include fixed security issues, improved usability and increased Admin Control Panel performance. |
Last Visitors
Comments
Other users have left no comments for Support_Team.
Friends
There are no friends to display.
|
|
Lo-Fi Version | Time is now: 23rd May 2013 - 12:50 PM |