PDA

View Full Version : New to VBulletin programing


CoolHandLuc
02-07-2009, 07:47 PM
Hi, I am new to the site and to programing for VBulletin application. I have been a programmer for more then 10 years, have no problem with PHP and MySql programing.

I got a small contract to create a small application to embed into VB. If this work well then other project will follow. Now my main question is can you lead me to ressources and tutorial on how to embed my application.

I think the left menu block we have in the usercp left panel are called postbit. I need to create a page similar to private message but central page is my app and I need a posbit on the left menu to list on top left.

App is one page and I need these on it:
Top need header
nav bar
Google add
Left postbit on top plus other usual one
Central area is my small application
footer elements

I need to validate moderator eventually also and want to do it VB style too, not by passing. But I have seen some var and should be ok on that. It's mainly how to embed it and follow VB style using vb class , style class as well (skin).

So any good link to start me off would be greatly appreciated.

Luc

Lynne
02-07-2009, 08:05 PM
See either of these articles on how to create your own vb page (will have a header, navbar, footer, the same colors, etc.) - How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc. (https://vborg.vbsupport.ru/showthread.php?t=98009)

Take a look at the Articles forums those articles are in also.

CoolHandLuc
02-07-2009, 09:35 PM
Thank you Lynne, maybe one more question, how do I create a new template like they say in the tutorial : Create a new temple and paste the code?

Just don't know how to go to create the template.I guess it must be done vis the adminpanel?

Lynne
02-07-2009, 09:38 PM
Admin CP > Styles & Templates > Style Manager > find your style in the list that you want the template in > Add New Template from the drop down. Give it a Title and then paste the html into the Template box and Save (or Save and Reload).

Dismounted
02-09-2009, 05:14 AM
Also look at the vBulletin Manual (http://www.vbulletin.com/docs/html).

CoolHandLuc
02-10-2009, 03:40 AM
Thanks for the info, this morning I started to embed my application inside VBulletin and got it working. Mainly this is a stand alone application added to the forum.

Now my next step is to use the native database connection to query my tables. Of course I will use PREFIX for the table name and will create a install script. So I have to learn how to work my query and do the conversion.

Any link to install scrip tutorial and how to work database within VB would be appreciated.

For my Template, I made a general template that any of my application will be able to call, mainly one big variable between the nav bar and footer. But I need to be able to automate that part in my install script as well. Once I have done this the project should be ready to show to the owner of the forum who ask me to do this project.

Dismounted
02-10-2009, 04:55 AM
If you haven't already, there are many useful articles in the articles section (such as using the vBulletin database object).

CoolHandLuc
02-10-2009, 12:50 PM
yes just found that article, must have been tired yesterday since I did browse them all by title and did not even see the search tool on top :(

Now the conversion should be easy and then back in leaning how VB evalute permission and install script.

I also cought up on VB function to prevent injection. Neet implemention with all the class. Since I will be coding more projects and probably full time for VB, I am set for daily reading on this site. I apreciate the help to start me up. Hope to be able to give back some day.

Luc