PDA

View Full Version : [How-To] Fieldname reference


Sean S
05 Aug 2006, 22:37
Phrasetypeid => Fieldname

With the release of vbulletin 3.6 gold I know that many of you will try to upgrade your boards to the latest version and many of you will try to upgrade your older hacks and mods for the latest vbulletin version.

That's what I did, however, during this process and reading the vbulletin announcements, I noticed that 'phrasetypeid' has been replaced with 'fieldname'. This has caused some of the vb 3.5 hacks to stop functioning after the upgrade with errors referencing to 'phrasetypeid'.

Now as for it's full functionality, I'm not 100% sure so someone has to correct me if I'm wrong, but what 'fieldname' does is that it let's you select the phrase category that the phrases are stored in.

Here I'm going to list the changes that have taken place to make it easier for you to find the changes that have taken place. In the older version of vbulletin, phrase categories or their type was referenced by a number. For example, the number 5000 represented 'vbsettings',

You can also find this reference in the 'upgrade_300b3.php', on step 24.

Mostly used:

Phrasetypeid Fieldnames

* 1000 --> fronterror
* 2000 --> frontredirect
* 3000 --> emailbody
* 4000 --> emailsubject
* 5000 --> vbsettings
* 6000 --> cphelptext
* 7000 --> faqtitle
* 8000 --> faqtext
* 9000 --> cpstopmsg


The rest:

* 1 --> global
* 2 --> cpglobal
* 3 --> cppermission
* 4 --> forum
* 5 --> calendar
* 6 --> attachment_image
* 7 --> style
* 8 --> logging
* 9 --> cphome

* 10 --> promotion
* 11 --> user
* 12 --> help_faq
* 13 --> sql
* 14 --> subscription
* 15 --> language
* 16 --> bbcode
* 17 --> stats
* 18 --> diagnostic
* 19 --> maintenance

* 20 --> profilefield
* 21 --> thread
* 22 --> timezone
* 23 --> banning
* 24 --> reputation
* 25 --> wol
* 26 --> threadmanage
* 27 --> pm
* 28 --> cpuser
* 29 --> accessmask

* 30 --> cron
* 31 --> moderator
* 32 --> cpoption
* 33 --> cprank
* 34 --> cpusergroup
* 35 --> holiday
* 36 --> posting
* 37 --> poll
* 38 --> fronthelp
* 39 --> register

* 40 --> search
* 41 --> showthread
* 42 --> postbit
* 43 --> forumdisplay
* 44 --> messaging


Hope this helps someone out. I just posted this cause many of the tutorials here helped me out and I always use them as a reference when upgrading or creating a mod.