![]() |
Auto-creating New Threads from Pages External to vBulletin
I just tried searching the forums for related keywords, but I didn't spot anything relevant....
I am in the process of integrating our new vBulletin installation, which is installed in a sub-folder of our main site, with an existing database of thousands of Q&A pairs on various topics related to small business ownership at askjim.biz. When visitors of our web site read one of our answers on a given topic (these answers already exist in our sizeable database), we need them to be able to click on a link and discuss that topic in the forums. If a thread for that answer already exists in the forum, the link should take them to that thread. If it does not yet exist, we need the forum software to (probably prompt the visitor to) create a new thread. Presumably, I'll need to pass through the answer ID for that Q&A pair from our existing database (and probably the name of the topic as well) to the vBulletin software. The vBulletin support staff has pointed me to their Data Managers documentation and to this forum as leads for how to get started with this task. I've studied the Data Managers documentation, but it's still not really clear to me how to start tackling this task. Clearly, the Data Managers feature is powerful, but I likely only need a tiny subset of what it can do, and I'm not sure where to begin with actually integrating it into our site and the vBulletin software to achieve the desired result. And just to provide a little personal background, I'm a fairly experienced PHP programmer, but the kind of guy who learned it by doing it on sites rather than by taking courses in object-oriented programming or whatever. So I'm a little slow with the jargon sometimes. ;-) Hopefully someone out there has experience with this kind of integration work, and can either give me some suggestions or point me toward another thread or tutorial on how to tackle this issue? Thank you in advance for any help you can provide! Joshua |
The datamanager would be the way to go, it is VERY flexible, no matter how much or little you want to achieve with it. Have you looked at the vBulletin Manual regarding Datamanagers?
|
Dismounted,
Thanks for your reply. Yes, I have read the section on Data Managers in the vBulletin manual. That was what I meant when I said I had "read the Data managers documentation." However, reading that section really wasn't enough to get me pointed in the right direction, as I explained above. Can anyone offer further assistance? Is there anyone out there who's tried to do what I'm trying to do? Some kind of sample code, or explanation of how data managers would be applied to the problem I'm trying to solve, would be very helpful. I hope I'm not missing anything obvious, here. (If I am, please let me know what it is!) Thanks, Joshua |
Take a peek at newthread.php, it uses the datamanager to create threads.
|
Ah, thank you! I will do that and post back here to let you know how it goes.
In the interim, here's a question I'm almost certain will come up: Whereas newthread.php is inside the vBulletin folder and code hierarchy, the pages in which I'll need to put the links to create new threads will, by necessity, be located outside the vBulletin folder. Will I need to do something special to incorporate elements of the code hierarchy on those outside pages? |
When you write the code to initialise the vBulletin data (require_once('./global.php');), you will need to change the directory, like this:
PHP Code:
|
All times are GMT. The time now is 03:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|