vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   How to include php file in my template plugin? (https://vborg.vbsupport.ru/showthread.php?t=298770)

tapatalk 06-05-2013 09:24 PM

How to include php file in my template plugin?
 
Hi:
I'm developping plugin on vb5.
I want to know how to include a separated php file in my template?
And there are some many limit on vb5 template syntax,I can not write php code freely in template.So what should I do?
Any help would be appreciative!

tapatalk 06-06-2013 04:26 AM

Anybody can help?

Need include my php file in vb5 template or freely write php code in template,any other solutions?

Thanks.

Lynne 06-06-2013 05:03 PM

Why don't you just use a PHP module? Is that what you are trying to do and you just want to include a file in it instead of putting the php directly in there?

tapatalk 06-07-2013 06:57 AM

Hi Lynne:
Thank you for your reply.
I'm developping hook for vb5,I need include php file or write many php code for my hook.As you know vb5's hook need binding template,and vb5 template syntax has many limit and I can not freely write php on it.So do you have any advice and guide for this requirement?
Thanks.

Zachery 06-07-2013 08:01 AM

vBulletin 5 doesn't have php hooks currently.

Lynne 06-07-2013 04:47 PM

As Zachery said, there are no php hooks so I really don't understand what you are trying to do.

Wayne Luke 06-07-2013 05:34 PM

1 Attachment(s)
I've uploaded some basic documentation on API Extensions and Hooks to here.

The addon system in vBulletin 5 is different and the idea of PHP Plugins embedded in the database should be discarded. You probably will not be able to simply update your existing plugins, you'll need to rewrite how you retrieve information from the API or have your app call the API directly.

tapatalk 06-08-2013 02:10 AM

Hello Wane Luke:
You gived documents package 'ExtensionsAndHooks.zip' looks great.Maybe I need develop a extension and api extension for our plugin to implement my special requirements?
But I think the documents you gived is not detailed enough?We want a detailed document for describing how to make extension and api extension step by step,and need make install package for it.I can not find any valid document in vb5 online document pages for extension or api extension:
http://www.vbulletin.com/manual/

Thank you very much.

Shadow 06-08-2013 10:32 AM

There isn't much else in terms of API documentation as far as I'm aware.

tapatalk 06-09-2013 03:44 AM

So what should I do now?Stop my work and wait the detailed document for api extension?


All times are GMT. The time now is 02:19 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.00979 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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