Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Forum Modification

Asked Modified Viewed 2,930 times
S
SharkyJack
S
www.swansonline.net/../../images/banner02.jpg
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
asked
Junior Member

My forum currently lists the first 22 threads.

How can I alter this to display the first 50 threads?

And what file would I need to alter to do this?

Thanks.
0 replies

17 posts

M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

Would that be the Forum Latest Threads panel or the forums index page?
0 replies
M
Mafaioz
M
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

Quote

muscapaul wrote:
Would that be the Forum Latest Threads panel or the forums index page?


i think he is talking about the forum index page, Where you actually "can" modify how many threads to be shown, at me it stops on 20
0 replies
S
SharkyJack
S
www.swansonline.net/../../images/banner02.jpg
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
answered
Junior Member

Forums index page thanks.
0 replies
T
trojan
T
trojan 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
answered
Newbie

Hei Guys can we cerate sub forums...
0 replies
A
alcazar
A
Alcazar
nach Diktat spazierengegangen
  • Senior Member, joined since
  • Contributed 247 posts on the community forums.
  • Started 5 threads in the forums
answered
Senior Member

You can using gozoc's ExtBoard.
Dont know if v7 has this feature.
0 replies
G
Gisho
G
Gisho 10
grin
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

Dont know if im posting in the right forum ....
Wanna know if I can change the directory of the installed php-fusion portal ? (ex. The current one is like - www/fusion/php/blabla...) So can I change it and will it still remain the same portal with no errors ? (ex. www/news.php....) ?
0 replies
S
SharkyJack
S
www.swansonline.net/../../images/banner02.jpg
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
answered
Junior Member

Ok...

Seeing as my question was allowed to be highjacked twice and I'm now getting email notifications for other user's questions I'll try again...

-----------------------------------------------------------------

My forum currently lists the first 22 threads.

How can I alter the index to display the first 50 threads?

And what file would I need to alter to do this?

Thanks.
0 replies
M
Mafaioz
M
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

Try in the forum php files, check for the number 22,/20 and try change it, NB backup the file you are about to change before you change it
0 replies
K
KnightHawk
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

I'll tell you exactly what file in a little bit. I think I found it but I need to make sure.
0 replies
S
SharkyJack
S
www.swansonline.net/../../images/banner02.jpg
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
answered
Junior Member

thanks
0 replies
K
KnightHawk
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Ok I don't know how different the files are if you have a different version but let's see what we can do.

I have 6.01.11

in the forum folder find viewforum.php

this is line 18 for me

$threads_per_page = 20;

this is line 56 for me

".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&")."

This is line 124 for me

WHERE t.forum_id='$forum_id' AND thread_sticky='0' GROUP BY thread_id ORDER BY thread_lastpost DESC LIMIT $rowstart,20"


if your not sure what to do, change the 20 into 50 in all three lines
0 replies
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

SharyJack,

I looked at your site.

On the main page you have "Latest Active Forum Threads" which shows the last 15 posts.

In your "Forum" section, you are showing 22 threads at a time on the first page and 20 threads on the pages thereafter....

Apparently you have changed the original 20 on the first page to show 22...
This is done to the file forum/viewforum.php

You not only need to change the amount of posts from 20 to 50 but you also need to change the "Rowstart" function instead of 20 to 50.....

0 replies
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

MichaelsFriends,

You beat me to it......... :)
0 replies
K
KnightHawk
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Actually Joe Kriz it is 20 post. If there are stickies they aren't counted. The viewforum file will say 20. This should be adjustable in the forum settings but it isn't.

I just got looking closely at the count and noticed that there was only 20 without stickies. I made 26 test threads on my site and just started messing with the viewforum.php.
0 replies
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
answered
Senior Member

I didn't even look at the stickies... I just counted the total and yes, you are right...

He said 22 and I counted 22...... Didn't think about the stickies...

Anyway, it looks like that is all he has to do if that's what he wants...
0 replies
S
SharkyJack
S
www.swansonline.net/../../images/banner02.jpg
  • Junior Member, joined since
  • Contributed 46 posts on the community forums.
  • Started 22 threads in the forums
  • Started this discussions
answered
Junior Member

THANKS GUYS!!!!

All works great!!!!
0 replies
K
KnightHawk
K
  • Member, joined since
  • Contributed 67 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

I found another line that might have something to do with this. Even though it is working now you might want to fix this line to. Just in case so you don't find another problem later.

Line 169
".makePageNav($rowstart,20,$rows,3,FUSION_SELF."?forum_id=$forum_id&")."


May be nothing cause it's already working.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 17 posts
  • Votes 0 votes
  • Topic users 8 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet