PDA

View Full Version : Sample pagenav_xxx template code


tubedogg
Sat 4th Aug '01, 5:15pm
By request, here are my pagenav_xxx templates. There's also code that needs to be put in headinclude.

pagenav
<!--Pages ($totalpages): --><b>$firstlink$prevlink$pagenav$nextlink$lastlink</b>
pagenav_curpage
<span class="pagenumstatic">$curpage</span>
pagenav_firstlink
<span class="pagenum"><a href="$address&pagenumber=$curpage">«</a></span>
pagenav_lastlink
<span class="pagenum"><a href="$address&pagenumber=$curpage">»</a></span>
pagenav_nextlink
<span class="pagenum"><a href="$address&pagenumber=$nextpage">›</a></span>
pagenav_pagelink
<span class="pagenum"><a href="$address&pagenumber=$curpage">$curpage</a></span>
pagelink_prevlink
<span class="pagenum"><a href="$address&pagenumber=$prevpage">‹</a></span>
headinclude
.pagenumstatic {
color: #FFFFFF;
background-color: {linkcolor};
border-color: #000000;
border-style: solid;
border-width: 1px;
margin: 0px;
padding: 0px;
padding-left: 4px;
padding-right: 4px;
padding-top: 1px;
padding-bottom: 1px;
width: 1em;
text-decoration: none;
}
.pagenum A:link, .pagenum A:visited, .pagenum A:active {
color: #000088;
background-color: {categorybackcolor};
border-color: #000000;
border-style: solid;
border-width: 1px;
margin: 0px;
padding: 0px;
padding-left: 4px;
padding-right: 4px;
padding-top: 1px;
padding-bottom: 1px;
width: 1em;
text-decoration: none;
}
.pagenum A:hover {
color: #FFFFFF;
background-color: {linkcolor};
text-decoration: none;
border-color: #000000;
border-style: solid;
border-width: 1px;
margin: 0px;
padding: 0px;
padding-left: 4px;
padding-right: 4px;
padding-top: 1px;
padding-bottom: 1px;
width: 1em;
text-decoration: none;
}
.cat A:link, .cat A:visited, .cat A:active {
color: {linkcolor};
text-decoration: none;
}
.cat A:hover {
color: {hovercolor};
text-decoration: underline;
}
In those templates which use <tr id="cat"> you may need to change that to <tr class="cat"> to ensure that the links work correctly. You can find these by searching for $pagenav in the templates and then looking at each one to see if it also contains <tr id="cat">.

smithy256
Sat 4th Aug '01, 5:31pm
what does this do? do u have an example?

Steve Machol
Sat 4th Aug '01, 5:59pm
See tubedogg's example in this thread:

http://www.vbulletin.com/forum/showthread.php?s=&threadid=24044

Streicher
Sun 5th Aug '01, 2:49am
Thanks tubedogg. It works fine in IE5 and NN6. Opera 5 displays it half correct. The pagenumstatic is good, but the other fields are very small. Opera ignores the padding.

BTW: You can delete "padding: 0px;" in headinclude.

TraXter
Wed 8th Aug '01, 4:30pm
wheeee thats a cool hack :) tryout over @ http://forums.tactical-ops.de :) looks very spacy :)

Freddie Bingham
Wed 8th Aug '01, 5:23pm
You need to do something to make it so that Netscape 4 can still change pages using this even if it looks real bad.

Martz
Wed 8th Aug '01, 5:28pm
Very nice indeed, thanks for releasing this Tube :)

Running on my grey style now

DoST
Mon 13th Aug '01, 12:17pm
Looks very good thanks.
One problem: It looks bad in Internet Explorer 4.0. How can I make it compatible with IE 4.0?

Thanks

Thomas P
Wed 22nd Aug '01, 8:12am
Hi there,

looks really slick, I don't like the orginal ones, so using these would improve the looks of my board.

But -as freddie said above- it doesn't work at all with NN 4.7x and I can't just lock them out totally.
Any hints why this doesn't work in NN4 btw?
The code looks quite straight forward to me, I don't see the reason at the first glance...

@dost: could you post a screenshot plz, I don't have any access to IE4 anymore - thx!

-Tom

Thomas P
Wed 22nd Aug '01, 8:36am
Okay, I did some testing and I found that NN 4.x for any reason doesn't like the border-part.

If I take out


border-width: 1px;


in the .pagenum style definitions, then the link works in NN 4.x

So, what I'll code now is a tiny browser-detection which will write the border-width into the style-sheet only for non-NN4 browsers.
Agree?
I'll try that...
-Tom

DoST
Thu 23rd Aug '01, 1:22pm
As you wish ....

Thomas P
Thu 23rd Aug '01, 4:39pm
Originally posted by DoST
As you wish ....

Thanks, really doesn't look very nice in IE 4
-Tom

Thomas P
Sat 25th Aug '01, 12:23pm
Hi there,

okay, I did a javascript which prints out the appropriate style sheet bits depending on the browser the page is viewed with.
Not very bandwith friendly (~75 lines/~3720 bytes of code), but it works.

Tested with IE5, N4.7x, N6.1 and Opera 5.12, dunno about IE4.

http://www.mcseboard.de/pagenavsample/pagenavsample.html

You could easily change the script to fit your needs, I'm still thinking about using this setup since it may add a bit too much overhead to my forums - what do you think?

cu,
-Tom

YourHostSucks
Fri 28th Sep '01, 10:51pm
Nice Setup, I shall use it! :)

Thanks!

Thomas P
Mon 1st Oct '01, 12:27pm
welcome,
Nice site btw., where did you get the Statistics hack from?
Looks good!
-Tom

YourHostSucks
Mon 1st Oct '01, 2:14pm
I am not sure if you are talking to me, and have fallen off topic.. (hehe)

But I had someone else pm me about the statistics hack, It was on this board, even had a bookmark to it.. But it seems to be gone. Maybe a moderator moved it,and now I can not find it again. ;(


I will mail it to you if you wish.

tubedogg
Mon 1st Oct '01, 2:46pm
YourHostSucks,
You will need to enter your license information into your profile to receive any sort of support. As clearly stated many times before, no one except moderators and administrators (who could just as easily use information out of the customer database if this were really just a plan to get license info) can see license numbers, and the password is not stored, but used to verify the number and then discarded.

tubedogg
Sun 14th Apr '02, 1:02am
I have come up with a way to make this work in Netscape 4 (and presumably IE4). If anyone wants it let me know and I will post it.

eva2000
Sun 14th Apr '02, 8:35am
Originally posted by tubedogg
I have come up with a way to make this work in Netscape 4 (and presumably IE4). If anyone wants it let me know and I will post it. post.. post :)

Flack Jacket
Mon 15th Apr '02, 5:56pm
For lall those Bill Gates haters......internet explorer is FREE!

Please dump NN (all versions) because it is so intollerant of tables.

Once again....IE all versions is FREE! why not just catch up and upgrade to the newer version?

I don't mean to sound snotty....I just don't understand why anyone would want to use other browsers that don't work as good as the free one from microsoft or even old browser versions when IE 5, 5.5 or 6 are but a free download away.

I have noticed that IE 6 has a small problem with vbulletin if the forum is using the margins all set to zero and not if all are set to 10 like default but 5 and 5.5 have no trouble at all so there is no reason to not upgrade or dump the other ones. I personally feel that IE (newer versions) are far superior to any other browser available.

Only an opinion and we all know about that :p

Bugz
Tue 16th Apr '02, 4:18pm
Originally posted by tubedogg
I have come up with a way to make this work in Netscape 4 (and presumably IE4). If anyone wants it let me know and I will post it.

yes please post

Fusion
Tue 4th Jun '02, 2:22am
Well, Kevin, or is this slated for v3? :D

Freddie Bingham
Tue 4th Jun '02, 2:50am
Originally posted by Fusion
Well, Kevin, or is this slated for v3? :D Nope.

GameCrash
Wed 5th Jun '02, 4:29am
Why not? It's great...

Erwin
Thu 6th Jun '02, 6:23am
Thanks tubedogg! Looks great, and fits well with the rest of the site! :)