vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Newthread to optional forums in dropdown (https://vborg.vbsupport.ru/showthread.php?t=209531)

Butcher 03-26-2009 05:12 PM

Newthread to optional forums in dropdown
 
Ok what I was wanting was the possiblity of creating another newthread.php (newthread2.php for example) that would allow you to select which forum you wanted your thread to go into.

So basically a central point for creating newthreads. ie; not going into a certain forum and hitting newthread. This newthread template would have a dropdown box with the forums listed. Not all forums mind, just the ones set via the newthread2 template. You would simply add the forum iD's of the forums intended to go in this drop down box.

What would be the easiest way to implement this?

Lynne 03-26-2009 05:17 PM

Have you done a search yet? I'm pretty sure I've seen a mod like this before. (make sure to search "all mods" )

Butcher 03-26-2009 06:21 PM

yeah have tried but it's finding what the mods been called.
Searched newthread and got nothing

i'll keep looking though

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

well found nothing :(

However i've bashed on by myself and came up the idea of making a page with check boxes on. the value for these checkboxes are the forum id's. But how do i get this value onto the end of a url once hitting the submit button.
Ok that doesn't read very well. Let me try explain better.

In my template i start with this
<form action="newthread.php?do=newthread&f=" method="post">

Now after f= i want the forum id to be placed from the value of a checkbox.
Here's the code used for the check boxes
<input name="forumchoice[]" value="40" type="checkbox">
value 40 is forum id 40

at the end I have
<input name="forumchoice[]" value="Go" type="submit" class="button" /></form>

hope someone understand what i'm trying to do

cheers


All times are GMT. The time now is 02:28 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.01279 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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