vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vB4 Alpha Testers - Plugins (Want to know if these will work) (https://vborg.vbsupport.ru/showthread.php?t=225432)

James Birkett 10-17-2009 12:22 PM

vB4 Alpha Testers - Plugins (Want to know if these will work)
 
I posted here because it's still code modification which doesn't belong at the com

This is mainly aimed at any vB4 alpha testers.

I have a few one-liner plugins and was wondering if they would work with the new vB4.

I'm using this line:
PHP Code:

if(can_moderate($this->forum['forumid'])) 

Is this valid vB4 syntax? Do they still use can_moderate etc?

Also, what about the $show array?
Are:
PHP Code:

$show['reportlink'

and
PHP Code:

$show['infractionlink'

still valid for vB4?

I realise this is probably premature, but i'd like to know anyway ;)

Thanks in advance.

Lynne 10-17-2009 02:44 PM

Most likely they are fine. But, you won't know until you go and install the plugin on your own vb4 forum.

There are several blogs about the new vb4 syntax over on vb.com. You may want to go take a look at them. Most of them have to do with new syntax in the templates. php code, is php code and that will still work. But things like eval templates is done differently.


All times are GMT. The time now is 02:55 PM.

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.00987 seconds
  • Memory Usage 1,709KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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