Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2009, 07:47 PM
CoolHandLuc CoolHandLuc is offline
 
Join Date: Feb 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New to VBulletin programing

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
Reply With Quote
  #2  
Old 02-07-2009, 08:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc.

Take a look at the Articles forums those articles are in also.
Reply With Quote
  #3  
Old 02-07-2009, 09:35 PM
CoolHandLuc CoolHandLuc is offline
 
Join Date: Feb 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 02-07-2009, 09:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 02-09-2009, 05:14 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also look at the vBulletin Manual.
Reply With Quote
  #6  
Old 02-10-2009, 03:40 AM
CoolHandLuc CoolHandLuc is offline
 
Join Date: Feb 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-10-2009, 04:55 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you haven't already, there are many useful articles in the articles section (such as using the vBulletin database object).
Reply With Quote
  #8  
Old 02-10-2009, 12:50 PM
CoolHandLuc CoolHandLuc is offline
 
Join Date: Feb 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:46 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
  • Page Generation 0.04151 seconds
  • Memory Usage 2,221KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete