vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   List of changed var/array/function names (https://vborg.vbsupport.ru/showthread.php?t=82632)

Andreas 06-09-2005 09:52 PM

Quote:

god everything i have worked for has to be rewritten, damn u!!!!
That was to be expected :)

As far as I can see $bbuserinfo/$vboptions/$session is being unsed in the Templates.
But I am not sure if this will be changed.

Zachery 06-09-2005 10:14 PM

Quote:

Originally Posted by AN-net
god everything i have worked for has to be rewritten, damn u!!!!

also is $vbulletin->bbuserinfo[] now used in templates and where is official vbulletin.com documentation?

No, the old way still works in the templates.

Zero Tolerance 06-09-2005 11:32 PM

if you're not in the mood to re-write all the variables, you can put stuff like:

$bbuserinfo = $vbulletin->userinfo;
unset($vbulletin->userinfo);

At the top of your files (after you've included the files you require), ofcourse if your embedding code into an existing vB 3.5 php file, like forumdisplay, i wouldn't use the unset function.

It's a quick and easy method, until you get time to properly convert everything :)

- Zero Tolerance

Andreas 06-09-2005 11:33 PM

*cough* functions_legacy.php, enable_legacy() *cough*

Zero Tolerance 06-09-2005 11:36 PM

Quote:

Originally Posted by KirbyDE
*cough* functions_legacy.php, enable_legacy() *cough*

Or that will do too :p I really need to look through the files more.

- Zero Tolerance

calorie 06-10-2005 12:03 AM

Quote:

Originally Posted by KirbyDE
That was to be expected :)

As far as I can see $bbuserinfo/$vboptions/$session is being unsed in the Templates.
But I am not sure if this will be changed.

Can the new way also be used, and if so, what way?

Andreas 06-10-2005 12:11 AM

I doubt so. But to get a definitive answer you should ask the developers :)

calorie 06-10-2005 12:53 AM

Quote:

Originally Posted by KirbyDE
I doubt so. But to get a definitive answer you should ask the developers :)

See this vB 3.5.0 mod, and look at the attached TXT file in that thread. It has <if condition="$vbulletin->userinfo['userid'] != '0' AND... in it, so is it that conditions use the new way, but things to be echoed use the old way, or ???

Zachery 06-10-2005 12:58 AM

Quote:

Originally Posted by calorie
See this vB 3.5.0 mod, and look at the attached TXT file in that thread. It has <if condition="$vbulletin->userinfo['userid'] != '0' AND... in it, so is it that conditions use the new way, but things to be echoed use the old way, or ???

In a conditional, which is executed as raw php code. I could have used $bbuserinfo but I prefered to update and use the new code.

calorie 06-10-2005 01:05 AM

Quote:

Originally Posted by Zachery
In a conditional, which is executed as raw php code. I could have used $bbuserinfo but I prefered to update and use the new code.

Okay, good, but what about vars in templates that just sit there to be echoed? New way or old way? If old, any hint as to what method (new vs. old) will be used in vB 3.5.0 final?


All times are GMT. The time now is 11:16 AM.

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.01342 seconds
  • Memory Usage 1,736KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete