vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What is if conditional code for first showtread page? (https://vborg.vbsupport.ru/showthread.php?t=223316)

basketmen 09-16-2009 09:30 AM

What is if conditional code for first showtread page?
 
I want to showing a text only in every first showtread page




what is the right code for it guys?





here is for anyone that answering this :up:

Lynne 09-16-2009 02:44 PM

So only the very first post? Try this:

HTML Code:

<if condition="$post['postid']==$thread['firstpostid']">
stuff only for first post
</if>


basketmen 09-16-2009 11:07 PM

Quote:

Originally Posted by Lynne (Post 1885760)
So only the very first post? Try this:

HTML Code:

<if condition="$post['postid']==$thread['firstpostid']">
stuff only for first post
</if>


no, not every first post

but every first thread

what is the code guys

Stormraven 09-16-2009 11:19 PM

Take a look here, you may find it on this list:

http://forum.vbulletinsetup.com/f18/...list-2185.html

Lynne 09-16-2009 11:41 PM

Quote:

Originally Posted by basketmen (Post 1886066)
no, not every first post

but every first thread

what is the code guys

First thread? What is a first thread?

The code I posted is for the first post in a thread.

basketmen 09-17-2009 12:48 AM

Quote:

Originally Posted by Lynne (Post 1886079)
First thread? What is a first thread?

The code I posted is for the first post in a thread.

ah sorry wrong type, i mean first showthread page

for example this is the first showthread page i want to showing the text here under Quick reply https://vborg.vbsupport.ru/showthread.php?t=223371

and this is the second showthread page and the rest showthread pages, i dont want to showing it there https://vborg.vbsupport.ru/showthrea...=223371&page=2




Quote:

Take a look here, you may find it on this list:

http://forum.vbulletinsetup.com/f18/...list-2185.html
i had try looking there, but still cant find it

basketmen 09-18-2009 07:25 AM

upp still dont get the answer, this looks like easy and basic, but i still dont have the answer

Lynne 09-18-2009 02:43 PM

Have you tried anything with the $page variable? like
HTML Code:

<if condition="$page <= 1">
 stuff
</if>

It might be $_GET for the variable and they might have changed it in the php to be called something else, but that is probably what I'd look into.

basketmen 09-19-2009 02:02 AM

i had try these but no one works

<if condition="$page <= 1">


or


<if condition="$page == 1">




and this code just for postbit https://vborg.vbsupport.ru/showthrea...ght=first+page , i need to put the code in showthread template below quick reply



any other code guys? is there any code for this, i am confuse i had try search other threads too

Lynne 09-19-2009 03:42 AM

Try the opposite... if $page is greater than or equal to 2, don't do something, else do it. And, like I said, page may be a $_GET variable, I really don't know.


All times are GMT. The time now is 08:33 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
  • Page Generation 0.01110 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete