Examples of new pagenav_xxx templates in use

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kier
    Former Lead Developer, vBulletin
    • Sep 2000
    • 8179

    Examples of new pagenav_xxx templates in use

    In the 2.0.2 announcement, we mentioned that I have completely re-done the pagenav system, and it's now very flexible.

    Take a look at this, achieved without any hacks, just template edits:



    Let's see some of your versions!
  • Chen
    Senior Member
    • Jun 2001
    • 8388

    #2
    Will you be kind enough to post the templates here? I REALLY like the way you used it!

    Thanks
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

    Comment

    • tubedogg
      Senior Member
      • Feb 2001
      • 13602

      #3
      Here's mine...

      Current number is always highlighted (first row in the pic). Others highlight on mouseover (second row in the pic).

      Comment

      • Streicher
        Senior Member
        • Jan 2001
        • 373
        • 3.7.x

        #4
        tubedogg, your version looks very good. How do ou do that. Can you post the code?
        Streicher

        Comment

        • tubedogg
          Senior Member
          • Feb 2001
          • 13602

          #5
          Sure. I'll start a new thread in here with it.

          Only works in IE5+ (maybe IE4), possibly NS6 (haven't tried it), not sure about Opera.

          Comment

          • ]CkB[Cowboy
            New Member
            • Jul 2001
            • 22

            #6
            kier, could you post the code you used to do yours?

            I'd love to see that (and I don't want to spend the time to figure it out)

            Comment

            • Chen
              Senior Member
              • Jun 2001
              • 8388

              #7
              Yes please!
              Chen Avinadav
              Better to remain silent and be thought a fool than to speak out and remove all doubt.

              גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

              Comment

              • ]CkB[Cowboy
                New Member
                • Jul 2001
                • 22

                #8
                hello? anyone?

                it's all well and good to show us a screenshot, but how about some code to back it up?

                Comment

                • Kier
                  Former Lead Developer, vBulletin
                  • Sep 2000
                  • 8179

                  #9
                  aw come on guys... it's basic HTML... try to figure it out for a while.

                  Comment

                  • Chen
                    Senior Member
                    • Jun 2001
                    • 8388

                    #10
                    Come on man, you can't do this... it's like putting a piece of cheese in front of a mouse and when he's 2 centimeters away taking it away!
                    Chen Avinadav
                    Better to remain silent and be thought a fool than to speak out and remove all doubt.

                    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                    Comment

                    • ]CkB[Cowboy
                      New Member
                      • Jul 2001
                      • 22

                      #11
                      "Try to figure it out for a while" ?

                      Frankly, the documentation isn't obvious enough to me, and I just don't have the time to devote to manually code it in. I work full time, and take what little time I can to try to make my Forums better for the people that use them. I do it for free, and for fun, and to help other people out.

                      I figured that since we purchased the vBulletin software, and that you had already done the work, that you would offer it up to us, to use.

                      It took me long enough to even get my pagenav_xxx templates to work, upgrading to 2.0.3, because a) "pagenav_xxx" isn't a template itself, it's just an allusion to a set of "pagenav" templates, b) I couldn't find any documentation of how to implement the new "pagenav_xxx" template system, and c) when I updated to 2.0.3 from 2.0.1 recently, the new "pagenav_xxx" templates were not added to my current set of templates, so instead of seeing some "default" templates I could edit, I had to just scratch my head and wonder why my pagenav no longer showed up in my thread display.

                      Once I happened upon Tubedogg's post, it became obvious to me what the correct way to set it up was, and I added his templates manually.

                      One question I have, since I can still not find adequate documentation answering my many questions, is how I would further customize the "pagenav_xxx" templates - because it's still extrememly vague.

                      So, I simply ask you to post the code you utilized to do what you posted a screenshot of. Is that too much to ask?

                      Thanks.
                      Last edited by ]CkB[Cowboy; Wed 8 Aug '01, 3:44am.

                      Comment

                      • theory
                        New Member
                        • Jun 2001
                        • 11
                        • 3.0.5

                        #12
                        Having Problems with pagenav_xxx

                        I can't seem to get the pagenav_xxx template running. I went in
                        and added the "pagenav_xxx" to my default templates and
                        placed the following code in the template box:

                        <!--Pages ($totalpages): -->
                        <b>$firstlink$prevlink$pagenav$nextlink$lastlink</b>

                        Do I need to also place code in my header template to activate
                        the links? I couldn't find too much information on getting this
                        working.

                        In the meantime, my forum takes about 1,000 posts / day and
                        people aren't able to navigate around. I did the upgrade from
                        2.0.0 to 2.0.3 and lost all page navigation.

                        Is there a way that I can revert back to the old template? I am
                        not looking for anything fancy, I just want this working again.

                        Thanks for any help you can provide me with.

                        Regards,

                        Brian Rauschenbach

                        Comment

                        • Kier
                          Former Lead Developer, vBulletin
                          • Sep 2000
                          • 8179

                          #13
                          There seems to have been a misunderstanding here.

                          There is no such thing as a pagenav_xxx template.

                          By xxx I was referring to the collection of templates installed by default with the 2.0.2/2.0.3 upgrade script named pagenav, pagenav_nextlink etc.

                          If you are running 2.0.2 or later and you have no templates called pagenav_(something or other) then you did not upload vbulletin.style with the rest of the files to perform the upgrade.

                          You will need to use the 'upload style set' function in the styles control panel to upload the 2.0.3 vbulletin.style that is contained within the vBulletin zip file.

                          This is of critical importance.
                          Last edited by Kier; Thu 9 Aug '01, 10:02am.

                          Comment

                          • ]CkB[Cowboy
                            New Member
                            • Jul 2001
                            • 22

                            #14
                            I personally don't think the new "pagenav_xxx" template system was really explained very well in the instructions.

                            I generally don't have problems with instructions, but this one baffled me (for example, I have been able to figure out everything else I have needed to do in vB and PHP up until this bit)

                            I don't think it was explained in enough detail..

                            But would it be possible for you to post your own version of this code (as you have posted the screenshot at the top of the page) ?

                            I would like very much to use that in my own forums.

                            Thanks

                            Comment

                            • ethank
                              Senior Member
                              • Apr 2001
                              • 603

                              #15
                              Here's the code for a version of the dropdown one. Because Netscape doesn't like form elements without the form tag, formatting in Netscape 4.7 is less than ideal, but it works fine.

                              headerinclude

                              Code:
                              .nextprev { font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; background-color: #005B7F ; font-weight: bolder}
                              pagenav

                              Code:
                              <script language="JavaScript">
                              if (navigator.appName=="Netscape"){ 
                              if (navigator.appVersion.substring(0, 3) <= "4.8"){ 
                               document.writeln('<form>');
                              }
                              }
                              
                              </script>
                              Pages ($totalpages): <b>[ $prevlink
                              
                              
                              <select name="pagenumber" onChange="document.location.href=this.options[this.selectedIndex].value;" valign="middle">
                              $firstlink 
                              $pagenav 
                              $lastlink 
                              </select>
                              
                              <script language="JavaScript">
                              
                              if (navigator.appName=="Netscape"){ 
                              if (navigator.appVersion.substring(0, 3) <="4.8"){ 
                               //document.writeln('</form>');
                              }
                              }
                              </script>
                              
                              $nextlink ]</b>
                              pagenav_curpage
                              Code:
                              <option value="$address&pagenumber=$curpage" SELECTED>$curpage/$totalpages</option>
                              pagenav_firstlink
                              Code:
                              <option value="$address&pagenumber=$curpage">First Page</option>
                              pagenav_lastlink
                              Code:
                              <option value="$address&pagenumber=$curpage">Last Page</option>
                              pagenav_nextlink
                              Code:
                              <script language="JavaScript">
                              if (navigator.appName=="Netscape"){ 
                              if (navigator.appVersion.substring(0, 3) <= "4.9"){ 
                               document.writeln('<a href="$address&pagenumber=$nextpage">&gt;</a>');
                              }
                              else
                              {
                               document.writeln('<input type="submit" value="&gt;" onClick="document.location.href=\'$address&pagenumber=$nextpage\'" style="nextprev" class="nextprev">');
                              }
                              
                              }
                              else
                              {
                               document.writeln('<input type="submit" value="&gt;" onClick="document.location.href=\'$address&pagenumber=$nextpage\'" style="nextprev" class="nextprev">');
                              }
                              
                              
                              </script>
                              pagenav_pagelink
                              Code:
                              <option value="$address&pagenumber=$curpage">$curpage</option>
                              pagenav_prevlink
                              Code:
                              <script language="JavaScript">
                              if (navigator.appName=="Netscape"){ 
                              if (navigator.appVersion.substring(0, 1) <= "4"){ 
                               document.writeln('<a href="$address&pagenumber=$prevpage">&lt;</a>');
                              }
                              else
                              {
                               document.writeln('<input type="submit" value="&lt;" onClick="document.location.href=\'$address&pagenumber=$prevpage\'" style="nextprev" class="nextprev">');
                              }
                              }
                              else
                              {
                               document.writeln('<input type="submit" value="&lt;" onClick="document.location.href=\'$address&pagenumber=$prevpage\'" style="nextprev" class="nextprev">');
                              }
                              
                              
                              
                              </script>

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...