vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Vbulletin 'Hacker' PHP Guru required (https://vborg.vbsupport.ru/showthread.php?t=47096)

sbryan 12-29-2002 09:13 AM

Vbulletin 'Hacker' PHP Guru required
 
Hi Guys, I want to add the following features to my website that has a Vbulletin forum on it.

http://www.xboxworld.com.au/

i want to add some features to let users post comments on the news but they obviously need to enter a username and password to avoid anonymous spamming etc and abuse.

is it possible to access the Vbulletin members usernames and password data in the Vb database in the forum and use that to let them 'login' to other areas of my site that i create?..

i could easily set this up and have two signup areas and user databases on the site, one to add comments and other stuff i want to add and the other for the forum, but if the forum details can be accessed then i can just use the forum as the membership platform for all site members..

thanks in advance for any feedback!

Shane

Xenon 12-30-2002 10:40 AM

in your non vb-files you can also require the vb global.php then you can check if $bbuserinfo[userid]>0.
if it is > 0 then the user is logged in :)

sbryan 12-30-2002 12:43 PM

wow so simple.

so with that it should be pretty simple to build login areas on the other parts of the site that access the Vb database login details then..

but if $bbuserinfo[userid]>0 then i need them to log in, any tips on validating the user via a login form thats on another part of the site as surely its encrypted?

nice stuff, thanks heaps for the help so far!! :banana:

Xenon 12-30-2002 02:01 PM

hmm, you just need to save the special cookies on the users pc, with all the logindetails of the vb-login :)

shouldn't be to hard if you are a bit experienced with cookies :)

sbryan 12-30-2002 09:13 PM

but if the cookie expires or they delete them all for some reason, theyll need to go to the forum, login, then back to the site..

sure there isnt some way to create login areas in other areas of the site that access the forum database for validation?

thanks for the advice so far as well!!!

-shane

Xenon 12-31-2002 01:02 PM

well, you can try to use $logincode in your nonvb site when you have included global.php.

i never used it, but i think it might work

Chris M 12-31-2002 01:09 PM

Either that or you can just use HTML Code to make a form that points to member.php;)

Satan

sbryan 01-01-2003 11:23 AM

ahhh well that certainly sounds easy!!

got a example of a form anywhere that does that?

Ember 01-01-2003 03:59 PM

Just search for "member login from a non vb page" or something along those lines.

sbryan 01-01-2003 10:09 PM

cool. thanks a heap guys. way cool! do you know of any sites that do this already?


All times are GMT. The time now is 10:43 AM.

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.00972 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete