vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   adding a new table to vb_user (https://vborg.vbsupport.ru/showthread.php?t=80119)

rin 04-18-2005 12:48 PM

adding a new table to vb_user
 
Hello,

as you can see on my forum, i am adding a new "rules box" which needs to applied to in order to remove it from the screen.
to get a better idea visit this link:
http://www.kawaiination.com/communi....php?styleid=11
when "apply to these rules" is clicked i want to start a script which searches the userid who clicked the link and then adds a "1" into a table called something like "read_rules". 0 should be the default value.
so, what i am asking you is:
can you tell me a script which adds a table "read_rules" into "vb_users" with a default value of "0"?

sabret00the 04-18-2005 12:59 PM

you can add the table in phpmyadmin :)

though you should check the forums theirs a couple rules hacks :)

rin 04-18-2005 01:27 PM

hehe thanks for your answer.
i would like to make my own one though.
in mysqladmin i click "vb_user" in the left frame and now, where exactly can i add such a table as described above? do i click "operations" on top and then...? :)
thanks for any help. :)

rin 04-20-2005 09:59 AM

please, can you help me?

Marco van Herwaarden 04-20-2005 10:18 AM

First of all you would be much better of if you just added a new column to the user table, instead of creating your own new table. That would be 1 query less on every page load.

I am sorry to say, but if you can not figure out how you can work with phpMyAdmin, you must really ask yourself if you should try coding.

In phpMyAdmin, just select the database you want to work on, then when you have the list of all tables, there must be a link somewhere to create a new table, or a page where you can enter a SQL statement to manually create a table.

rin 04-20-2005 04:41 PM

thanks.
the reason i ask is that i don't have a test database and i dont want to test on my live-database.

Marco van Herwaarden 04-20-2005 05:57 PM

If you have a license you are always allowed to have 1 (not public reachable, so use a .htaccess) test board.


All times are GMT. The time now is 10:18 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.00913 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
  • (7)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