![]() |
[HUH?] if not first post display within first post
Im lost, cant get this one down.
So Im trying to do a tab thingy, and show posts that are not the first post in a tab. Code:
<if condition="$post[postcount] != 1"> so how can I get this to un contradict itself =/ heres what i have POSTBIT Code:
<if condition="$post[postcount] == 1"> Code:
<div id="posts">$postbits this has to be possible somehow =/ maybe im over thinking it |
Are you sure $post['postcount'] can be used for that? I thought that stores the current postcount of the user.
|
Can you not use defined <else conditions /> to get where you want to be?
|
Quote:
Code:
$post[postcount] my if condition is not wrong, i just need a way to un-contradict myself, so i can show posts not post 1 within a div, in post 1... i think thats right lol, confussing myself now Quote:
hmmmm just an idea, tested - results 2 post down HTML Code:
<if condition="$post[postcount] == 1"> |
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> |
ok, so that almost did it, but the page output is (relative to the example code I placed above)
Code:
POSTBIT TEMPLATE HERE POSTBIT TEMPLATE AGAIN HERE should be inside div content1 hmmm...... beats me =( |
Quote:
|
Quote:
i guess i can spoil the addon and show you guys one sec ill include code --------------- Added [DATE]1462844841[/DATE] at [TIME]1462844841[/TIME] --------------- https://vborg.vbsupport.ru/external/2016/05/24.png https://vborg.vbsupport.ru/external/2016/05/25.png this would be the new postbit template: replace red text with def postbit code (just keeping it short) Code:
<if condition="$post[postcount] == 1"> 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"> LIVE: DEV ZONE |
Mannnnnnnnnnn why'd you break my brain! This is so simple I think it's being over-complicated or perhaps some of your </if> positions are not correct... see this example:
Code:
<section id="content1"> I'll have another look tomorrow, been coding my brains out today and now brain = pudding! This looks like a job for Tomorrow Man :cool:. |
thanks, yeah my head hurts trying to figure this out, i like the idea of seperating the comments from the social comments, but i have tried so many ways i cant figure this out for nothing lol
makes sense to me just cant seem to get it <if condition="$post[postcount] == 1"> ***PASTE POSTBIT TEMPLATE HERE*** SHOWS FIRST POST <section id="content1"> </if> <if condition="$post[postcount] != 1"> ***PASTE POSTBIT TEMPLATE HERE*** ALL POSTS NOT POST 1 NEED TO BE INSIDE CONTENT1 DIV*** THIS IS NOT THE COREECT PLACEMENT </if> <if condition="$post[postcount] == 1"> MORE STUFF IF POST 1 </section> |
All times are GMT. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|