PDA

View Full Version : multi-page links in forum display last page hack


29 May 2000, 15:47
One of the suggestions in the Suggestions Forum is, when having the board shorten the multi-page list in forumdisplay, have it include a link to the last post in the thread. This will do that, and adds a toggle to the control panel.

In forumdisplay.php

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



In options.php

Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Add below:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And you're all set. You can use the control panel to set whether or not to list "1 2 more ..." or "1 2 ... 8".

Enjoy

Katherine

29 May 2000, 16:27
Very nice! Thanks! :D

29 May 2000, 16:39
How about the bug where Moonwolf's post in this thread is widening the table?

29 May 2000, 16:43
That is due to Johns template, and nothing to do with the code, although if he starts releasing it with these exact templates, then I guess they should be fixed before that:)

29 May 2000, 16:51
UBB had the same problem, it's how [code] tags are processed if I remember.

Katherine

29 May 2000, 16:58
Actually this is not due to the code tags. The stretching of the tables is, but not the distortion of the table as you can see in your post above, this is a new problem due to the templates.:)

29 May 2000, 16:59
I should say I believe that is the case :D

29 May 2000, 17:58
This board just has each different reply in a different table, so all the content isn't in one huge table (good for loading). So, if someone's post stretches out the layout, it only stretches out that post. It's not a bug. :)

29 May 2000, 18:11
Well the 'feature' should be resolved as it is visually distracting and down-right ugly imho.

29 May 2000, 18:21
It is no worse than the default way. The code tag is supposed to preserve code, so how do you propose that to be possible without distortion?

30 May 2000, 02:21
Good point, especially considering problems with putting lines that should be one line in source on multiple lines in the thread. For those not used to hacking their code it could make for all sorts of problems.

Katherine