Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2005, 08:21 AM
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adding Additional Fields to New Thread

Anyone know if there's a sane method of adding a customizeable field for new threads?
Reply With Quote
  #2  
Old 03-27-2005, 09:25 AM
andrewyw andrewyw is offline
 
Join Date: Mar 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would like to know the same thing. Thanks
Reply With Quote
  #3  
Old 03-27-2005, 10:22 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 06-28-2005, 04:38 PM
iceman-x iceman-x is offline
 
Join Date: Nov 2002
Location: NOrWAY
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wold like the same thing, is there som one that can make a it.
Reply With Quote
  #5  
Old 06-28-2005, 06:11 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Did you have a look at Erwin's hack?
Reply With Quote
  #6  
Old 06-28-2005, 06:54 PM
iceman-x iceman-x is offline
 
Join Date: Nov 2002
Location: NOrWAY
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-28-2005, 08:19 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 06-28-2005, 08:49 PM
iceman-x iceman-x is offline
 
Join Date: Nov 2002
Location: NOrWAY
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 06-30-2005, 06:45 PM
iceman-x iceman-x is offline
 
Join Date: Nov 2002
Location: NOrWAY
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: jpg test.jpg (34.7 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04602 seconds
  • Memory Usage 2,260KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete