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):
$message '';

to
$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

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.

Login

Who's Online

119 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 119


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