vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   On and Off Option (https://vborg.vbsupport.ru/showthread.php?t=163356)

John3971 11-22-2007 01:12 PM

On and Off Option
 
hey im working on my first mod and i need some help. im using on and off button and when you choose 1 alternative it stands yes/no and i wonder how i can fix so it stands something else like alt1/alt2

here is the php code:
Code:

<phpcode><![CDATA[print_table_header($vbphrase['subforumlist_title']);
        print_yes_no_row($vbphrase['subforumslistonoff'], 'forum[subforumslistonoff]', $forum['subforumslistonoff']);]]>
</phpcode>


Analogpoint 11-22-2007 03:07 PM

I'm not quite sure what you're asking. Can you rephrase the question and explain exactly what it is you'd like to accomplish?

John3971 11-22-2007 03:16 PM

okey gonna try to explain it better.

im working on a mod that give you an option in each forum so subforums will be shown different and i have succed to fix this so its work but the option is yes/no when you edit the forum and i want it to say something else. here is a ss so you see what its look like now.
http://img81.imageshack.us/img81/8745/namnlsuk0.png
i hope you understand what i mean now :D

Analogpoint 11-22-2007 03:25 PM

Yes, now I understand. Why don't you use a dropdown list to display the two options (alt1 or 2)?

John3971 11-22-2007 03:28 PM

did not think of that. im not so good in this but how do i fix so it is a dropdown?

Analogpoint 11-22-2007 03:34 PM

Use print_select_row

John3971 11-22-2007 03:40 PM

okey now i only have 1 more question. how do i get the option in there?

Analogpoint 11-22-2007 03:46 PM

Read this http://members.vbulletin.com/api/vBu...int_select_row

John3971 11-22-2007 03:51 PM

i don“t really understand that so i stick with yes and no option. thanks anyway.

Marco van Herwaarden 11-23-2007 04:49 AM

print_radio_row() might be more suitable.


All times are GMT. The time now is 11:30 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.02279 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete