|
From: <be...@us...> - 2013-02-05 11:56:59
|
Revision: 10989
http://sourceforge.net/p/xoops/svn/10989
Author: beckmi
Date: 2013-02-05 11:56:52 +0000 (Tue, 05 Feb 2013)
Log Message:
-----------
Updating to 1.68 RC 1
Modified Paths:
--------------
XoopsModules/news/trunk/news/admin/admin_header.php
XoopsModules/news/trunk/news/class/class.newsstory.php
XoopsModules/news/trunk/news/class/class.newstopic.php
XoopsModules/news/trunk/news/class/news_stories.php
XoopsModules/news/trunk/news/class/news_topics.php
XoopsModules/news/trunk/news/docs/changelog.txt
XoopsModules/news/trunk/news/xoops_version.php
Added Paths:
-----------
XoopsModules/news/trunk/news/class/wideimage/fonts/index.html
XoopsModules/news/trunk/news/class/wideimage/index.html
XoopsModules/news/trunk/news/class/wideimage/mappers/index.html
XoopsModules/news/trunk/news/class/wideimage/operations/index.html
XoopsModules/news/trunk/news/extra/index.html
XoopsModules/news/trunk/news/extra/modules/index.html
XoopsModules/news/trunk/news/extra/modules/tag/index.html
XoopsModules/news/trunk/news/extra/modules/tag/plugin/index.html
Removed Paths:
-------------
XoopsModules/news/trunk/news/language/englishUTF8/
Modified: XoopsModules/news/trunk/news/admin/admin_header.php
===================================================================
--- XoopsModules/news/trunk/news/admin/admin_header.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/admin/admin_header.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -27,8 +27,8 @@
$thisModulePath = dirname(dirname(__FILE__));
//if functions.php file exist
-require_once dirname(dirname(__FILE__)) . '/include/functions.php';
-//require_once $thisModulePath . '/include/functions.php';
+//require_once dirname(dirname(__FILE__)) . '/include/functions.php';
+require_once $thisModulePath . '/include/functions.php';
// Load language files
xoops_loadLanguage('admin', $thisModuleDir);
@@ -49,7 +49,7 @@
$topicsHandler=& xoops_getModuleHandler('news_topics','news');
$storiesHandler=& xoops_getModuleHandler('news_stories','news');
-$myts =& MyTextSanitizer::getInstance();
+$myts = MyTextSanitizer::getInstance();
if ($xoopsUser) {
$moduleperm_handler =& xoops_gethandler('groupperm');
Modified: XoopsModules/news/trunk/news/class/class.newsstory.php
===================================================================
--- XoopsModules/news/trunk/news/class/class.newsstory.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/class/class.newsstory.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -1384,7 +1384,7 @@
{
function __construct(&$db)
{
- parent::__construct($db, "stories", 'stories', 'storieid', 'title');
+ parent::__construct($db, "mod_news_stories", 'stories', 'storieid', 'title');
}
}
?>
Modified: XoopsModules/news/trunk/news/class/class.newstopic.php
===================================================================
--- XoopsModules/news/trunk/news/class/class.newstopic.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/class/class.newstopic.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -41,7 +41,7 @@
var $topic_rssurl;
var $topic_color;
- function NewsTopic($topicid=0)
+ function __construct($topicid=0)
{
$this->db =& XoopsDatabaseFactory::getDatabaseConnection();
$this->table = $this->db->prefix("mod_news_topics");
Modified: XoopsModules/news/trunk/news/class/news_stories.php
===================================================================
--- XoopsModules/news/trunk/news/class/news_stories.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/class/news_stories.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -83,7 +83,7 @@
{
function __construct(&$db)
{
- parent::__construct($db, "stories", "news_stories", "storyid", "uid");
+ parent::__construct($db, "mod_news_stories", "news_stories", "storyid", "uid");
}
}
?>
\ No newline at end of file
Modified: XoopsModules/news/trunk/news/class/news_topics.php
===================================================================
--- XoopsModules/news/trunk/news/class/news_topics.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/class/news_topics.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -66,7 +66,7 @@
{
function __construct(&$db)
{
- parent::__construct($db, "topics", "news_topics", "topic_id", "topic_pid");
+ parent::__construct($db, "mod_news_topics", "news_topics", "topic_id", "topic_pid");
}
}
Added: XoopsModules/news/trunk/news/class/wideimage/fonts/index.html
===================================================================
--- XoopsModules/news/trunk/news/class/wideimage/fonts/index.html (rev 0)
+++ XoopsModules/news/trunk/news/class/wideimage/fonts/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/class/wideimage/index.html
===================================================================
--- XoopsModules/news/trunk/news/class/wideimage/index.html (rev 0)
+++ XoopsModules/news/trunk/news/class/wideimage/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/class/wideimage/mappers/index.html
===================================================================
--- XoopsModules/news/trunk/news/class/wideimage/mappers/index.html (rev 0)
+++ XoopsModules/news/trunk/news/class/wideimage/mappers/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/class/wideimage/operations/index.html
===================================================================
--- XoopsModules/news/trunk/news/class/wideimage/operations/index.html (rev 0)
+++ XoopsModules/news/trunk/news/class/wideimage/operations/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/news/trunk/news/docs/changelog.txt
===================================================================
--- XoopsModules/news/trunk/news/docs/changelog.txt 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/docs/changelog.txt 2013-02-05 11:56:52 UTC (rev 10989)
@@ -1,6 +1,6 @@
======================
-v1.68 2012-08-08
+1.68 RC 1 2013-02-05
======================
- fix of UTF-8 in makePDF (black_beard)
@@ -11,7 +11,7 @@
- fixing error with navigation icons (AngeloRocha/mamba)
======================
-v1.67 2012-07-01
+1.67 2012-07-01
======================
- Add option for using Facebook Comments (mamba)
@@ -28,20 +28,20 @@
- bunch of small fixes, reported by Cesag, Mazarin, Renetjuh, and others
======================
-v1.66
+1.66
======================
- Removing double encoding with htmlspecialchars
- Removing pdf folder (dhsoft)
Changelog
======================
-v1.65
+1.65
======================
- Adding prefix to adminmenu function for 2.4.2 compatibility
- Correcting method for loading Editors in xoops_version.php
======================
-v1.63
+1.63
======================
- The Xoops 2.3 editors are fully supported (tested with Xoops 2.3.1 RC)
- The support for the Spaw editor is abandoned
@@ -52,7 +52,7 @@
- Correction of a bug in the "By Topic" presentation of the articles (on index.php)
======================
-v1.62
+1.62
======================
- The module is now Xoops 2.3 compatible
- Many corrections in the use of the deprecated TextSanitizer functions
@@ -60,13 +60,13 @@
- TCPDF was updated to its version 4.0.017 (don't forget to create a file for your language in /xoops/modules/news/pdf/config/lang)
======================
-v1.61
+1.61
======================
- Correction of a bug in the link to the previous article (in article.php)
- Update of TCPDF to its version 4.0.004
======================
-v1.60
+1.60
======================
- It was possible to give any ranking to an article
- After you have vote for an article, you are redirected to the article (and not to the module's index page)
@@ -80,7 +80,7 @@
======================
-v1.56
+1.56
======================
- In article.php and when you was using a site with multilinguals, there was a problem with the previous and next titles
- It was possible to see the form used to post a comment even when anonymous users had not the right
@@ -95,12 +95,12 @@
==========================================================================================
======================
-v1.55
+1.55
======================
> Correction of a bug in the files upload
======================
-v1.54
+1.54
======================
> Added a missing picture in the Dojo toolkit used to create fun menus in the module's administration
> Added some tests so that the module does not reveals its path
@@ -115,7 +115,7 @@
======================
-v1.53
+1.53
======================
> Bug correction in the module's upgrade
> Bugs corrections in the module's preferences (thank you nobunobu)
@@ -130,7 +130,7 @@
> We have added the French documentation inside the module
======================
-v1.51
+1.51
======================
> I have corrected the backend.php and backendt.php (they were saved in UTF8)
> I have added ALT and TITLES to the "Bookmark this article at these sites" pictures
@@ -140,7 +140,7 @@
======================
-v1.50
+1.50
======================
> I have renamed some functions in /xoops/modules/include/functions.php
to prefix them with news_ (because of some conflicts with some other modules)
@@ -261,7 +261,7 @@
======================
-v1.44
+1.44
======================
Some corrections available in this version was made by Marcan and 5vision, thank you both !
> backendt.php, the "channel_category" tag now contains the topic's title (5vision)
@@ -274,7 +274,7 @@
======================
-v1.43
+1.43
======================
> Code corrected because of the bug "Call to a member function getConfigsByCat() on a non-object in include/functions.php on line 328"
This bug was appearing under some rare circumstances.
@@ -286,13 +286,13 @@
> The option "Enable authors to edit their posts" is now checked by default
======================
-v1.42
+1.42
======================
> Corrected a bug in the infotips
> Corrected a bug due to Php 5.0.5
======================
-v1.41
+1.41
======================
Additions, modifications & bugs corrections :
> For security reasons, I have removed the Xoops version from the printed version of an article
@@ -307,7 +307,7 @@
> I have corrected a bug in the option "Enable authors to edit their posts"
======================
-v1.4
+1.4
======================
Additions, modifications & bugs corrections :
> I have added the code recommanded in Xoops 2.0.13.1 for security reasons
@@ -335,14 +335,14 @@
======================
-v1.312
+1.312
======================
Modifications :
> The module is now capable to use the editors provided with Xoops 2.2 (The module is also runing with older Xoops versions)
> I have modified the templates so that the news printable version, the pdf version and the rating pages are not indexed by robots (thanks to tl for the tip)
======================
-v1.311
+1.311
======================
Corrections :
> A bug was corrected in the PDF's titles
@@ -352,7 +352,7 @@
==================================================================*****
-v1.31 Definitive version
+1.31 Final version
==================================================================*****
Corrections :
> A correction in the automatic generation of keywords and description has been made.
@@ -366,7 +366,7 @@
======================*****
-v1.31 RC2
+1.31 RC2
======================*****
Corrections :
> There was a bug int the "randon news" block when you was selecting to use only one or zero stories (thank you domifara)
@@ -398,7 +398,7 @@
======================*****
-v1.31 RC1
+1.31 RC1
======================*****
Corrections :
> News by this author, it was possible to call this page even if the module's option was desactivated
@@ -442,7 +442,7 @@
============================================**
-v1.3 Definitive
+1.3 Final
============================================**
> Relative paths was changed to absolute paths inside the scripts
> I have added a lang.diff file for the translators
@@ -464,7 +464,7 @@
======================*****
-v1.3 RC2
+1.3 RC2
======================*****
Bugs corrections in :
- The form used to submit news
@@ -492,7 +492,7 @@
======================*****
-v1.3 RC1
+1.3 RC1
======================*****
> New module's options :
- New page and link and option "News by the same author"
@@ -567,7 +567,7 @@
======================**
-v1.2.1
+1.2.1
======================**
> Some important security holes have been corrected. That's why this version exists. Thanks goes to onokazu
> The possibility to upload excel and word files have been removed.
@@ -593,13 +593,13 @@
======================*****
-v1.2 Final
+1.2 Final
======================*****
> Added Spotlight Feature to Recent/Top News block
> Added an icon below the article's title to show articles with attached files
======================*****
-v1.2 RC2
+1.2 RC2
======================*****
> Fixed topic image alignment not saving
> Fixed NewsStory::getAllPublished to work with backend.php
@@ -607,7 +607,7 @@
======================*****
-v1.2 RC1
+1.2 RC1
======================*****
> Added ALT+S as submit option (include/storyform.inc.php, admin/storyform.inc.php)
> Fixed warning about invalid index "anonpost" in submit form (include/storyform.inc.php)
Added: XoopsModules/news/trunk/news/extra/index.html
===================================================================
--- XoopsModules/news/trunk/news/extra/index.html (rev 0)
+++ XoopsModules/news/trunk/news/extra/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/extra/modules/index.html
===================================================================
--- XoopsModules/news/trunk/news/extra/modules/index.html (rev 0)
+++ XoopsModules/news/trunk/news/extra/modules/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/extra/modules/tag/index.html
===================================================================
--- XoopsModules/news/trunk/news/extra/modules/tag/index.html (rev 0)
+++ XoopsModules/news/trunk/news/extra/modules/tag/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/news/trunk/news/extra/modules/tag/plugin/index.html
===================================================================
--- XoopsModules/news/trunk/news/extra/modules/tag/plugin/index.html (rev 0)
+++ XoopsModules/news/trunk/news/extra/modules/tag/plugin/index.html 2013-02-05 11:56:52 UTC (rev 10989)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/news/trunk/news/xoops_version.php
===================================================================
--- XoopsModules/news/trunk/news/xoops_version.php 2013-02-05 11:06:27 UTC (rev 10988)
+++ XoopsModules/news/trunk/news/xoops_version.php 2013-02-05 11:56:52 UTC (rev 10989)
@@ -51,11 +51,11 @@
$modversion["module_website_url"] = "www.xoops.org/";
$modversion["module_website_name"] = "XOOPS";
$modversion["release_date"] = "2012/07/01";
-$modversion["module_status"] = "Beta 1";
+$modversion["module_status"] = "RC1";
$modversion["author_website_url"] = "http://www.xoops.org/";
$modversion["author_website_name"] = "XOOPS";
$modversion['min_php']='5.2';
-$modversion['min_xoops']="2.5";
+$modversion['min_xoops']="2.5.5";
$modversion['min_admin']= "1.1";
$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7');
@@ -74,11 +74,9 @@
// Admin things
$modversion['hasAdmin'] = 1;
+$modversion['system_menu'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
-// Admin menu
-// Set to 1 if you want to display menu generated by system module
-$modversion['system_menu'] = 1;
// Templates
$i = 1;
|
|
From: <ce...@us...> - 2013-06-15 17:04:41
|
Revision: 11691
http://sourceforge.net/p/xoops/svn/11691
Author: cesag
Date: 2013-06-15 17:04:36 +0000 (Sat, 15 Jun 2013)
Log Message:
-----------
Remove obsolete Firefox 2 microformats. See here http://wiki.mozilla.org/Microsummaries (cesag)
Modified Paths:
--------------
XoopsModules/news/trunk/news/language/english/modinfo.php
XoopsModules/news/trunk/news/xoops_version.php
Modified: XoopsModules/news/trunk/news/language/english/modinfo.php
===================================================================
--- XoopsModules/news/trunk/news/language/english/modinfo.php 2013-06-15 16:50:42 UTC (rev 11690)
+++ XoopsModules/news/trunk/news/language/english/modinfo.php 2013-06-15 17:04:36 UTC (rev 11691)
@@ -133,8 +133,8 @@
define('_MI_NEWS_DUBLINCORE_DSC',"For more information, <a href='http://dublincore.org/'>visit this link</a>");
define('_MI_NEWS_BOOKMARK_ME',"Display a 'Bookmark this article at these sites' block?");
define('_MI_NEWS_BOOKMARK_ME_DSC',"This block will be visible on the article's page");
-define('_MI_NEWS_FF_MICROFORMAT',"Activate 'Firefox Micro Summaries'?");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesag)
-define('_MI_NEWS_FF_MICROFORMAT_DSC',"For more information, see <a href='http://wiki.mozilla.org/Microsummaries' target='_blank'>this page</a>");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesag)
+//define('_MI_NEWS_FF_MICROFORMAT',"Activate 'Firefox Micro Summaries'?");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesag)
+//define('_MI_NEWS_FF_MICROFORMAT_DSC',"For more information, see <a href='http://wiki.mozilla.org/Microsummaries' target='_blank'>this page</a>");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesag)
define('_MI_NEWS_WHOS_WHO',"Who's who");
define('_MI_NEWS_METAGEN',"Metagen");
define('_MI_NEWS_TOPICS_DIRECTORY',"Topics directory");
Modified: XoopsModules/news/trunk/news/xoops_version.php
===================================================================
--- XoopsModules/news/trunk/news/xoops_version.php 2013-06-15 16:50:42 UTC (rev 11690)
+++ XoopsModules/news/trunk/news/xoops_version.php 2013-06-15 17:04:36 UTC (rev 11691)
@@ -630,8 +630,7 @@
$modversion['config'][$i]['default'] = 0;
/**
- * Activate Firefox 2 microformats ?
- */
+ * Activate Firefox 2 microformats ? //obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesag)
$i++;
$modversion['config'][$i]['name'] = 'firefox_microsummaries';
$modversion['config'][$i]['title'] = '_MI_NEWS_FF_MICROFORMAT';
@@ -639,6 +638,7 @@
$modversion['config'][$i]['formtype'] = 'yesno';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = 0;
+*/
/**
* Advertisement
|
|
From: <be...@us...> - 2013-09-26 15:56:41
|
Revision: 12097
http://sourceforge.net/p/xoops/svn/12097
Author: beckmi
Date: 2013-09-26 15:56:34 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
Updating to News 1.70 RC2
Modified Paths:
--------------
XoopsModules/news/trunk/news/admin/about.php
XoopsModules/news/trunk/news/admin/admin_footer.php
XoopsModules/news/trunk/news/admin/admin_header.php
XoopsModules/news/trunk/news/admin/amsimport.php
XoopsModules/news/trunk/news/admin/functions.php
XoopsModules/news/trunk/news/admin/groupperms.php
XoopsModules/news/trunk/news/admin/index.php
XoopsModules/news/trunk/news/admin/menu.php
XoopsModules/news/trunk/news/admin/upgrade.php
XoopsModules/news/trunk/news/archive.php
XoopsModules/news/trunk/news/article.php
XoopsModules/news/trunk/news/backendt.php
XoopsModules/news/trunk/news/blocks/news_archives.php
XoopsModules/news/trunk/news/blocks/news_bigstory.php
XoopsModules/news/trunk/news/blocks/news_block_tag.php
XoopsModules/news/trunk/news/blocks/news_moderate.php
XoopsModules/news/trunk/news/blocks/news_randomnews.php
XoopsModules/news/trunk/news/blocks/news_top.php
XoopsModules/news/trunk/news/blocks/news_topics.php
XoopsModules/news/trunk/news/blocks/news_topicsnav.php
XoopsModules/news/trunk/news/class/blacklist.php
XoopsModules/news/trunk/news/class/class.mimetype.php
XoopsModules/news/trunk/news/class/class.newsstory.php
XoopsModules/news/trunk/news/class/class.newstopic.php
XoopsModules/news/trunk/news/class/class.sfiles.php
XoopsModules/news/trunk/news/class/keyhighlighter.class.php
XoopsModules/news/trunk/news/class/news_stories.php
XoopsModules/news/trunk/news/class/news_topics.php
XoopsModules/news/trunk/news/class/registryfile.php
XoopsModules/news/trunk/news/class/tree.php
XoopsModules/news/trunk/news/class/wideimage/Canvas.class.php
XoopsModules/news/trunk/news/class/wideimage/Dimension.class.php
XoopsModules/news/trunk/news/class/wideimage/Exception.class.php
XoopsModules/news/trunk/news/class/wideimage/FileMapperFactory.class.php
XoopsModules/news/trunk/news/class/wideimage/Image.class.php
XoopsModules/news/trunk/news/class/wideimage/OpFactory.class.php
XoopsModules/news/trunk/news/class/wideimage/PaletteImage.class.php
XoopsModules/news/trunk/news/class/wideimage/TrueColorImage.class.php
XoopsModules/news/trunk/news/class/wideimage/WideImage.inc.php
XoopsModules/news/trunk/news/class/wideimage/fonts/Font_GDF.class.php
XoopsModules/news/trunk/news/class/wideimage/fonts/Font_TTF.class.php
XoopsModules/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GD.class.php
XoopsModules/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GD2.class.php
XoopsModules/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GIF.class.php
XoopsModules/news/trunk/news/class/wideimage/mappers/ImageFileMapper_JPEG.class.php
XoopsModules/news/trunk/news/class/wideimage/mappers/ImageFileMapper_PNG.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/ApplyConvolution.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/ApplyFilter.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/ApplyMask.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/AsGrayscale.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/CopyChannelsPalette.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/CopyChannelsTrueColor.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/CorrectGamma.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Crop.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Flip.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/GetMask.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Merge.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Mirror.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Resize.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Rotate.class.php
XoopsModules/news/trunk/news/class/wideimage/operations/Unsharp.class.php
XoopsModules/news/trunk/news/class/xoopsstory.php
XoopsModules/news/trunk/news/class/xoopstopic.php
XoopsModules/news/trunk/news/class/xoopstree.php
XoopsModules/news/trunk/news/comment_delete.php
XoopsModules/news/trunk/news/comment_edit.php
XoopsModules/news/trunk/news/comment_new.php
XoopsModules/news/trunk/news/comment_post.php
XoopsModules/news/trunk/news/comment_reply.php
XoopsModules/news/trunk/news/config.php
XoopsModules/news/trunk/news/docs/changelog.txt
XoopsModules/news/trunk/news/header.php
XoopsModules/news/trunk/news/include/comment_functions.php
XoopsModules/news/trunk/news/include/functions.php
XoopsModules/news/trunk/news/include/install_function.php
XoopsModules/news/trunk/news/include/notification.inc.php
XoopsModules/news/trunk/news/include/pagenav.php
XoopsModules/news/trunk/news/include/search.inc.php
XoopsModules/news/trunk/news/include/storyform.inc.php
XoopsModules/news/trunk/news/include/storyform.original.php
XoopsModules/news/trunk/news/include/update_function.php
XoopsModules/news/trunk/news/index.php
XoopsModules/news/trunk/news/list.tag.php
XoopsModules/news/trunk/news/makepdf.php
XoopsModules/news/trunk/news/micro_summary.php
XoopsModules/news/trunk/news/newsbythisauthor.php
XoopsModules/news/trunk/news/notification_update.php
XoopsModules/news/trunk/news/print.php
XoopsModules/news/trunk/news/ratenews.php
XoopsModules/news/trunk/news/submit.php
XoopsModules/news/trunk/news/templates/blocks/news_block_randomnews.html
XoopsModules/news/trunk/news/templates/blocks/news_block_top.html
XoopsModules/news/trunk/news/topics_directory.php
XoopsModules/news/trunk/news/view.tag.php
XoopsModules/news/trunk/news/visit.php
XoopsModules/news/trunk/news/whoswho.php
XoopsModules/news/trunk/news/xoops_version.php
Added Paths:
-----------
XoopsModules/news/trunk/news/include/plugin.tag.php
Removed Paths:
-------------
XoopsModules/news/trunk/news/extra/modules/tag/plugin/news.php
Modified: XoopsModules/news/trunk/news/admin/about.php
===================================================================
--- XoopsModules/news/trunk/news/admin/about.php 2013-09-26 12:53:19 UTC (rev 12096)
+++ XoopsModules/news/trunk/news/admin/about.php 2013-09-26 15:56:34 UTC (rev 12097)
@@ -19,10 +19,10 @@
include_once dirname(__FILE__) . '/admin_header.php';
xoops_cp_header();
-
+
$aboutAdmin = new ModuleAdmin();
echo $aboutAdmin->addNavigation('about.php');
echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false);
-include 'admin_footer.php';
\ No newline at end of file
+include 'admin_footer.php';
Modified: XoopsModules/news/trunk/news/admin/admin_footer.php
===================================================================
--- XoopsModules/news/trunk/news/admin/admin_footer.php 2013-09-26 12:53:19 UTC (rev 12096)
+++ XoopsModules/news/trunk/news/admin/admin_footer.php 2013-09-26 15:56:34 UTC (rev 12097)
@@ -1,24 +1,24 @@
-<?php
-/**
- * News module
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * which is considered copyrighted (c) material of the original comment or credit authors.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
- * @package News
- * @since 1.6.7
- * @author Mamba (www.xoops.org)
- * @version $Id $
-**/
-
-echo"<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n"
- . " <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
- . " </div>\n" . " " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>";
-
-xoops_cp_footer();
\ No newline at end of file
+<?php
+/**
+ * News module
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
+ * @package News
+ * @since 1.6.7
+ * @author Mamba (www.xoops.org)
+ * @version $Id $
+**/
+
+echo"<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n"
+ . " <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
+ . " </div>\n" . " " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>";
+
+xoops_cp_footer();
Modified: XoopsModules/news/trunk/news/admin/admin_header.php
===================================================================
--- XoopsModules/news/trunk/news/admin/admin_header.php 2013-09-26 12:53:19 UTC (rev 12096)
+++ XoopsModules/news/trunk/news/admin/admin_header.php 2013-09-26 15:56:34 UTC (rev 12097)
@@ -45,7 +45,6 @@
redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, FALSE);
}
-
$topicsHandler=& xoops_getModuleHandler('news_topics','news');
$storiesHandler=& xoops_getModuleHandler('news_stories','news');
@@ -63,8 +62,8 @@
}
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
- include_once(XOOPS_ROOT_PATH."/class/template.php");
- $xoopsTpl = new XoopsTpl();
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
}
-$xoopsTpl->assign('pathIcon16', $pathIcon16);
\ No newline at end of file
+$xoopsTpl->assign('pathIcon16', $pathIcon16);
Modified: XoopsModules/news/trunk/news/admin/amsimport.php
===================================================================
--- XoopsModules/news/trunk/news/admin/amsimport.php 2013-09-26 12:53:19 UTC (rev 12096)
+++ XoopsModules/news/trunk/news/admin/amsimport.php 2013-09-26 15:56:34 UTC (rev 12097)
@@ -44,210 +44,209 @@
include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
if (is_object($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) {
- if(!isset($_POST['go']) ) {
- echo '<h1>Welcome to the AMS 2.41 import script</h1>';
- echo '<br /><br />Select the import options you wan to use :';
- echo "<form method='post' action='amsimport.php'>";
- echo "<br /><input type='checkbox' name='useforum' value='1' /> Import forums links inside news (at the bottom of the news)";
- echo "<br /><input type='checkbox' name='useextlinks' value='1' /> Import external links inside news (at the bottom of the news)";
- echo "<br /><br /><input type='submit' name='go' value='Import' />";
- echo '</form>';
- echo "<br /><br />If you check the two last options then the forum's link and all the external links will be added at the end of the body text.";
- } else {
- // Launch the import
- if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php')) {
- include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php';
- } else {
- include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/main.php';
- }
- if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php')) {
- include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php';
- } else {
- include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/admin.php';
- }
- $db =& XoopsDatabaseFactory::getDatabaseConnection();
- // User's choices
- $use_forum = (isset($_POST['useforum']) && $_POST['useforum']==1) ? 1 : 0;
- $use_extlinks = (isset($_POST['useextlinks']) && $_POST['useextlinks']==1) ? 1 : 0;
- // Retreive News module's ID
- $module_handler =& xoops_gethandler('module');
- $newsModule =& $module_handler->getByDirname('news');
- $news_mid = $newsModule->getVar('mid');
- // Retreive AMS module's ID
- $AmsModule =& $module_handler->getByDirname('AMS');
- $ams_mid = $AmsModule->getVar('mid');
+ if (!isset($_POST['go']) ) {
+ echo '<h1>Welcome to the AMS 2.41 import script</h1>';
+ echo '<br /><br />Select the import options you wan to use :';
+ echo "<form method='post' action='amsimport.php'>";
+ echo "<br /><input type='checkbox' name='useforum' value='1' /> Import forums links inside news (at the bottom of the news)";
+ echo "<br /><input type='checkbox' name='useextlinks' value='1' /> Import external links inside news (at the bottom of the news)";
+ echo "<br /><br /><input type='submit' name='go' value='Import' />";
+ echo '</form>';
+ echo "<br /><br />If you check the two last options then the forum's link and all the external links will be added at the end of the body text.";
+ } else {
+ // Launch the import
+ if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php')) {
+ include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php';
+ } else {
+ include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/main.php';
+ }
+ if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php')) {
+ include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php';
+ } else {
+ include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/admin.php';
+ }
+ $db =& XoopsDatabaseFactory::getDatabaseConnection();
+ // User's choices
+ $use_forum = (isset($_POST['useforum']) && $_POST['useforum']==1) ? 1 : 0;
+ $use_extlinks = (isset($_POST['useextlinks']) && $_POST['useextlinks']==1) ? 1 : 0;
+ // Retreive News module's ID
+ $module_handler =& xoops_gethandler('module');
+ $newsModule =& $module_handler->getByDirname('news');
+ $news_mid = $newsModule->getVar('mid');
+ // Retreive AMS module's ID
+ $AmsModule =& $module_handler->getByDirname('AMS');
+ $ams_mid = $AmsModule->getVar('mid');
- // Retreive AMS tables names
- $ams_topics = $xoopsDB->prefix('ams_topics');
- $ams_articles = $xoopsDB->prefix('ams_article');
- $ams_text = $xoopsDB->prefix('ams_text');
- $ams_files = $xoopsDB->prefix('ams_files');
- $ams_links = $xoopsDB->prefix('ams_link');
- $ams_rating = $xoopsDB->prefix('ams_rating');
- // Retreive News tables names
- $news_stories_votedata = $xoopsDB->prefix('mod_news_stories_votedata');
- // Misc
- $comment_handler =& xoops_gethandler('comment');
- $notification_handler =& xoops_gethandler('notification');
- $ams_news_topics=array(); // Key => AMS Id, Value => News ID
+ // Retreive AMS tables names
+ $ams_topics = $xoopsDB->prefix('ams_topics');
+ $ams_articles = $xoopsDB->prefix('ams_article');
+ $ams_text = $xoopsDB->prefix('ams_text');
+ $ams_files = $xoopsDB->prefix('ams_files');
+ $ams_links = $xoopsDB->prefix('ams_link');
+ $ams_rating = $xoopsDB->prefix('ams_rating');
+ // Retreive News tables names
+ $news_stories_votedata = $xoopsDB->prefix('mod_news_stories_votedata');
+ // Misc
+ $comment_handler =& xoops_gethandler('comment');
+ $notification_handler =& xoops_gethandler('notification');
+ $ams_news_topics=array(); // Key => AMS Id, Value => News ID
// The import by itself
// Read topics by their order
$mytree = new XoopsTree($ams_topics,'topic_id','topic_pid');
$ams_topics = $mytree->getChildTreeArray(0,'weight');
- foreach($ams_topics as $one_amstopic) {
- // First we create the topic
- $topicpid=0;
- if($one_amstopic['topic_pid']!=0) { // Search for its the parent
- if(array_key_exists($one_amstopic['topic_pid'],$ams_news_topics)) {
- $topicpid=$ams_news_topics[$one_amstopic['topic_pid']];
- }
- }
- $news_topic = new NewsTopic();
- $news_topic->setTopicPid($topicpid);
- $news_topic->setTopicTitle($one_amstopic['topic_title']);
- $news_topic->setTopicImgurl($one_amstopic['topic_imgurl']);
- $news_topic->setMenu(0);
- $news_topic->setTopicFrontpage(1);
- $news_topic->Settopic_rssurl('');
- $news_topic->setTopicDescription('');
- $news_topic->setTopic_color('000000');
- $news_topic->store();
- echo '<br>- The following topic was imported : '.$news_topic->topic_title();
- $ams_topicid = $one_amstopic['topic_id'];
- $news_topicid = $news_topic->topic_id();
- $ams_news_topics[$ams_topicid] = $news_topicid;
+ foreach ($ams_topics as $one_amstopic) {
+ // First we create the topic
+ $topicpid=0;
+ if ($one_amstopic['topic_pid']!=0) { // Search for its the parent
+ if (array_key_exists($one_amstopic['topic_pid'],$ams_news_topics)) {
+ $topicpid=$ams_news_topics[$one_amstopic['topic_pid']];
+ }
+ }
+ $news_topic = new NewsTopic();
+ $news_topic->setTopicPid($topicpid);
+ $news_topic->setTopicTitle($one_amstopic['topic_title']);
+ $news_topic->setTopicImgurl($one_amstopic['topic_imgurl']);
+ $news_topic->setMenu(0);
+ $news_topic->setTopicFrontpage(1);
+ $news_topic->Settopic_rssurl('');
+ $news_topic->setTopicDescription('');
+ $news_topic->setTopic_color('000000');
+ $news_topic->store();
+ echo '<br>- The following topic was imported : '.$news_topic->topic_title();
+ $ams_topicid = $one_amstopic['topic_id'];
+ $news_topicid = $news_topic->topic_id();
+ $ams_news_topics[$ams_topicid] = $news_topicid;
- // Then we insert all its articles
- $result = $db->query('SELECT * FROM '.$ams_articles.' WHERE topicid='.$ams_topicid.' ORDER BY created');
- while ( $article = $db->fetchArray($result) ) {
- $ams_newsid = $article['storyid'];
+ // Then we insert all its articles
+ $result = $db->query('SELECT * FROM '.$ams_articles.' WHERE topicid='.$ams_topicid.' ORDER BY created');
+ while ( $article = $db->fetchArray($result) ) {
+ $ams_newsid = $article['storyid'];
- // We search for the last version
- $result2 = $db->query('SELECT * FROM '.$ams_text.' WHERE storyid='.$ams_newsid.' AND current=1');
- $text_lastversion = $db->fetchArray($result2);
+ // We search for the last version
+ $result2 = $db->query('SELECT * FROM '.$ams_text.' WHERE storyid='.$ams_newsid.' AND current=1');
+ $text_lastversion = $db->fetchArray($result2);
- // We search for the number of votes
- $result3 = $db->query('SELECT count(*) as cpt FROM '.$ams_rating.' WHERE storyid='.$ams_newsid);
- $votes = $db->fetchArray($result3);
+ // We search for the number of votes
+ $result3 = $db->query('SELECT count(*) as cpt FROM '.$ams_rating.' WHERE storyid='.$ams_newsid);
+ $votes = $db->fetchArray($result3);
- // The links
- $links='';
- if($use_extlinks) {
- $result7 = $db->query('SELECT * FROM '.$ams_links.' WHERE storyid='.$ams_newsid.' ORDER BY linkid');
- while ( $link = $db->fetchArray($result7) ) {
- if(trim($links)=='') {
- $links="\n\n"._AMS_NW_RELATEDARTICLES."\n\n";
- }
- $links .= _AMS_NW_EXTERNALLINK.' [url='.$link['link_link'].']'.$link['link_title'].'[/url]'."\n";
- }
- }
+ // The links
+ $links='';
+ if ($use_extlinks) {
+ $result7 = $db->query('SELECT * FROM '.$ams_links.' WHERE storyid='.$ams_newsid.' ORDER BY linkid');
+ while ( $link = $db->fetchArray($result7) ) {
+ if (trim($links)=='') {
+ $links="\n\n"._AMS_NW_RELATEDARTICLES."\n\n";
+ }
+ $links .= _AMS_NW_EXTERNALLINK.' [url='.$link['link_link'].']'.$link['link_title'].'[/url]'."\n";
+ }
+ }
- // The forum
- $forum='';
- if($use_forum && $one_amstopic['forum_id']!=0) {
- $forum = "\n\n".'[url='.XOOPS_URL.'/modules/newbb/viewforum.php?forum='.$one_amstopic['forum_id'].']'._AMS_AM_LINKEDFORUM.'[/url]'."\n";
- }
+ // The forum
+ $forum='';
+ if ($use_forum && $one_amstopic['forum_id']!=0) {
+ $forum = "\n\n".'[url='.XOOPS_URL.'/modules/newbb/viewforum.php?forum='.$one_amstopic['forum_id'].']'._AMS_AM_LINKEDFORUM.'[/url]'."\n";
+ }
- // We create the story
- $news = new NewsStory();
- $news->setUid($text_lastversion['uid']);
- $news->setTitle($article['title']);
- $news->created=$article['created'];
- $news->setPublished($article['published']);
- $news->setExpired($article['expired']);
- $news->setHostname($article['hostname']);
- $news->setNohtml($article['nohtml']);
- $news->setNosmiley($article['nosmiley']);
- $news->setHometext($text_lastversion['hometext']);
- $news->setBodytext($text_lastversion['bodytext'].$links.$forum);
- $news->setKeywords('');
- $news->setDescription('');
- $news->counter=$article['counter'];
- $news->setTopicId($news_topicid);
- $news->setIhome($article['ihome']);
- $news->setNotifyPub($article['notifypub']);
- $news->story_type=$article['story_type'];
- $news->setTopicdisplay($article['topicdisplay']);
- $news->setTopicalign($article['topicalign']);
- $news->setComments($article['comments']);
- $news->rating=$article['rating'];
- $news->votes=$votes['cpt'];
- $approved = $article['published']>0 ? true : false;
- $news->approved=$approved;
- $news->store($approved);
- echo '<br> This story was imported : '.$news->title();
- $news_newsid=$news->storyid(); // ********************
+ // We create the story
+ $news = new NewsStory();
+ $news->setUid($text_lastversion['uid']);
+ $news->setTitle($article['title']);
+ $news->created=$article['created'];
+ $news->setPublished($article['published']);
+ $news->setExpired($article['expired']);
+ $news->setHostname($article['hostname']);
+ $news->setNohtml($article['nohtml']);
+ $news->setNosmiley($article['nosmiley']);
+ $news->setHometext($text_lastversion['hometext']);
+ $news->setBodytext($text_lastversion['bodytext'].$links.$forum);
+ $news->setKeywords('');
+ $news->setDescription('');
+ $news->counter=$article['counter'];
+ $news->setTopicId($news_topicid);
+ $news->setIhome($article['ihome']);
+ $news->setNotifyPub($article['notifypub']);
+ $news->story_type=$article['story_type'];
+ $news->setTopicdisplay($article['topicdisplay']);
+ $news->setTopicalign($article['topicalign']);
+ $news->setComments($article['comments']);
+ $news->rating=$article['rating'];
+ $news->votes=$votes['cpt'];
+ $approved = $article['published']>0 ? true : false;
+ $news->approved=$approved;
+ $news->store($approved);
+ echo '<br> This story was imported : '.$news->title();
+ $news_newsid=$news->storyid(); // ********************
- // The files
- $result4 = $db->query('SELECT * FROM '.$ams_files.' WHERE storyid='.$ams_newsid);
- while ( $file = $db->fetchArray($result4) ) {
- $sfile = new sFiles();
- $sfile->setFileRealName($file['filerealname']);
- $sfile->setStoryid($news_newsid);
- $sfile->date=$file['date'];
- $sfile->setMimetype($file['mimetype']);
- $sfile->setDownloadname($file['downloadname']);
- $sfile->counter=$file['counter'];
- $sfile->store();
- echo '<br> This file was imported : '.$sfile->getDownloadname();
- $news_fileid=$sfile->fileid;
- }
+ // The files
+ $result4 = $db->query('SELECT * FROM '.$ams_files.' WHERE storyid='.$ams_newsid);
+ while ( $file = $db->fetchArray($result4) ) {
+ $sfile = new sFiles();
+ $sfile->setFileRealName($file['filerealname']);
+ $sfile->setStoryid($news_newsid);
+ $sfile->date=$file['date'];
+ $sfile->setMimetype($file['mimetype']);
+ $sfile->setDownloadname($file['downloadname']);
+ $sfile->counter=$file['counter'];
+ $sfile->store();
+ echo '<br> This file was imported : '.$sfile->getDownloadname();
+ $news_fileid=$sfile->fileid;
+ }
- // The ratings
- $result5 = $db->query('SELECT * FROM '.$ams_rating.' WHERE storyid='.$ams_newsid);
- while ( $ratings = $db->fetchArray($result5) ) {
- $result6 = $db->queryF('INSERT INTO '.$news_stories_votedata." (storyid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES (".$news_newsid.','.$ratings['ratinguser'].','.$ratings['rating'].','.$ratings['ratinghostname'].','.$ratings['ratingtimestamp'].')');
- }
+ // The ratings
+ $result5 = $db->query('SELECT * FROM '.$ams_rating.' WHERE storyid='.$ams_newsid);
+ while ( $ratings = $db->fetchArray($result5) ) {
+ $result6 = $db->queryF('INSERT INTO '.$news_stories_votedata." (storyid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES (".$news_newsid.','.$ratings['ratinguser'].','.$ratings['rating'].','.$ratings['ratinghostname'].','.$ratings['ratingtimestamp'].')');
+ }
- // The comments
- $comments =& $comment_handler->getByItemId($ams_mid, $ams_newsid, 'ASC');
- if(is_array($comments) && count($comments)>0) {
- foreach($comments as $onecomment) {
- $onecomment->setNew();
- $onecomment->setVar('com_modid',$news_mid);
- $onecomment->setVar('com_itemid',$news_newsid);
- $comment_handler->insert($onecomment);
- }
- }
- unset($comments);
+ // The comments
+ $comments =& $comment_handler->getByItemId($ams_mid, $ams_newsid, 'ASC');
+ if (is_array($comments) && count($comments)>0) {
+ foreach ($comments as $onecomment) {
+ $onecomment->setNew();
+ $onecomment->setVar('com_modid',$news_mid);
+ $onecomment->setVar('com_itemid',$news_newsid);
+ $comment_handler->insert($onecomment);
+ }
+ }
+ unset($comments);
- // The notifications of this news
- //$notifications =& $notification_handler->getByItemId($ams_mid, $ams_newsid, 'ASC');
- $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid));
- $criteria->add(new Criteria('not_itemid', $ams_newsid));
- $criteria->setOrder('ASC');
- $notifications = $notification_handler->getObjects($criteria);
- if(is_array($notifications) && count($notifications)>0) {
- foreach($notifications as $onenotification) {
- $onenotification->setNew();
- $onenotification->setVar('not_modid',$news_mid);
- $onenotification->setVar('not_itemid',$news_newsid);
- $notification_handler->insert($onenotification);
- }
- }
- unset($notifications);
- }
- }
- // Finally, import all the globals notifications
- $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid));
- $criteria->add(new Criteria('not_category', 'global'));
- $criteria->setOrder('ASC');
- $notifications = $notification_handler->getObjects($criteria);
- if(is_array($notifications) && count($notifications)>0) {
- foreach($notifications as $onenotification) {
- $onenotification->setNew();
- $onenotification->setVar('not_modid',$news_mid);
- $onenotification->setVar('not_itemid',$news_newsid);
- $notification_handler->insert($onenotification);
- }
- }
- unset($notifications);
- echo "<p><a href='".XOOPS_URL."/modules/news/admin/groupperms.php'>The import is finished, don't forget to verify and set the topics permissions !</a></p>";
- }
+ // The notifications of this news
+ //$notifications =& $notification_handler->getByItemId($ams_mid, $ams_newsid, 'ASC');
+ $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid));
+ $criteria->add(new Criteria('not_itemid', $ams_newsid));
+ $criteria->setOrder('ASC');
+ $notifications = $notification_handler->getObjects($criteria);
+ if (is_array($notifications) && count($notifications)>0) {
+ foreach ($notifications as $onenotification) {
+ $onenotification->setNew();
+ $onenotification->setVar('not_modid',$news_mid);
+ $onenotification->setVar('not_itemid',$news_newsid);
+ $notification_handler->insert($onenotification);
+ }
+ }
+ unset($notifications);
+ }
+ ...
[truncated message content] |
|
From: <be...@us...> - 2013-09-26 16:06:59
|
Revision: 12098
http://sourceforge.net/p/xoops/svn/12098
Author: beckmi
Date: 2013-09-26 16:06:55 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
Changing version to Beta 1, as we'll merge some changes from Zyspec before the Final release
Modified Paths:
--------------
XoopsModules/news/trunk/news/docs/changelog.txt
XoopsModules/news/trunk/news/xoops_version.php
Modified: XoopsModules/news/trunk/news/docs/changelog.txt
===================================================================
--- XoopsModules/news/trunk/news/docs/changelog.txt 2013-09-26 15:56:34 UTC (rev 12097)
+++ XoopsModules/news/trunk/news/docs/changelog.txt 2013-09-26 16:06:55 UTC (rev 12098)
@@ -1,5 +1,5 @@
======================
-1.70 RC 2 2013-09-26
+1.70 Beta1 2 2013-09-26
======================
- changed version to 1.70 to avoid confusion with xNews 1.68 (mamba)
- removed languages other than English (cesag)
Modified: XoopsModules/news/trunk/news/xoops_version.php
===================================================================
--- XoopsModules/news/trunk/news/xoops_version.php 2013-09-26 15:56:34 UTC (rev 12097)
+++ XoopsModules/news/trunk/news/xoops_version.php 2013-09-26 16:06:55 UTC (rev 12098)
@@ -50,8 +50,8 @@
//about
$modversion["module_website_url"] = "www.xoops.org/";
$modversion["module_website_name"] = "XOOPS";
-$modversion["release_date"] = "2012/07/01";
-$modversion["module_status"] = "RC2";
+$modversion["release_date"] = "2012/09/26";
+$modversion["module_status"] = "Beta 1";
$modversion["author_website_url"] = "http://www.xoops.org/";
$modversion["author_website_name"] = "XOOPS";
$modversion['min_php']='5.2';
|