vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-To] Fieldname reference (https://vborg.vbsupport.ru/showthread.php?t=123144)

Sean S 08-04-2006 10:00 PM

[How-To] Fieldname reference
 
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:
Code:

Phrasetypeid                Fieldnames

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

The rest:
Code:

* 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.


All times are GMT. The time now is 07:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01164 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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