11
bjuti
Fmcontent / News - any news?
  • 2012/5/4 9:12

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


Any news about News module? :) I see noting in SVN?

12
voltan
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/5 10:52

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


Hello

I am little busy at this days. I will work on this module. I hope some people can test this module for find bugs ( in update from last version and clone and other parts ) and make list for important needed options for this version

And about module blocks. this part need refactor. any one have any idai about needed blocks

13
scasmar
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/6 20:15

  • scasmar

  • Just popping in

  • Posts: 78

  • Since: 2009/7/29


First apologize philchett friend, you were absolutely right, I changed the # xo-globalnav min-height: 85px; and it seems that everything is resolved, the strange thing is that I only do it with the module fmcontent.
Well the thing is resolved, many thanks to all for your invaluable help.

14
bjuti
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/7 12:00

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


I still can't manage url rewrite to work. :(

15
voltan
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/7 13:34

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


I think you have problem whit set .htaccess .

Please put your maked url here for test.

16
bjuti
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/7 15:54

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


I tried all varaints... it works in publisher like always do but not in News.

I uninstaled News so in next few days I'll try again and will post it here.

17
panwac
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/11 21:21

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


O.K. - Today I have checked fmcontent module (version news from sf). First view:

1. When a clone (called fmcontent) was created, inside the lang files no changes were prepared - any defines still have prefix from news (_NEWS_AM_GLOBAL_ADD_CONTENT etc.).
2. During testing a module (version "news"), in CP I haven't possibility to change order of articles - drag and drop methode don't work. It means, sorting by order is dead.
3. there is sth wrong with block 'Article page" - I've got white page, when I'm trying edit it or, (on user side), when it's active.
-------
xoops 2.5.4
php 5.3.10
tested in FF 12

Edit: I found a reason for point no 2. It works, when sort order for user area and admin articles page is set on order.

Next error. When a number of digits for ID isn't "1" (eg.: "3"), then for any topic I've got a message "Topic not exist".

18
panwac
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/13 15:00

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Next informations:

1. When I created a clone of module and tryed to install it on the other site, I found an error in header.php. I changed 3 lines of code and after that clone start work.

In lines 28-31:
require_once XOOPS_ROOT_PATH '/modules/news/include/functions.php';
include_once 
XOOPS_ROOT_PATH '/modules/news/class/perm.php';
require_once 
XOOPS_ROOT_PATH '/modules/news/class/utils.php';


were replaced with:
require_once dirname__FILE__ )  . DIRECTORY_SEPARATOR 'include/functions.php'
include_once 
dirname__FILE__ )  . DIRECTORY_SEPARATOR 'class/perm.php'
require_once 
dirname__FILE__ )  . DIRECTORY_SEPARATOR 'class/utils.php';


2. The same problem is in file /admin/header.php. When you are going to your clone admin site in CP, you've got a message:
Quote:
Fatal error: require_once(): Failed opening required '/home/.../sitename/modules/news/class/folder.php' (include_path='.:/opt/php-5.3/lib/php') in /home/.../sitename/modules/clonename/admin/header.php on line 27


I replaced lines 27-29:
require_once XOOPS_ROOT_PATH '/modules/news/class/folder.php'
require_once 
XOOPS_ROOT_PATH '/modules/news/include/functions.php'
require_once 
XOOPS_ROOT_PATH '/modules/news/class/utils.php';


with
require_once dirname__FILE__ )  . DIRECTORY_SEPARATOR '../class/folder.php'
require_once 
dirname__FILE__ )  . DIRECTORY_SEPARATOR '../include/functions.php'
require_once 
dirname__FILE__ )  . DIRECTORY_SEPARATOR '../class/utils.php';


3. There is sth wrong with link to pdf site of article.

4. Links in relative articles table (on article site) are not correct - topic name in links is... strange (random?).

5. I spent a few hours to start SEO, but whithout success - the only link working good was to topic side (after small changes in .htaccess file).

Sorry for my bad english. ;)

Edit: THIS MODULE IS NOT CLONABLE!
To make it work without a clone called "news" in the same xoops instalation... propabbly I should change codes in all files. :/

19
voltan
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/15 4:25

  • voltan

  • Theme Designer

  • Posts: 724

  • Since: 2006/12/5


@panwac

Thank you for check module. I will work on all needed options. and try fix bugs

20
irmtfan
Re: Fmcontent module 1.1 in xoops 2.5.4
  • 2012/5/15 7:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

THIS MODULE IS NOT CLONABLE!

+1

it is not clonable at all even the database tables are hardcoded to "news". There are full of example like the below one:
in archive.php
// Initialize content handler
$story_handler = xoops_getmodulehandler ( 'story', 'news' );
$topic_handler = xoops_getmodulehandler ( 'topic', 'news' );
$file_handler = xoops_getmodulehandler('file', 'news');

by now the only needed option to make it a core or included module in the next xoops 2.6 version is the "clonable feature". then the SEO feature would be a required one.

I start to test this module and will inform you bugs and needed features ASAP.

Edit:
IMO it would be great of you follow the GIjo way of cloning modules.
there is one main module in xoops_lib (aka xoops trust path) and one in the modules directory.
then eveyone can clone it simply by changing the name of directory in modules.
i love this way.

Login

Who's Online

216 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits