Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 2 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: How to clone News 1.44 module?
by solomongaby on 2007/10/4 22:18:18

the error i myself encountered is

Fatal error: Call to undefined function: pspid() in C:\Domains\ps2home.co.uk\wwwroot\modules\psp\index.php on line 192

why this apear is beacause news section has a class called NewsStory extends XoopsStory wich is in the main class dir of xoops, and storyid() - that is the original name of the function before replace - is in the XoopsStory class.

The current fix i made is to replace all the pspid() back to the original storyid() .... seemed to work.

I will keep you posted :)

Cheers

[later edit]

it stoped all the errors ... but the storyid is not shown ... and so you can view/edit/delete news :( .... still searching for a solution

so far this seems to work ...
use clone script but remove the line 'storyid' => 'newsectionid',
you still need to rename a file :
article.php -> newsectionitem.php

and in that file find :
$xoopsOption['template_main'] = 'ps3_ps3item.html';
see how it has an extra ps3 ( that was my case ) the proper name is ps3_item.html

so far so good ... wish me luck
Re: How to clone News 1.44 module?
by andycleff on 2007/8/27 10:46:50

Turn on debugging and advise any error messages.

I think the cloner is missing another variable: NewsStory
Re: How to clone News 1.44 module?
by sadistiko on 2007/8/25 20:07:53

Quote:
Simply renamed all 7 or so occurances of DublinQuotes to DublinQuotes2 in my clones functions.php


I do that, and it seams everithing works well, but when you want add some article it doesn't work
When I click submit button all I get is blank screen, and no new added text in list of articles.
Re: How to clone News 1.44 module?
by andycleff on 2007/8/21 16:17:16

Figured out a fix:

Simply renamed all 7 or so occurances of DublinQuotes to DublinQuotes2 in my clones functions.php
Re: How to clone News 1.44 module?
by andycleff on 2007/8/21 15:04:37

Got close following the above instructions with News v 1.53.

When I loaded the XOOPS Module Admin Screen (to install my clone) I got the following:
====
Fatal error: Cannot redeclare dublinquotes() (previously declared in /var/www/html/modules/news/include/functions.php:258) in /var/www/html/modules/casestudy/include/functions.php on line 258
====
Line 258 reads: function DublinQuotes($text) {

Anybody have a solution?

Who's Online

219 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

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

Latest GitHub Commits