vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adding Additional Fields to New Thread (https://vborg.vbsupport.ru/showthread.php?t=78875)

ManagerJosh 03-27-2005 08:21 AM

Adding Additional Fields to New Thread
 
Anyone know if there's a sane method of adding a customizeable field for new threads? :)

andrewyw 03-27-2005 09:25 AM

i would like to know the same thing. Thanks

why-not 03-27-2005 10:22 AM

It would really depend on what you would be adding and what you would want done with the value of each input!

I guess you could add a option to the vB posting options, where you could define a new input (input name, default value, fill in value if set, about text) that would need a edit to (newthread, newreply) to add a single function that would call (1) of (2) other functions (process, build), then you would just create a single template (custom_input_bit) to build the input to be added to the form). For processing just check if the new input has a value and if it does process it, if it's a preview then just reinsert the value or check it if its a checkbox!

So a quick run down!

1. Add option to the admin panel (options)
2. create a new table to hold each input fields settings (something like profilefields)
3. add the posting values to clean them to function build_new_post() ./includes/functions_newpost.php
4. add your custom templates for different input types you want to support
5. add you <if condition...> to include your form inputs to newreply, newthread templates!
6. add the building and processing functions
7. add the function(s) calls to newthread.php, newreply.php

That it! It's not really hard to do, maybe a hour of coding on the forum side, the admin panel would take longer, how long will depend on how dynamic you want the control to be! Just remember the more dynamic it is, will make your Admin job easier later!

Sonia

iceman-x 06-28-2005 04:38 PM

I wold like the same thing, is there som one that can make a it.

Marco van Herwaarden 06-28-2005 06:11 PM

Like why-not replied, it would depend on your exact needs.

Did you have a look at Erwin's hack?

iceman-x 06-28-2005 06:54 PM

Thanks for the replay. :)

I need it for a site like this, white many new hacks/mods/interfaces,,,, for consols.

when a new thread is maked the pople have to enter :

Version :
Mod date :
Moded by :
Produsent :

Exmpel:

Version : 1.0
Mod date : 24.05.05
Moded by : Ice
Produsent : Sony

And the info show in the first post.

sorry for the bad english. ;)

Marco van Herwaarden 06-28-2005 08:19 PM

Have a look if you can use this: https://vborg.vbsupport.ru/showthrea...threadid=66082

PS It is fairly easy to create extra fields, adding them to search is a bit more work. But since this will probably be a custom solution for your forum, i doubt anybody want to do it for free. So maybe a Service Request is better if you can't use Erwin's hack.

iceman-x 06-28-2005 08:49 PM

Tanks, i have looked at his mod, but i can use that.

and using fields follow the users and not the post. and that dont work.

i need to add it to the post. so the info follow the post.

then il try to figer it out my selfe, but it is going to take wail then :(

thanks any way.

iceman-x 06-30-2005 06:45 PM

1 Attachment(s)
and then ist going the right way. :)

Perhaps i can beat Zachery and releace this hack. lol, not

I have to fix soam posting problems, but perhaps i m geting there.

going on a vacation now, so cya all i august. :)


All times are GMT. The time now is 12:21 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.01005 seconds
  • Memory Usage 1,725KB
  • 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
  • (9)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