Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 127

PostPosted: Sun Mar 16, 2008 10:26 am Reply with quote

The newsletter is really a fantastic program, I must say. The only feature I miss is the possibility to show more than 99 of the latests posts in the forum. My site is pretty big, so it happens that there are more than 99 active topics in the forum per week.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Sun Mar 16, 2008 10:43 am Reply with quote

Yes, I never anticipated a need for this large number of posts. This is quite easy to change. Within this script:

modules\HTML_Newsletter\admin\admin.php

find:

//Latest News

and for each of the ones you want to change, simply change the maxlength=\"2\" to maxlength=\"3\"

I am not validating the size as this is an admin function and if you don't trust your admins.... Wink

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 127

PostPosted: Sun Mar 16, 2008 11:25 am Reply with quote

Thanks for the rapid response!

I could not find
//Latest Forums in the code but instead //Latest Weblinks twice, but I found the code for Forums and changed it as suggested to: maxlength=\"3\" , but this was not enough and I had to change: size=\"2\ to size=\"3\ . It is working perfectly now for forum posts above 99.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Sun Mar 16, 2008 10:07 pm Reply with quote

size=2 would have worked too, but it would have just looked funny on the page as you typed. Glad you got it working.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 127

PostPosted: Mon Mar 17, 2008 4:01 am Reply with quote

No, size 2 did not work for me, because it was only possible to write two digits in the box then, like 99. but with size 3 I could write 100 without problems.
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1391

PostPosted: Mon Mar 17, 2008 8:19 am Reply with quote

That is weird. "Size" only controls the physical dimensions of the text box, not how much can be entered into it. Are you sure that you were just not seeing the numbers? "Maxlength" is what controls the number of characters that can be entered into the text box.

Anyways, glad things are working now as you like.

Also, thanks for pointing out the issue with my commenting. Sorry about that.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 127

PostPosted: Mon Mar 17, 2008 10:03 am Reply with quote

I have rechecked everything and you were absolutely right. It works now with
maxlength 3 only. Sorry, about this, but the update of the file must have failed in some way.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch