Quote:
Originally Posted by weinstoc
I'm new to VBulletin programming. I've been searching through what documentation I could find, but a lot of it is cryptic to me (probably because I don't understand the programming structure of VBulletin).
I would like to add a field to the forum database (say "X") and be able to access $foruminfo[X] in a conditional such (i.e., <if condition="$forum[X] == Something">
Do something
</if>
Can someone walk me through the best way to accomplish this?
Thanks,
Chuck
|
You will have to alter the forum table with a mysql command
alter table forum add column
column definition
the new field will be available in $foruminfo, which itself is set when you call global.php
Of course populating said field is another matter entirely.
I am not a big fan of modifying core vb tables. I always set up a second table in my own db which keys on forumid (or whatever key is appropriate), then store/fetch to that table as needed.