The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$post['isfirstshown'] doesn't exist? Alternative?
I'm trying to loop things on every page of a thread, but for whatever reason vBulletin hasn't included "$post['isfirstshown']"?? $post['islastshown'] works just fine, so what's the deal?
Anyway, just thought I'd ask what would be the easiest way to emulate "isfirstshown"? Whether it be a plugin that calculates every multiple of the "Posts per page" # + 1 (i.e. 1, 16, 31, 46, 61...) and inserts the code into postcounts that equal those numbers, or actually modifying the vBulletin code to create a real "isfirstshown". I guess it would help if I were at my PC.. then I could just search through to see how they've done the "islastshown" code. ---------------------------------- Edit: Sigh.. I already found my answer: Code:
<if condition="$post[postcount] % $vboptions[maxposts] == 1"> |
#2
|
|||
|
|||
it looks like:
<if condition="$post['isfirstshown']"> does work now. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|