Author |
Topic |
|
sr_erick
Senior Member
USA
1318 Posts |
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 23 January 2004 : 00:34:38
|
Thanks for the MOD, sr_erick.
Very nice site, BTW!
db question ...
Are you running Access or MS-SQL?
Cheers,
Etymon
|
|
|
sr_erick
Senior Member
USA
1318 Posts |
|
NorwegianViking
Junior Member
Denmark
119 Posts |
Posted - 23 January 2004 : 02:15:52
|
Nice MOD, sr erick Tested it on you site, and it worked. Is it configurable how many pages that is initially directly selectable, or is it always 3 ?
Also liked your site. off topic: Never forgets a snowmobile ride during military service in northern Norway. My platoon commander riding the snowmobile, me riding on NATO skis, holding on to a rope 10 meters behind the snowmobile. Very icy road and 60 km/h +. A real adrenalin-kick. Great fun. |
kind regards NorwegianViking
Mod installation for beginners | User registration problems?
|
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 23 January 2004 : 02:29:04
|
In the second for loop, this displays all the pages after the current page you are on. Change for i=0 to 1 to something like for i=0 to 3, or whatever number you want. I think this should do what you are asking. If you want to, you can do the same in the first for loop as well to show more previous pages. If you change the first loop you also have to change the pagecounter = strPageLink - 3. make the 3 a larger number to match the increase of pages you want to show. When I create the paging like this for topics, and a stuff like members page I will make all of this dynamic via an admin control console.
for i=0 to 1
pagecounter = pagecounter + 1
if pagecounter <= maxpages then
|
Erick Snowmobile Fanatics
|
Edited by - sr_erick on 23 January 2004 02:51:32 |
|
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 23 January 2004 : 04:49:01
|
Excellent mod! Especially like the js popup to select the page! Well done |
The UK MkIVs Forum |
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 24 January 2004 : 14:42:33
|
For those of you that have installed this, I have updated the zip. Seems I forgot to take care of the archive views, works now though! Just do step 2 over, replacing the sub. |
Erick Snowmobile Fanatics
|
|
|
Faizan
Average Member
United Kingdom
592 Posts |
Posted - 24 January 2004 : 15:33:34
|
Very nice MOD!
Chears Erick!
|
»Snitz Graphics
|
|
|
Ryan
Average Member
USA
858 Posts |
Posted - 24 January 2004 : 19:38:30
|
Very nice MOD! I really like it. One suggestion. When you make a readme could you place the code changes that come later in the file after those that come before? Not sure if that is clear.. What I mean is if there is a code change on line 901 then make sure that instruction goes after the code change in line 456. That way when I do a search for strings of code I dont have to search up and down just down. Also I modified the subSimplePaging so that you dont have to manually enter the colors into the file. The change I came up with is here:
<code removed>
I think that does a nice job but maybe a couple of you better snitzers could look at it and see if it would work pretty well. Works on my forum. |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 24 January 2004 : 21:16:11
|
I will probably update accordingly. Ryan can you please remove the code so everything will wrap right. Thanks. |
Erick Snowmobile Fanatics
|
|
|
Ryan
Average Member
USA
858 Posts |
Posted - 26 January 2004 : 11:41:40
|
Sorry about that. Did you get that code that I posted? Or would you like me to post a link to a txt file of it? |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
Edited by - Ryan on 26 January 2004 11:44:33 |
|
|
webbee
Junior Member
100 Posts |
Posted - 27 January 2004 : 15:01:36
|
Hey great mod I have to install it real soon. By the way how did you build your portal site? That is an excellent looking site and I would really like to use the structure for my own. If it's a trade secret that's cool |
garnold@teamfatbastard.net
|
|
|
sr_erick
Senior Member
USA
1318 Posts |
Posted - 27 January 2004 : 15:11:55
|
Yes I got the code.
webbee, Thanks. It's nothing more than a couple of tables and some graphics. |
Erick Snowmobile Fanatics
|
|
|
|
Topic |
|