21
andycleff
Re: How to clone News 1.44 module?
  • 2007/8/27 10:46

  • andycleff

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/29


Turn on debugging and advise any error messages.

I think the cloner is missing another variable: NewsStory
Andy Cleff
Ampersand Design, Inc
Doylestown, PA
-----
Helping our clients bring great ideas into shape through integrated marketing, creative branding, print and web strategy, online learning and e-commerce.

www.ampersandesign.net

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

  • solomongaby

  • Just popping in

  • Posts: 5

  • Since: 2007/10/4


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

Login

Who's Online

158 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

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

Latest GitHub Commits