Active
Project:
SMFforum Integration module
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2008 at 15:43 UTC
Updated:
8 May 2008 at 18:47 UTC
Can you explain how the SMF user id number relates to the drupal user id? I was expecting the user id numbers to match, but this isn't the case.
My objective is to redirect the SMF profile pages to the drupal pages - this would be an easy .htaccess rule if the UID for each was the same. However, it appears to be different - can you explain how the mapping works?
Thanks, Stephen
Comments
Comment #1
vb commented>how SMF user id number relates to the drupal user id?
ids are absolutely independent and no way to match them in this bridge.
It is a smart, non stupid bridge which not expects that ids must be identical.
It compares usernames.
Comment #2
scedwar commentedThanks,
What I'm therefore looking to do is edit the smfforum code for the profile page to redirect to the Drupal user page. Is there a simple function within your api where I could give the smf user id and return the drupal user id?
For example,
int get_drupal_id(int $smf_user_id);Comment #3
vb commentedthere is no this function in current ver. but can be written
Comment #4
vb commented1) Insert somewhere in smfforum.module
2) set define('SMF_MODULE_DEBUG', 1); to see the output
3) enjoy if it helps you
It is the personal gift to you but no more lines and answers to this feature, it is not in the plans of current developement, sorry.