vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Default & Removal (https://vborg.vbsupport.ru/showthread.php?t=44948)

|-Last-Spirit-| 10-24-2002 04:22 PM

Default & Removal
 
I have a few options I want to hide from user but set at a certain value, for example :

1) Automatically parse URLs: automatically adds and around internet addresses.

I want this to be disabled (default it's enabled) and also make it so that no users can see the option...


2) Showing threads 1 to 4 of 4, sorted by last post time in descending order from the beginning.

I want this to be the option seen above (so last post time/descending/the beginning) for all forums, and also make it so that no users can see the option anymore...


That's the 2 most important ones, is this possible (I can delete the references of course in the templates but then the default values are wrong and then there isn't even a way to change it anymore....

Xenon 10-24-2002 04:29 PM

this are just template mods *moving*

yes you have to remove the code out of the templates, but for default values you have to add hidden codes instead

|-Last-Spirit-| 10-24-2002 05:57 PM

Heh tnx but I can't really "do" anything with the answer :( can you give a example ?

Xenon 10-24-2002 06:37 PM

well normally you've got something like this (an example for yes/no):
Code:

<input type=radio name="..." value=1 checked> Yes
<input type=radio name="..." value=0> No

this means default is yes, if you just delete it, the default would be no.
to get it back to yes but make it unchoosable you have to use this instead:
Code:

<input type="hidden" name="..." value=1>


All times are GMT. The time now is 09:24 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.01781 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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