vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I add/update table informatin via admincp? (https://vborg.vbsupport.ru/showthread.php?t=161471)

amnesia623 10-30-2007 02:54 AM

How do I add/update table informatin via admincp?
 
I have a couple columns in the db I would like to update via the forum manager.

How in the world do I go about doing this? I assume that I need to write some php code and insert into a plugin and assign that to a hook.

I don't know the hook location and not sure the code.

You can look here ->https://vborg.vbsupport.ru/showthread.php?t=161433
for some more specific background information on this, but I'll try to put in a nutshell

I want to be able to assign a number to the custom columns 'menuid' and 'rssfeedid' in the forums table. 'menuid' will pull an id for a side menu and 'rssfeedid' will pull an id for an rss feed (not associated with vbulletin rss). These ids will associate with ids on other tables and pull the appropriate information.

So, back to my question: How would I be able to input these ids from the admincp->forum manager to both update current forums and add to new forums?

Any help would be great.

Marco van Herwaarden 10-30-2007 06:20 AM

See the following modification: Direct External Links
It will give you basic examples on how to add a forum setting.

amnesia623 10-30-2007 07:12 AM

Thanks Marco -

I actually figured it out thru bits and pieces here and there. You guys have made it easier than I thought and I much appreciate that!

I will look at the above link though to make sure I get it.

Thanks


All times are GMT. The time now is 09:23 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.00930 seconds
  • Memory Usage 1,712KB
  • 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