Quote:
Originally Posted by TheLastSuperman
Perhaps use one of the examples shown here:
https://vborg.vbsupport.ru/showpost....59&postcount=2
Of course remove the vb:if and make it vB3 compliant.
Edit: Rough example IF max posts per page is set to 20 in admincp:
Code:
<if condition="$post['postcount'] % $vboptions['maxposts'] == 19">YOUR CODE HERE</if>
Maybe I misunderstood too? Maybe this will help 
|
I'm trying to display all comments that are not the first post, within the first post, not show something after a specific post... well kinda but not in the same sense lol
i guess i can spoil the addon and show you guys one sec ill include code
--------------- Added [DATE]1462844841[/DATE] at [TIME]1462844841[/TIME] ---------------
this would be the new postbit template: replace red text with def postbit code (just keeping it short)
Code:
<if condition="$post[postcount] == 1">
***PASTE POSTBIT TEMPLATE HERE***
<input id="tab1" type="radio" name="tabs" checked>
<label for="tab1">Comments</label>
<input id="tab2" type="radio" name="tabs">
<label for="tab2">Disqus</label>
<input id="tab3" type="radio" name="tabs">
<label for="tab3">Facebook</label>
<input id="tab4" type="radio" name="tabs">
<label for="tab4">Google+</label>
<section id="content1">
</if>
<if condition="$post[postcount] != 1">
***PASTE POSTBIT TEMPLATE HERE***
</if>
<if condition="$post[postcount] == 1">
</section>
<section id="content2">
2
</section>
<section id="content3">
3
</section>
<section id="content4">
4
</section>
</if>
what it returns in page *notice content1 is blank, then postbit repeats (those would be comments) at the end, i cut it cause it just keeps repeating for each comment.
HTML Code:
<input id="tab4" type="radio" name="tabs">
<label for="tab4">Google+</label>
<section id="content1">
</section>
<section id="content2">
...
</section>
<section id="content3">
...
</section>
<section id="content4">
...
</section>
<!-- END TEMPLATE: postbit -->
</div>
<!-- BEGIN TEMPLATE: spacer_close -->
</div>
</div>
</div>
<!-- / close content container -->
<!-- END TEMPLATE: spacer_close -->
<!-- / post #5 -->
<!-- END TEMPLATE: postbit_wrapper --><!-- BEGIN TEMPLATE: ad_showthread_firstpost -->
<!-- END TEMPLATE: ad_showthread_firstpost --><!-- BEGIN TEMPLATE: postbit_wrapper -->
<!-- post #6 -->
<!-- BEGIN TEMPLATE: spacer_open -->
<!-- open content container -->
<div align="center">
<div class="page" style="width:980px; text-align:left">
<div style="padding:0px 25px 0px 25px" align="left">
<!-- END TEMPLATE: spacer_open -->
<div id="edit6" style="padding:0px 0px 6px 0px">
<!-- this is not the last post shown on the page -->
<!-- BEGIN TEMPLATE: postbit -->
LIVE:
DEV ZONE