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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2004, 06:06 PM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How hard would this be?

I'm developing a site and the original plan was to have a registration system for the main site that allows users to post reviews. I'm also going to be using vBulletin for the forum. This has me now thinking that I probably should just use the forum registration system for the main site. I don't want a portal and in fact I don't want the main site to have statistics from the forum on it (such as latests posts, etc). The only thing I want to integrate would be the registration system so tha the users can log in and use the main site. I may also integrate a number of users online (not a who's online, though). How hard would this be to do? Thanks.
Reply With Quote
  #2  
Old 10-02-2004, 06:38 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be very easy to do.

Just ensure to require_once 'path/to/forum/global.php'; on every PHP file outside of the forums directory, so to tie it in with the forum system.
Reply With Quote
  #3  
Old 10-02-2004, 07:09 PM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Velocd
This would be very easy to do.

Just ensure to require_once 'path/to/forum/global.php'; on every PHP file outside of the forums directory, so to tie it in with the forum system.
Thanks but that royally screws up my main site, especially if the board is turned off. Is there an easier way to get the login code only? I want to be able to put a small phrase that tells them they aren't logged in. Thanks.
Reply With Quote
  #4  
Old 10-03-2004, 04:30 AM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Radon3k
Thanks but that royally screws up my main site, especially if the board is turned off. Is there an easier way to get the login code only? I want to be able to put a small phrase that tells them they aren't logged in. Thanks.
Can anybody assist with this, please? Thanks!
Reply With Quote
  #5  
Old 10-03-2004, 04:40 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to base login's on your main site soley on cookies it is easier to do. If you want to mimic vB's way exactly your are going to have to get creative with your main site. Your going to have to deal with the session hash for instance.
Reply With Quote
  #6  
Old 10-03-2004, 04:44 AM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brad.loo
If you want to base login's on your main site soley on cookies it is easier to do. If you want to mimic vB's way exactly your are going to have to get creative with your main site. Your going to have to deal with the session hash for instance.
Well I don't want them to register on the main site, I can provide a simple link to that. I just want them to be logged in before they can post a review. In fact, they don't even have to login on the main site, they can login on the forums but when they visit the main site, I want the main site to be able to tell whether or not they are logged in, and if they are, then allow them to do whatever they need, and if not, then post a link to the forums. I hope that makes sense. If so, how hard would it be to do this? Thanks.
Reply With Quote
  #7  
Old 10-03-2004, 11:58 AM
SteveMoody SteveMoody is offline
 
Join Date: Jul 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at the HTML for the login box on the VB page. You should be able to duplicate this code on your page and it will allow you to log in using vb.
Reply With Quote
  #8  
Old 10-03-2004, 12:11 PM
nexialys
Guest
 
Posts: n/a
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=61112" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=61112</a>
Reply With Quote
  #9  
Old 10-03-2004, 08:08 PM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
Thanks nexialys, but the problem with that link is that it uses global.php and that interacts with the forums which means if the forums are turned off then it shows that huge vBulletin box on main page and I don't want that.

@SteveMoody: I'll take a look at it and see what I can find. Thanks!
Reply With Quote
  #10  
Old 10-03-2004, 09:23 PM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps I'm not looking in the right place, but where would I find the HTML login code for vBulletin? I've looked in index.php and the FORUMHOME template and didn't find it in either. Am I just not looking in the right place? Thanks.
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 02:43 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.06884 seconds
  • Memory Usage 2,251KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete