1
theguide
Where is the Submit News template.
  • 2004/7/14 4:20

  • theguide

  • Just popping in

  • Posts: 3

  • Since: 2004/7/14


Maybe a silly question but where is the template for the submit news section.

I am changing the font and background on the block headings that are usually in th tags.

I have tried to change this through css but can only get the background to change cant get the text to change.

I have found all the other templates that I wish to change and changed the th tags to td which works fine, but I can't for the life of me find where the template for the submit news.

Australian Gig Guide Development Site - Submit News is what I'm trying to change.
The "Submit News" text.

What it should look like is this

Anyone help me with this please.

I have been through all the templates and cant find it.
I have searched through these forums and cant find anything.

2
Mithrandir
Re: Where is the Submit News template.

News submissal uses a XoopsThemeForm, which is in include/submitform.php (If I recall correctly - it's in the include folder for sure)

If you use a News version lower than 1.2, there is also a submit form in the admin folder.

3
theguide
Re: Where is the Submit News template.
  • 2004/7/15 3:49

  • theguide

  • Just popping in

  • Posts: 3

  • Since: 2004/7/14


Nope no file with that name in include/.
Can't find any files anywhere with that name.
I can find modules/news/submit.php but that isn't it.
Nothing in modules/news/incude or modules/news/admin

I have just upgraded to 2.0.7 today and done another check while I was redoing all the work I did yesterday but cannot find it anywhere.
It's obviously there somewhere but I can't find it.

4
Mithrandir
Re: Where is the Submit News template.

include/storyform.php is the name

Again, if you are using a News version prior to 1.2, there will be a similar storyform.php in the admin folder with additional fields - the 2 forms were joined together in 1.2

5
spiff
Re: Where is the Submit News template.
  • 2004/7/28 14:42

  • spiff

  • Just popping in

  • Posts: 47

  • Since: 2003/4/16


It would be great to have an admin-accessible template for that form, similar to that used for the mylinks module (mylinks_submit.html). It's a little cumbersome to have to modify a php file when simply trying to add a disclaimer such as: "Please note your news submission will be reviewed for relevance to our site."

Any plans of doing that? The list of tweaks I have to re-implement on every upgrade is starting to lenghthen .

As a help to others, here's what you have to do in /modules/news/include/storyform.inc.php (under 2.0.7) to include a disclaimer just before the bottom form buttons:

include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$sform = new XoopsThemeForm(_NW_SUBMITNEWS"storyform"xoops_getenv('PHP_SELF'));
$sform->addElement(new XoopsFormText(_NW_TITLE'subject'5080$subject), true);
ob_start();
$xt->makeTopicSelBox(0);
$sform->addElement(new XoopsFormLabel(_NW_TOPICob_get_contents()));
ob_end_clean();
$sform->addElement($topic_select);
$sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP'message'$message1560), true);
$option_tray = new XoopsFormElementTray(_OPTIONS,'');
if (
$xoopsUser) {
    if (
$xoopsConfig['anonpost'] == 1) {
        
$noname_checkbox = new XoopsFormCheckBox('''noname'$noname);
        
$noname_checkbox->addOption(1_POSTANON);
        
$option_tray->addElement($noname_checkbox);
    }
    
$notify_checkbox = new XoopsFormCheckBox('''notifypub'$notifypub);
    
$notify_checkbox->addOption(1_NW_NOTIFYPUBLISH);
    
$option_tray->addElement($notify_checkbox);
    if (
$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) {
        
$nohtml_checkbox = new XoopsFormCheckBox('''nohtml'$nohtml);
        
$nohtml_checkbox->addOption(1_DISABLEHTML);
        
$option_tray->addElement($nohtml_checkbox);
    }
}
$smiley_checkbox = new XoopsFormCheckBox('''nosmiley'$nosmiley);
$smiley_checkbox->addOption(1_DISABLESMILEY);
$option_tray->addElement($smiley_checkbox);
$sform->addElement($option_tray);
[
b][color=FF0000]$sform->addElement(new XoopsFormLabel('Disclaimer''Check your spelling'));[/color][/b]
$button_tray = new XoopsFormElementTray('' ,'');
$button_tray->addElement(new XoopsFormButton('''preview'_PREVIEW'submit'));
$button_tray->addElement(new XoopsFormButton('''post'_NW_POST'submit'));
$sform->addElement($button_tray);
$sform->display();
?>


Eric

Login

Who's Online

556 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 556


more...

Donat-O-Meter

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

Latest GitHub Commits