vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How hard would this be? (https://vborg.vbsupport.ru/showthread.php?t=70103)

Radon3k 10-02-2004 06:06 PM

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. :)

Velocd 10-02-2004 06:38 PM

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.

Radon3k 10-02-2004 07:09 PM

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. :)

Radon3k 10-03-2004 04:30 AM

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! :)

Brad 10-03-2004 04:40 AM

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.

Radon3k 10-03-2004 04:44 AM

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. :)

SteveMoody 10-03-2004 11:58 AM

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.

nexialys 10-03-2004 12:11 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=61112" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=61112</a>

Radon3k 10-03-2004 08:08 PM

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! :)

Radon3k 10-03-2004 09:23 PM

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. :)


All times are GMT. The time now is 04: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.01065 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete