PagesToGo

Started by snork13, February 03, 2006, 09:32:27 PM

Previous topic - Next topic

snork13

Link to Mod

This mod is a simple fix for linking to pages within a topic, makes the board a little less cluttered with long topics. Example provided below:

Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

snork13

I would like to add the idea came from this thread....might give some futher credit and idea...

http://www.simplemachines.org/community/index.php?topic=68684.0
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

ArkServer

Nice :)
buty it doenst work on my forum:
2.     Execute Modification     .\Themes\default/MessageIndex.template.php     Test failed


www.happyserver.be

snork13

Quote from: ArkServer on February 04, 2006, 08:00:18 AM
Nice :)
buty it doenst work on my forum:
2.     Execute Modification     .\Themes\default/MessageIndex.template.php     Test failed


www.happyserver.be

any other mods installed? i installed and uninstalled over 20 times...worked just fine on my test site...

http://dev.smf.snork13.net

this mods edits the MessageIndex.php from the source file, and the MessageIndex.template.php from the default 1.1RC2 theme

-j
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Enc0der

hmm... required change:

look for:
// Show links to all the pages?
if (count($tmppages) <= 5)
$pages = '[ Pages: ' . implode(', ', $tmppages);
// Or skip a few?
else
$pages = '[' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];


change to:
// Show links to all the pages?
if (count($tmppages) <= 5)
$pages = '[ Pages: ' . implode(', ', $tmppages);
// Or skip a few?
else
$pages = '[ Pages: ' . $tmppages[0] . ' ' . $tmppages[1] . ' ... ' . $tmppages[count($tmppages) - 2] . ' ' . $tmppages[count($tmppages) - 1];


:)

snork13

i update for the missing [ Pages: on the skip a few pages. the new version is 1.1, you can uninstall 1.0 and then install 1.1. I also seemed to blow away the 1.0 version from the mod server, i attached the new verison here
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

ArkServer

I installed dispite the warning, it seems that it works. can you tell by clicking on my page that the mod is installed succesfully?

snork13

Quote from: ArkServer on February 04, 2006, 11:06:28 AM
I installed dispite the warning, it seems that it works. can you tell by clicking on my page that the mod is installed succesfully?

ya, it looks correct to me. what errors did you get on package mamanger? what other mods installed.
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

ArkServer

Quote from: snork13 on February 04, 2006, 12:04:56 PM
Quote from: ArkServer on February 04, 2006, 11:06:28 AM
I installed dispite the warning, it seems that it works. can you tell by clicking on my page that the mod is installed succesfully?

ya, it looks correct to me. what errors did you get on package mamanger? what other mods installed.


1.     SimplePortal     
2.    GeSHiSmf    
3.    Hide Tag MUI    
4.    Thank You Mod    
5.    Ultimate Shoutbox    
6.    Paid Subscriptions    
7.    MessagePreview    
8.    MessagePreviewOnHover    
9.    EmailFlash    
10.    Group Moderators    
11.    PagesToGo12    

Enc0der

how about appling this change also on the unread+unreadreplies pages ?  :)

snork13

#10
Quote from: Enc0der on February 08, 2006, 01:23:48 PM
how about appling this change also on the unread+unreadreplies pages ?  :)

done, added to version 1.2
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Jorin

Can you please tell me what will happen if a thread has maybe more then 20 pages? Will the list of pages expand all the way (pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20) or will it look like this (which i would prefer):

Pages: 1, 2, ... , 19, 20

???

snork13

Quote from: nehcregit on March 16, 2006, 10:15:55 AM
Can you please tell me what will happen if a thread has maybe more then 20 pages? Will the list of pages expand all the way (pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20) or will it look like this (which i would prefer):

Pages: 1, 2, ... , 19, 20

???


:P
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Jorin


kezayah

#14
How to do to have ???

[Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ]  :P

edit : I find :
In messageindex.php

// Show links to all the pages?
            if (count($tmppages) <= x)
(x = nombre de pages que l'on veut mettre !!! ;))

kezayah

It would be useful to put this option in display and display.template ???  :P :P :P

falguni1

getting error

1.     Execute Modification     ./Sources/MessageIndex.php     Test successful
2.    Execute Modification    ./Sources/Recent.php    Test successful
3.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
4.    Extract Tree    ./Themes/default/images    

TrueSatan

Again, as per other postings on other mods you have made, a manual installation into the failed file is required post using the automatic install.

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

falguni1

I am using default theme.

TrueSatan

Yes...however the links I gave show how to manually edit the files to do a manual install and with the details they provide you can do as I advised in my last posting.

Advertisement: