vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   add a button in a specific thread (https://vborg.vbsupport.ru/showthread.php?t=199523)

Harmachis 12-22-2008 03:13 PM

add a button in a specific thread
 
Hello,
is there any way to ADD a button (beside POST REPLY button) in a specific thread (not all thread)

here's what I want:

https://vborg.vbsupport.ru/external/2008/12/17.png

I reapet, i want to add in a specific thread not all thread

tnx in advance :)

Lynne 12-22-2008 03:22 PM

Sure. You need to put a conditional around it to have it only show in that one thread:
HTML Code:

<if condition="$threadinfo[threadid] == 'xxxx'">
button
</if>

You should also make sure you have a condition in the page the button uses that won't allow other threads to 'use' the button also (just changing the GET parameter if that is how you are passing the threadid).

Harmachis 12-22-2008 04:11 PM

tnx Lynne :)

daydie 01-12-2009 09:42 PM

what if this was wanted into more whan one forum?

--------------- Added [DATE]1231805207[/DATE] at [TIME]1231805207[/TIME] ---------------

help please

Bellardia 01-12-2009 10:10 PM

Quote:

Originally Posted by daydie (Post 1710244)
what if this was wanted into more whan one forum?

--------------- Added [DATE]1231805207[/DATE] at [TIME]1231805207[/TIME] ---------------

help please

Forum or thread? Specify ;)

daydie 01-12-2009 10:47 PM

Forum display, for setin forums only. (also threads within)

--------------- Added [DATE]1231807740[/DATE] at [TIME]1231807740[/TIME] ---------------

i have this but dont work

<if condition="$foruminfo[forumid] == ' 343, 368, 369, 370, 371, 358, 364, 365, 366, 367'">
lolol
</if>

Lynne 01-12-2009 11:48 PM

Try this:
HTML Code:

<if condition="in_array($foruminfo['forumid'], array(343, 368, 369, 370, 371, 358, 364, 365, 366, 367))">
lolol
</if>


daydie 01-13-2009 12:02 AM

thanks

Aprichated


All times are GMT. The time now is 08:01 AM.

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.01090 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete