Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Jun 2013, 23:24
tapatalk tapatalk is offline
 
Join Date: Nov 2012
Angry 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!
Reply With Quote
  #2  
Old 06 Jun 2013, 06:26
tapatalk tapatalk is offline
 
Join Date: Nov 2012
Anybody can help?

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

Thanks.
Reply With Quote
  #3  
Old 06 Jun 2013, 19:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #4  
Old 07 Jun 2013, 08:57
tapatalk tapatalk is offline
 
Join Date: Nov 2012
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.
Reply With Quote
  #5  
Old 07 Jun 2013, 10:01
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
vBulletin 5 doesn't have php hooks currently.
__________________
Looking for ImpEx?
Reply With Quote
  #6  
Old 07 Jun 2013, 18:47
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
As Zachery said, there are no php hooks so I really don't understand what you are trying to do.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 07 Jun 2013, 19:34
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
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.
Attached Files
File Type: zip ExtensionsAndHooks.zip (95.9 KB, 142 views)
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Reply With Quote
  #8  
Old 08 Jun 2013, 04:10
tapatalk tapatalk is offline
 
Join Date: Nov 2012
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.

Last edited by tapatalk; 08 Jun 2013 at 04:18.
Reply With Quote
  #9  
Old 08 Jun 2013, 12:32
Shadow's Avatar
Shadow Shadow is offline
 
Join Date: Jan 2011
Location: Planet Earth
There isn't much else in terms of API documentation as far as I'm aware.
Reply With Quote
  #10  
Old 09 Jun 2013, 05:44
tapatalk tapatalk is offline
 
Join Date: Nov 2012
So what should I do now?Stop my work and wait the detailed document for api extension?
Reply With Quote
  #11  
Old 03 Aug 2013, 00:20
trancegodly trancegodly is offline
 
Join Date: Jul 2013
Originally Posted by Wayne Luke View Post
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.
Thank you so much for this, sadly your pdf's have more info then the manual for 5.0.4 lol.
Reply With Quote
  #12  
Old 21 Oct 2013, 23:59
tapatalk tapatalk is offline
 
Join Date: Nov 2012
Originally Posted by Wayne Luke View Post
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.
Hello,

I tried to write some extension code as your gave pdf document,but when I call the method in template it does not work.

The following is my code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I called the method in template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

How can I make this work?

And I remembered that there are some xml folder and file need to be maked inside the package folder,should I create xml folder for the extension,but I do not know how to make the xml file for the extention api?

Thanks.


Btw:
I'm Tapatalk Tom Wu,We may need vBulletin official team to give us more guide on the VB5 plugin development,and we may can start more deep technical cooperation with your company.

Any help would be appreciated.

Last edited by tapatalk; 22 Oct 2013 at 04:06.
Reply With Quote
  #13  
Old 23 Oct 2013, 06:31
tapatalk tapatalk is offline
 
Join Date: Nov 2012
Is there any solutions for it?

Thanks.
Reply With Quote
  #14  
Old 26 Oct 2013, 08:43
tapatalk tapatalk is offline
 
Join Date: Nov 2012
Can not get any help from here and official side?
It is disillusionary.
Reply With Quote
  #15  
Old 26 Oct 2013, 12:15
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
This is a community based site, you might want to ask questions about what isn't working, or what is working, or what exactly is going wrong.
__________________
Looking for ImpEx?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:36.

Layout Options | Width: Wide Color: