Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 09-28-2003, 10:59 PM
UnrealAnt UnrealAnt is offline
 
Join Date: May 2003
Location: United Kingdom
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Integrating vB with my own CMS

I'm sure this is a question which has been asked a million times, so hopefully there'll be a fairly simple answer.

I'm in the process or programming my own Content Management system however I'd like to integrate it with vBulletin (since it seems pointless for my visitors to have to register to use certain features on the site, and then register again to use the forums). Obviously this means that I need to write a wrapper for many of the vBulletin functions, as well as try to reproduce sessions.php such that it works on the CMS.

However I'm not really sure where to start with this. Has anyone any experience with this kind of thing? To make it even more troublesome, I'm trying to integrate with vB3. I appreciate that hacking vB3 is currently not supported over here at vBorg so even if you can only give advice which related to vB2, I should be able to apply it to vB3

Thanks all,

Ant
  #2  
Old 09-28-2003, 11:21 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are writing the cms yourself why not just start it from base using vb3.

Seems the most logical unless you plan to release it as a stand alone as well.
  #3  
Old 09-29-2003, 08:42 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UnrealAnt
However I'm not really sure where to start with this. Has anyone any experience with this kind of thing?
Why don't you try to check source codes of already existing hacks to get an idea where to start? For instance check Webtemplates Hack.
  #4  
Old 09-29-2003, 03:12 PM
UnrealAnt UnrealAnt is offline
 
Join Date: May 2003
Location: United Kingdom
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I took a quick look at Webtemplates and it seems that all it does is include the vBulletin global.php which means that it's not so much "integrated" with vBulletin as it is a "part" of it.

My problem is that I'm not simply trying to use the vBulletin "user" table, but also trying to generate a vBulletin session whenever someone views a page on my site. I'd prefer to be able to do this using one class without having to include a couple of thousand lines of vBulletin code.

Any advice is appreciated.

Thanks
  #5  
Old 09-29-2003, 03:35 PM
UnrealAnt UnrealAnt is offline
 
Join Date: May 2003
Location: United Kingdom
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just found a good example of the kind of thing I'm looking to achieve however as I said, I'm looking to be able to create sessions as well has handling authentication.

https://vborg.vbsupport.ru/showthrea...ight=vbulletin
  #6  
Old 09-29-2003, 04:53 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is always the best practise to include "global.php" in a vb integration project as it will allow you use all vb class&functions/template system in your code as well as vb will be handling all of your concerns like user/session authentication etc. So I don't see the point of avoding such an inclusion considering the fact that you are after a vb integrated solution.

But if it is what you want, I guess your path is clear enough:
Create a form that will ask username/password via HTTP_POST, MD5 the password and check the entry inside user table by getting user's record. Assign him a cookie if he is a cookie user or sessionhash if he is a session user and if you like, insert a new record in session table.

Well global.php inclusion would do all of these for you automatically but you asked for it.
  #7  
Old 09-29-2003, 05:16 PM
UnrealAnt UnrealAnt is offline
 
Join Date: May 2003
Location: United Kingdom
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
It is always the best practise to include "global.php" in a vb integration project as it will allow you use all vb class&functions/template system in your code as well as vb will be handling all of your concerns like user/session authentication etc. So I don't see the point of avoding such an inclusion considering the fact that you are after a vb integrated solution.
Meh, I guess you're right really. For the moment I'll try including the vB3 global file and perhaps come up with something more elaborate at a later date.

Thanks.
  #8  
Old 09-29-2003, 05:19 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do not see why (if only for vb site) not use global.

All the functions that are built in make it the best route to go. Look at most "intergrations" by pro's they mostly have cookie issues.

With the global that is solved.
  #9  
Old 12-28-2005, 03:21 AM
ConKien ConKien is offline
 
Join Date: Apr 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by insanctus
I do not see why (if only for vb site) not use global.

All the functions that are built in make it the best route to go. Look at most "intergrations" by pro's they mostly have cookie issues.

With the global that is solved.
I tried to included global.php file to phpnuke but it breaks the script! I guest nuke has its own data abstraction layout that conficted with vb functions.
  #10  
Old 12-28-2005, 06:07 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thread is over 2 years old, no reason to reply to it anymore.
Closed Thread


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 10:14 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.04222 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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