1
praditya
Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 13:16

  • praditya

  • Just popping in

  • Posts: 14

  • Since: 2006/5/30


Today, I upgraded my XOOPS 2.0.16 site into XOOPS 2.0.17 (see SourceForge).

I also make a copy of file header.php (Xoops root folder), so there are 2 file:
- header.php
- header2.php

header.php define a XOOPS template with left and right column (theme.html --> called in theme.php in class folder) and header.php define a XOOPS template without left and right column (theme2.html --> called in theme2.php in class folder, also duplicated from theme.php) so I have a bigger text area and didn't break my template.

I also modify file in news 1.55 module folder, submit.php
I change default header template in submit.php (line 34) into header2.php (have a bigger text area) and by default, after we submit, edit, or delete the news, news module will redirect the page to XOOPS_URL.'/modules/news/index.php'. But, I redirect it to XOOPS_URL.'/index.php'.

There was no problem with my XOOPS 2.0.16 site, but after I upgraded my XOOPS into 2.0.17, after I submitted (or other), news module redirect me to blank page (the URL still ..../modules/news/submit.php)! I'm trying to change again (line 34) into header.php, and it's work! The news module redirect me to XOOPS index page. I changed it again into header2.php, the problem still remain.

Anyone can help me to solve this problem?

2
mortuk
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 13:54

  • mortuk

  • Not too shy to talk

  • Posts: 122

  • Since: 2005/12/13


wich 2.0.17 download?

3
praditya
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 14:10

  • praditya

  • Just popping in

  • Posts: 14

  • Since: 2006/5/30


Quote:

mortuk wrote:
wich 2.0.17 download?


here...
http://sourceforge.net/project/showfiles.php?group_id=41586&package_id=153583&release_id=533464

4
skenow
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 15:44

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Perhaps you can post the changes you made to header2.php.

It sounds like 2.0.17 default installation with the News 1.55 default files does work. Hacks made in one version don't always work the same in another version.

5
praditya
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 16:03

  • praditya

  • Just popping in

  • Posts: 14

  • Since: 2006/5/30


header2.php (root):
- require_once XOOPS_ROOT_PATH . '/class/theme.php'; into require_once XOOPS_ROOT_PATH . '/class/theme2.php';

then...

theme2.php (class folder):
- var $canvasTemplate = 'theme.html'; into var $canvasTemplate = 'theme2.html';

(theme.html and theme2.html is template file in my template folder)

submit.php (news folder):
- (line 34) include_once XOOPS_ROOT_PATH.'/header.php'; into include_once XOOPS_ROOT_PATH.'/header2.php'; (I do that in order to get larger area by removing left and right column from my template, theme2.html)
- all of news redirect function (8 changes): redirect_header(XOOPS_URL.'/modules/news/index.php', ..., _NOPERM); into redirect_header(XOOPS_URL.'/index.php', ..., _NOPERM);

Only that!

Oh, I forgot to tell this... The news I submitted was stored on database and it has no problem (the problem is only blank screen redirected page).

6
skenow
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 16:13

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


what changes did you make to theme2.html and where did you change the redirect page?

7
praditya
Re: Little Problem with News 1.55 on Xoops 2.0.17
  • 2007/8/25 16:16

  • praditya

  • Just popping in

  • Posts: 14

  • Since: 2006/5/30


Quote:

what changes did you make to theme2.html

only WYSIWYG, removing left and right column from default template.

Quote:

and where did you change the redirect page?

I have posted it...
redirect_header(XOOPS_URL.'/index.php', ..., _NOPERM);

I redirect it to Home Page (index.php)

Quote:

It sounds like 2.0.17 default installation with the News 1.55 default files does work

You're right... Actually the title of this post belong to News 1.55 hacked problem when running on XOOPS 2.0.17.

Thx,


PHP debug logged after news module redirect the page (blank screen) after I submitted (or other) the news:
Fatal error: Cannot redeclare class xos_opal_ThemeFactory in C:\xampp\htdocs\alazka\class\theme.php on line 22

Login

Who's Online

200 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

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

Latest GitHub Commits