1
ManXP
Some text
  • 2003/12/13 12:30

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


I want to add some text to my "Submit news" page on my XOOPS website. For example, when visitor clicks on "Submit news" link, he should to see a text: "Don't post old news, news from other websites, etc.". I was trying to open my language file and add some text here. But then i saw just big crap in my webpage.

2
Herko
Re: Some text
  • 2003/12/13 14:38

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Check that the language definition you've edited doesn't break with 'or ". The definition looks like this:
define("_MOD_DEFINITION","Translation"); or
define('_MOD_DEFINITION','Translation');

if you add ' or " in the text, you break the define(), and therefore screws up your page. You can use \' (I think), or use 'within " encapsulated defines (like define("_EXAMPLE","That's an example");, but NOT like define('_EXAMPLE','That's not the way to do this'); ) As you can see in the last example, it'll break the define right after That, because it ends the define with 's.

Hope this helps

Herko

3
ManXP
Re: Some text
  • 2003/12/13 21:26

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hm, i added line like this - ("_EXAMPLE","That's an example"); so no crap now, but i can't see my added text too

Login

Who's Online

443 user(s) are online (304 user(s) are browsing Support Forums)


Members: 0


Guests: 443


more...

Donat-O-Meter

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

Latest GitHub Commits