The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read-only T_BOOK
Author Message
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #1
Read-only T_BOOK
Hello,

how do I make the book read-only? Also, how do I make new line on the same page (something like <br>)?

Seems like it changed a lot since 55i. Thanks.

Code:
[ITEMDEF i_book_test]
DEFNAME=i_book_test
ID=i_book_sm
TYPE=T_BOOK
RESOURCES=1 i_book_sm
WEIGHT=5
VALUE=500

CATEGORY=Decoration - Virtues
SUBSECTION=Virtue Items
DESCRIPTION=Book of Truth

ON=@Create
AUTHOR test
BODY test text
(This post was last modified: 02-15-2018 06:27 AM by tleilax.)
02-15-2018 06:23 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Read-only T_BOOK
For read only set the more1 value of the book to 0800
02-15-2018 07:12 AM
Find all posts by this user Like Post Quote this message in a reply
tleilax
Journeyman
*

Posts: 56
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2012
Reputation: 0



Post: #3
RE: Read-only T_BOOK
That works, thanks.

What is the correct way to add pages? Since I added MORE1=0800, the "BODY test text" stopped working.
02-15-2018 07:15 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Read-only T_BOOK
Set more1 = 0800 after you have finished to write the text.

Every time you use BODY you add one page, for adding a new line in the same page you have to tab the text :\
for example

body = "hello test" // Page 1 (actually body.0) First line is Hello second line is test
body = "fine bye bye" //Page 2 (body.1) First line is fine bye second line is empty third line is bye (Because there are two tabs)

Well the forum strips the tabs Tongue
Here again:
Code:
body = "hello    test" //  Page 1 (actually body.0)  First line is Hello second line is test
body = "fine bye        bye" //Page 2 (body.1) First line is fine bye second line is empty third line is bye (Because there are two tabs)
(This post was last modified: 02-15-2018 08:01 AM by darksun84.)
02-15-2018 08:00 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)