vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Products/Plugins v3 >> v4 (https://vborg.vbsupport.ru/showthread.php?t=319016)

jagtpf 06-10-2015 08:53 AM

Products/Plugins v3 >> v4
 
Hi guys,

Just wondering what's the main difference(s) between v3 & v4 that affects plugins & products.

Is it name changes etc....?

Have got some successful products on v3 that haven't been upgraded to work on v4; so wondering if there's a short guide to the difference...Or someone could explain.

Geoff

jagtpf 06-19-2015 01:07 PM

This template, from v3 does not show the necessary image(s) - but the remainder of the routine works. (Phew!)

Would someone care to give pointers on what changes I need to make to the code ...

Error is

Quote:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: postbit_critlevel in C:\xampp\htdocs\*****\includes\functions.php on line 4602
The plugin is hooked to postbit_display_complete.

As you can see I'm LOCAL testing using xampp.

<img src="$ImagePath" style="width: 16px; height: 16px; border: 0px;" alt="$CritiqueLevel" /> <b>$CritiqueLevel</b> <br />

kh99 06-19-2015 01:16 PM

Yeah, probably the biggest change from vb3 to vb4 was the template system, but there are other differences depending on what you're trying to do.

Here's an article that shows how to render templates in vb4: https://vborg.vbsupport.ru/showthread.php?t=228078

jagtpf 06-19-2015 01:42 PM

Quote:

Originally Posted by kh99 (Post 2548219)
Yeah, probably the biggest change from vb3 to vb4 was the template system, but there are other differences depending on what you're trying to do.

Here's an article that shows how to render templates in vb4: https://vborg.vbsupport.ru/showthread.php?t=228078

Chuckles !

I'm half way through that article when you wrote this !

Cheers ..... :D


All times are GMT. The time now is 04:11 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.01050 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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