vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to add a new field to a post? (https://vborg.vbsupport.ru/showthread.php?t=193994)

Meorazhar 10-19-2008 03:55 AM

How to add a new field to a post?
 
Hello guys,

i'm wondering how can i add a new field to a post that would show in post's "advanced edit" window and be required if a post has attachments?

Please give me directions.

Lynne 10-19-2008 03:14 PM

I have not seen anything like that. There are mods that have extra fields to fill out when you create a thread, but then the contents are included in the post, not kept as a separate editable field.

Meorazhar 10-22-2008 05:08 AM

I have found an old thread about adding custom fields to threads, and, although it was somehow helpful, i still can't figure out how to do this for posts. I need this new field to be visible and editable in all possible places (i.e. starting a new thread, making a new post in advanced mode and editing a post). Also it should be a dropdown (the values should be initiated through a separate plugin)

All further help would be appreciated.

Lynne 10-22-2008 02:15 PM

What you are asking for is not simple. You will need to add new columns to your posts table and new code to deal with these fields in all the places you mentioned.

TheLastSuperman 10-22-2008 02:29 PM

Ok, like Lynne said, not that simple so this might just be a "Meorazhar" original ;)

Try this link --> https://vborg.vbsupport.ru/showthread.php?t=170912, you can see how they did it via the code :D Now perhaps you can use snippets to create what you want, editing postbit etc to show the contents of the custom field.

There are already many mods out w/ code snippets you could utilize for this, it just depends on your determination and ability to follow through until you get exactly what you want from it all.

S-MAN

Meorazhar 11-18-2008 04:36 AM

I'm still looking for some help. I have even posted a thread in "paid requests" subforum but noone seems to have a solution...
https://vborg.vbsupport.ru/showthread.php?t=194911


All times are GMT. The time now is 11:44 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.01953 seconds
  • Memory Usage 1,719KB
  • 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
  • (6)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