1
Jochus
Problem with editing news
  • 2003/10/11 8:44

  • Jochus

  • Just popping in

  • Posts: 4

  • Since: 2003/5/20


Hi!

On jochus.tk, I want to edit one of the news messages, but when I'm in... I see stuff like this

_AM_CONFIG
_AM_EDITARTICLE

I can edit the text, but I can't find the submit button. What's going wrong?

2
JackJ
Re: Problem with editing news
  • 2003/10/11 17:16

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


These are definitions in the language file of the News module.

the file the definitions should be in is:

modules/news/language/english/admin.php (assuming your site is english)

I would check the file exists ok, and these entries exist. If no language definitions exist, you get this kind of googbldygook

If they dont, then you need this:

<?php
// $Id: admin.php,v 1.8 2003/04/01 09:07:28 mvandam Exp $
//%%%%%% Admin Module Name Articles %%%%%
define("_AM_DBUPDATED","Database Updated Successfully!");
define("_AM_CONFIG","News Configuration");
define("_AM_AUTOARTICLES","Automated Articles");
define("_AM_STORYID","Story ID");
define("_AM_TITLE","Title");
define("_AM_TOPIC","Topic");
define("_AM_POSTER","Poster");
define("_AM_PROGRAMMED","Programmed Date/Time");
define("_AM_ACTION","Action");
define("_AM_EDIT","Edit");
define("_AM_DELETE","Delete");
define("_AM_LAST10ARTS","Last 10 Articles");
define("_AM_PUBLISHED","Published"); // Published Date
define("_AM_GO","Go!");
define("_AM_EDITARTICLE","Edit Article");
define("_AM_POSTNEWARTICLE","Post New Article");
define("_AM_ARTPUBLISHED","Your article has been published!");
define("_AM_HELLO","Hello %s,");
define("_AM_YOURARTPUB","Your article submitted to our site has been published.");
define("_AM_TITLEC","Title: ");
define("_AM_URLC","URL: ");
define("_AM_PUBLISHEDC","Published: ");
define("_AM_RUSUREDEL","Are you sure you want to delete this article and all its comments?");
define("_AM_YES","Yes");
define("_AM_NO","No");
define("_AM_INTROTEXT","Intro Text");
define("_AM_EXTEXT","Extended Text");
define("_AM_ALLOWEDHTML","Allowed HTML:");
define("_AM_DISAMILEY","Disable Smiley");
define("_AM_DISHTML","Disable HTML");
define("_AM_APPROVE","Approve");
define("_AM_MOVETOTOP","Move this story to top");
define("_AM_CHANGEDATETIME","Change the date/time of publication");
define("_AM_NOWSETTIME","It is now set at: %s"); // %s is datetime of publish
define("_AM_CURRENTTIME","Current time is: %s"); // %s is the current datetime
define("_AM_SETDATETIME","Set the date/time of publish");
define("_AM_MONTHC","Month:");
define("_AM_DAYC","Day:");
define("_AM_YEARC","Year:");
define("_AM_TIMEC","Time:");
define("_AM_PREVIEW","Preview");
define("_AM_SAVE","Save");
define("_AM_PUBINHOME","Publish in Home?");
define("_AM_ADD","Add");

//%%%%%% Admin Module Name Topics %%%%%

define("_AM_ADDMTOPIC","Add a MAIN Topic");
define("_AM_TOPICNAME","Topic Name");
define("_AM_MAX40CHAR","(max: 40 characters)");
define("_AM_TOPICIMG","Topic Image");
define("_AM_IMGNAEXLOC","image name + extension located in %s");
define("_AM_FEXAMPLE","for example: games.gif");
define("_AM_ADDSUBTOPIC","Add a SUB-Topic");
define("_AM_IN","in");
define("_AM_MODIFYTOPIC","Modify Topic");
define("_AM_MODIFY","Modify");
define("_AM_PARENTTOPIC","Parent Topic");
define("_AM_SAVECHANGE","Save Changes");
define("_AM_DEL","Delete");
define("_AM_CANCEL","Cancel");
define("_AM_WAYSYWTDTTAL","WARNING: Are you sure you want to delete this Topic and ALL its Stories and Comments?");


// Added in Beta6
define("_AM_TOPICSMNGR","Topics Manager");
define("_AM_PEARTICLES","Post/Edit Articles");
define("_AM_NEWSUB","New Submissions");
define("_AM_POSTED","Posted");
define("_AM_GENERALCONF","General Configuration");

// Added in RC2
define("_AM_TOPICDISPLAY","Display Topic Image?");
define("_AM_TOPICALIGN","Position");
define("_AM_RIGHT","Right");
define("_AM_LEFT","Left");

define("_AM_EXPARTS","Expired Articles");
define("_AM_EXPIRED","Expired");
define("_AM_CHANGEEXPDATETIME","Change the date/time of expiration");
define("_AM_SETEXPDATETIME","Set the date/time of expiration");
define("_AM_NOWSETEXPTIME","It is now set at: %s");

// Added in RC3
define("_AM_ERRORTOPICNAME", "You must enter a topic name!");
define("_AM_EMPTYNODELETE", "Nothing to delete!");
?>

call this admin.php and put it here:


modules/news/language/english/admin.php

3
Jochus
Re: Problem with editing news
  • 2003/10/13 6:42

  • Jochus

  • Just popping in

  • Posts: 4

  • Since: 2003/5/20


I did what u say me to do, but it still doesn't work

4
sunsnapper
Re: Problem with editing news

Do you see any messages if you turn on debugging?
(System Admin | Preferences | General Settings)

5
franz
Re: Problem with editing news
  • 2004/1/10 8:45

  • franz

  • Just popping in

  • Posts: 7

  • Since: 2003/6/25


I have the same problem with some other modules (not all modules). I's the same on a Linux server and on a MacOsX server. It seems that PHP doesn't convert strings such as _AM_CONFIG with the right names.

Franz

6
Stewdio
Re: Problem with editing news
  • 2004/1/10 8:52

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


That usually happens when your file has been corupted during upload. In most cases all you need to do is reupload the module, or in this case, the language file. Also, in the module admin, click on update to fix the tables, this may also help.

7
franz
Re: Problem with editing news
  • 2004/1/11 13:28

  • franz

  • Just popping in

  • Posts: 7

  • Since: 2003/6/25


I think to have the solution: it's a matter of missing language folder. My XOOPS has "italian" as default language. The "news" module ( I don't know why) and others third parts modules didn't have the "italian" folder. So XOOPS couln'd be able to put the right string instead of the variable name.

Ciao, Franz

Login

Who's Online

157 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 157


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