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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2002, 03:30 AM
dlst dlst is offline
 
Join Date: Dec 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This actually isn't a hack request... I've almost completed it. This is what it does:

A client wanted it so that there was a "unified login" to his site. When a user logs into the site, they are automatically allowed entrance to the whole site... they don't have to log in again when going from boards to classifieds.

It works like this (so far):

Registration and login links in the classifieds get redirected to vb login/registration with a $redirect value.

Login/registration in vb is modified to write to the classifieds database with the approprate user info, and it sets the correct cookie info for the classifieds so the user can go back and forth seamlessly.

Since the cookie is set, when they go to the classifieds, they are logged in and can make whatever changes are necessary to the admin panel in that script, independent of vb.

It's tricky... we don't want the user to screw up the data... for example:

What if the user registers in vb, vb sets up the account in classifieds and everything's cool... until the user goes to the classifieds control panel and changes his password... well this would break the system, since vb would have one password and classifieds would have another. What about all the other info?

The way I got around this is by NOT allowing a user to change their password in classifieds (the option is simply disabled). All the other data, they can change, since none of that appears in the cookie, the data integrity between the apps stays clean.

Now granted, a user could have one address set in classifieds, and other info in vb, but on this system, we'll give them the benefit of the doubt.

Vb is further modified to change the classified database when a change to the password is made, and the cookie gets reset, so that pretty much covers logging in and out...

But what about banning? Deleting users?

In this case I'll treat the vb database as the master... there is a utility script that runs on a cron from time to time and "syncronises" the user databases. Actually all it really does is check to see if there are any users existing in the classifieds that for one reason or another don't exist or are not valid in the vb database. If a user is found that shouldn't be there, they are removed according to how the classified script normally handles it.

------

Sorry for the long post... if you're still reading thankyou... and let me know your thoughts. Has anyone had any success or failures with this? I'm sure I'm not the first to try it. Seems easier than writing a classified from scratch.

What a great sister product to vb... a full classifieds that runs of the same structure . Oh well, visions of sugar plums. For now, I have to jerry rig it.

Also, if anyone cares to poke holes in my logic (disjointed as it is) please do so, it's very much appreciated. It'll save in the debugging and testing stage.

-dlst

ps... I'll start a poll to ask how many people are using a classified script in conjunction with vb, and which one they are using.
Reply With Quote
  #2  
Old 04-11-2002, 01:44 AM
cessna140 cessna140 is offline
 
Join Date: Feb 2002
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How's it going? Is it up and running yet? I am interested in this too. Can you post the cron routine to sync the databases?

Thanks.
Reply With Quote
  #3  
Old 07-03-2002, 02:00 AM
Sod Sod is offline
 
Join Date: Jun 2002
Location: New York
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dlst, I'm also very interested in something like this. Any updates?

Thanks
Reply With Quote
  #4  
Old 09-23-2002, 05:47 PM
wacnstac wacnstac is offline
 
Join Date: Nov 2001
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also very interested in this or a hack to VB that would allow me to use a forum as a classifieds sections but automating paying for an add through PayPal or other.
Reply With Quote
  #5  
Old 03-11-2003, 11:44 PM
Dale Brown Dale Brown is offline
 
Join Date: Feb 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm guessing this never went anywhere looking at the dates on the post. Anyone know if this has ever been accomplished. I'm using the Preminum edition of E-Calssifieds
Reply With Quote
  #6  
Old 01-09-2004, 04:10 AM
kneesparx kneesparx is offline
 
Join Date: Dec 2003
Location: sf
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im guessing the same thing
Reply With Quote
  #7  
Old 03-01-2004, 06:33 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this would be nice
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 07:39 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.03858 seconds
  • Memory Usage 2,213KB
  • 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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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