News:

Wondering if this will always be free?  See why free is better.

Main Menu

Expand Page Index

Started by SMF Customization Team, October 18, 2006, 08:50:26 PM

Previous topic - Next topic

Dragooon

On MessageIndex like you have Page 1,2,3......10, It makes the "..." clickable to expand pageindex like Pages 1,2,3,4,5,6,7,8,9,10

falguni1

ohhhhhhh ok

thank you dragoon

2pac

this mod  is awesome! although my board is so young, it doesnt require it at this point, i've bookmarked it for future reference :D

Chriss Cohn

Quote from: 2pac on January 12, 2008, 02:31:53 AM
this mod  is awesome! although my board is so young, it doesnt require it at this point, i've bookmarked it for future reference :D
Me too  ;D
I always searched for this because i often use it here at simplemachines.org

smldmr

hello. This mod is pretty good. But i need a modification. I want that the lines have a constant length. for example if i make it 10 numbers long, it should paste a newline after 10th pagenumber.

ex.

1 2 3 4 5 6 7 8 9 10
11 12 13 14 15.......
.....

rarach

I just installed this mod and it is wonderful! :D Exactly what I've been needing on my forum.
Thanks! :D

Rich N-O

Can't get this great mod to work in 2.0 beta 4; tests fail on subs.php and says script.js does not exist.

SleePy

This is a default feature in SMF 2.0
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

L'AltroWeb

#28
Hi!
I have applied this mod in my smf 1.1.8 and works fine :)
Now i've test to apply also for tinyportal "BoardNews"
but when i click on 1 2 3 ... 5 instead to see 1 2 3 4 5 i see 1 2 3 5 (without 4)
any idea to fix?
(i've posted also in tinyportal support topic)

heavyccasey

I was playing around with this, and if you want a dropdown menu instead of just a list of pages, replace the expandPages() function in script.js with this:

// Shows the page numbers by clicking the dots (in compact view).
function expandPages(spanNode, baseURL, firstPage, lastPage, perPage)
{
var replacement = '', i, oldLastPage = 0;

// The dots were bold, the page numbers are not (in most cases).
spanNode.style.fontWeight = 'normal';
spanNode.onclick = '';

// Calculate the new pages.
for (i = firstPage; i < lastPage; i += perPage)
//replacement += '<a class="navPages" href="' + baseURL.replace(/%d/, i) + '">' + (1 + i / perPage) + '</a> ';
replacement += '<option value="' + i + '">' + (1 + i / perPage) + '</option>';

// Replace the dots by the new page links.
setInnerHTML(spanNode, '<select id="page_dropdown" onchange="window.location=(\'' + baseURL + '\').replace(/%d/, this.value);">' + replacement + '</select> ');
}

Jeff B

I've found what I believe to be a bug in this mod.   When on a topic index page within a board, if the topic has enough pages that the modded function appears, if you double click on the ....  to expand the page numbers, it actually creates an editable text box out of the subject topic instead of expanding the pages, and you can actually modify the topic name by changing it and hitting enter. I'm using 1.1.12 and viewing with firefox 3.6.13

I don't know if this poses any security issue or not, but thought it might be worth reporting. This eventoccurs when I am logged in as an admin. It does not occur if you are logged out, or it appears it does not happen if you are logged in as a non administrative member.

impreza

A useful modification, thank you
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Advertisement: