Max length of news article

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Genopath
Active Member
Posts: 29
Joined: 4. April 2010 00:16

Max length of news article

Post by Genopath »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
Hi guys, is there a way to change this value above 999? In the admin panel it only allow a 3digit integer and if I wanted to change it say to 1500 I can't. Thanks in advance.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Max length of news article

Post by Marc »

If you want to allow 1500, why don't you just disable that feature?

Topic author
Genopath
Active Member
Posts: 29
Joined: 4. April 2010 00:16

Re: Max length of news article

Post by Genopath »

Because I have really big articles around 3000ish.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Max length of news article

Post by Marc »

Try this:
Open includes/acp/acp_portal.php
Find:

Code: Select all

'portal_news_length'				=> array('lang' => 'PORTAL_NEWS_LENGTH',	'validate' => 'int',		'type' => 'text:3:3',		 'explain' => true),
Replace with:

Code: Select all

'portal_news_length'				=> array('lang' => 'PORTAL_NEWS_LENGTH',	'validate' => 'int',		'type' => 'text:10:200',		 'explain' => true),

Topic author
Genopath
Active Member
Posts: 29
Joined: 4. April 2010 00:16

Re: Max length of news article

Post by Genopath »

Thanks!

What does the 10 and 200 mean though?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Max length of news article

Post by Marc »

It defines the text length, but I really have no idea what it exactly means. :lol:
Locked

Return to “board3 Portal 1.0.x - English Support”