PDA

View Full Version : tags contenttypeid?


al3bed
02-04-2011, 07:28 PM
hello

I want to use vbulletin tags in add-on but there is something I can't understand yet, it is in database Table: tagcontent field contenttypeid ..

I notice that if it's blog tag id is 15
and id become 2 if it's a thread tag

so if I want to insert tag for another content type of my own programming I know what I will put in each field in table tagcontent and table tag except for contenttypeid field .. is it right to put specific id rather than 15 and 2

thanks for your attention

Lynne
02-04-2011, 08:16 PM
You have a contenttype table where you can find that info. If you are creating a modification, however, you will want to do a quick query of that table to find what contenttypeid is assigned to your contenttype since some people have added other stuff to that table and your contenttypeid for xxxx may not be the same as someone else's.