PDA

View Full Version : Integrate PHP Script


tr0ll
06-18-2014, 03:40 PM
Hi, i write php script, its like: users can create their own list, and it can be seen at lists.php but i want to integrate this script to vBulletin.
I dont know how to do, i am a php coder but i never write anything for vBulletin before. Can anyone help me out for how can i integrate one php script to vbulletin or, code directly for vbulletin. Like variables, including files, functions etc..

kh99
06-18-2014, 03:50 PM
I think this is a good place to start: https://vborg.vbsupport.ru/showthread.php?t=62164

If you have any more specific questions about functions and variables that are available, just ask and we'll try to help.

tr0ll
06-18-2014, 03:58 PM
Sorry for my English Kevin. So, i checked out url that you are given to me. With that information i can create my own page with or without vBulletin files including it. I see. But i want my users can create list in a vBulletin page, and that list can be changed, deleted or liked. And i want to do all these things in vBulletin. I want to use member profile, admincp(to control and change list options), postbit etc.

I think ım asking you to Wiki for beginners vbulletin modificationers. I hope i can explain to you. Thanks for your help, regards.

kh99
06-18-2014, 05:04 PM
I think I understand what you mean. Unfortunately, I don't believe such a thing exists. You can search the articles and search the forums here, and you can look for mods that already exist and see how they work. When I answer questions here I often read the vbulletin source code to figure things out. I know that's a lot of work, but I'm not sure what else to tell you.

I think there's a common misconception among beginner mod developers (at least I know it's one I had) that there should be some kind of api to do the things you'd want to do, but in fact there isn't. There are "hooks" at certain strategic locations where you can insert php code, but what you can do at a given hook location is not well-defined, it just depends on where in the vbulletin code they decided to put a hook.

I hope that makes sense, I guess English is not your first language so I hope it survives translation. :)

tr0ll
06-18-2014, 06:10 PM
Yep, it is not my first language. I can understand you but my grammar is really awful. However, thanks. I will try hooks way without a single php file. Lets see what happens ^_^