DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • October 22, 2018, 07:09:27 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: How to change the limit of number of comments on a page??  (Read 791 times)
0 Members and 1 Guest are viewing this topic.
TGTarheel
Codemeister
****
Offline Offline

Posts: 465


View Profile
« on: May 29, 2018, 03:33:11 PM »

OK...so as it is right now, the comments do not scroll until there are 25 most-recent comments showing in a town.

How can I make it scroll after only, say, sixteen?

I know it has to be somewhere within commentary.php but I am not seeing it.

I am trying to make everything fit on a page so that players do not have to vertical scroll.

UPDATE:  Never mind, figured it out on my own.

I realized that the dwelling coffers, for example, did not allow for 25 lines.  So I looked at that file, and found what I was looking for that limited tht area to ten comments.

I then found it in village.php where 25 is set and changed it to 15.  Works slick as you want!!
« Last Edit: May 29, 2018, 05:20:20 PM by TGTarheel » Logged
Aeolus
Mod God
*****
Offline Offline

Posts: 1896


You're welcome.


View Profile WWW
« Reply #1 on: May 29, 2018, 07:18:35 PM »

Amazing what happens when you look. Cheesy
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 465


View Profile
« Reply #2 on: May 29, 2018, 09:13:36 PM »

Amazing what happens when you look. Cheesy

Yes, but helps to know WHERE to look!!  LOL

In my case, I was racking my brains...then realized that the coffers only allowed ten lines of commentary.  So I decided to have a look at the code, and found it.  Then I went back to village.php and found the similar line...just changed my number to what I wanted.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
32 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search