The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
thread list numbering
say i have a page with lists of threads that cross over pages
example at the moment i have got it showing 1 2 3 4 5 6 etc and its 40 perpage but once it reaches 40 and i change to the next page it starts from 1 again instead of 41 42 43 etc can anyone help me with this problem |
#2
|
|||
|
|||
Multiply the "per page" by the "page number - 1". Then add the result on to your increment counter or w/e you are using to count.
|
#3
|
|||
|
|||
m8 can u give me the php to do this my counter has packed up its now showing -39 and -80
thx in advance :P |
#4
|
|||
|
|||
Well it depends on your script...
PHP Code:
|
#5
|
|||
|
|||
heres my code page nav works etc just need to get the counter working can i show me with the full code $count is the varible i will be using to add a number to the front of each thread.
thx in advance :P PHP Code:
|
#6
|
|||
|
|||
can no one help then i guess ?
|
#7
|
|||
|
|||
Place the part where you set $startfrom, outside the loop that displays the thread. Then increment the counter when your inside the while loop.
|
#8
|
|||
|
|||
i dont uner stand m8 can u show me with the code i posted ? thx in advance
|
#9
|
|||
|
|||
I'm not going to code if for you...
PHP Code:
|
#10
|
|||
|
|||
sorted m8 but $startfrom = $limitlower - 1; to get the correct number :P
thx again :P |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|