1
ManXP
Insert text
  • 2004/11/9 17:09

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


I need some help with News module. I need to insert some text by default into News Submit Form. For example, when user click Submit News, he see a blank form. There shoudl be some text already in this form, how to make it? Thank you very much.

2
Mithrandir
Re:Insert text

News version?

3
ackbarr
Re: Insert text

using the news module that comes with XOOPS 2.0.7.3:

in /modules/news/submit.php change (~line 150):
le="color: #000000"><?php $message = '';

to
le="color: #000000"><?php $message = 'Default message goes into this string';

4
ManXP
Re:Insert text
  • 2004/11/10 8:53

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Using News 1.21.

ackbarr - it's strange, but i can find a phrase $message = ''; in "submit.php". I can't even find a word message in this file. Am i doing something wrong?

5
Mithrandir
Re:Insert text

le="color: #000000"><?php case 'form': default: $title = ''; $hometext = ''; $noname = 0; $nohtml = 0; $nosmiley = 0; $notifypub = 1; $topicid = 0; if ($approveprivilege) { $topicdisplay = 0; $topicalign = 'R'; $ihome = 0; $bodytext = ' '; $approve = 1; $autodate = ''; $expired = 0; $published = 0; $audience = 0; } $banner = ""; $edit = false; include 'include/storyform.inc.php';

Set hometext and bodytext to what you want it to say

6
ManXP
Re: Insert text
  • 2004/11/10 17:38

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Thanks, it was helpfull.