Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Simple Paging 1.0
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sr_erick
Senior Member

USA
1318 Posts

Posted - 22 January 2004 :  23:37:39  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
This is my very first mod, please treat it with care.

This mod replaces the current drop down paging in forum.asp with a, how shall we say, more stylish version, which gets the job done nicely. Users can flip through pages of topics or go directly to a specific page.

You will find the mod listed here: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=173

A demo is located at: http://www.snowmobilefanatics.com/forum/forum.asp?FORUM_ID=44

The direct download link is here: http://www.snitzbitz.com/mods/download.asp?mid=173&fid=228

Please enjoy. There may be some bugs. Not sure if I did all this right or not. I'd like to get many more mods released in the future, it was a lot of fun. It should work for you as it did when I tested it out in a new installation.

Here is a screenshot...




Erick
Snowmobile Fanatics


Edited by - sr_erick on 23 January 2004 00:19:00

Etymon
Advanced Member

United States
2385 Posts

Posted - 23 January 2004 :  00:34:38  Show Profile  Visit Etymon's Homepage
Thanks for the MOD, sr_erick.

Very nice site, BTW!

db question ...

Are you running Access or MS-SQL?

Cheers,

Etymon
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 23 January 2004 :  01:08:31  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
It's MS-SQL.




Erick
Snowmobile Fanatics

Go to Top of Page

NorwegianViking
Junior Member

Denmark
119 Posts

Posted - 23 January 2004 :  02:15:52  Show Profile  Visit NorwegianViking's Homepage
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?
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 23 January 2004 :  02:29:04  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
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
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 23 January 2004 :  03:31:15  Show Profile
Works like a charm on Access 2000 as well. I have it running at Classic Motorcycling Australia's Forums.

Great work sr_erick....

Cheers,

David Greening
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 23 January 2004 :  04:49:01  Show Profile
Excellent mod! Especially like the js popup to select the page!
Well done

The UK MkIVs Forum
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 24 January 2004 :  14:42:33  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
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

Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 24 January 2004 :  15:33:34  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
Very nice MOD!

Chears Erick!



»Snitz Graphics
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 24 January 2004 :  19:38:30  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 24 January 2004 :  21:16:11  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
I will probably update accordingly. Ryan can you please remove the code so everything will wrap right. Thanks.




Erick
Snowmobile Fanatics

Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 26 January 2004 :  11:41:40  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

webbee
Junior Member

100 Posts

Posted - 27 January 2004 :  15:01:36  Show Profile  Visit webbee's Homepage  Send webbee an AOL message  Send webbee a Yahoo! Message
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
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 27 January 2004 :  15:11:55  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Yes I got the code.

webbee, Thanks. It's nothing more than a couple of tables and some graphics.




Erick
Snowmobile Fanatics

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07