ahh, I didn't read well enough. My bridge gives you the option to sync usernames or realnames, both for the initial installation sync and for the synchronizations that occur when new users register.
Again thanks for the replies on this...I'm a little lost now (not hard! )
I've installed JSMF 2.0 and its awesome, installed a breeze!
However, the Real Names are still showing. I've used the sync option and it says its all synced fine (if I look in SMF backend it actually lists all of my members usernames and then their real names next to them)...So it all looks good.
However, Real Names are being used on the posts rather than the Usernames. Is this something the sync is meant to convert (keeping in mind I used the old SMF converter script to pull all the threads over from Joomlaboard into SMF)...Or do I need a custom solution to get SMF to use the Usernames?
I can see the Usernames there so SMF sees them its just not using them...I thought there might have been an option with SMF itself to use the Usernames rather than Real Name but couldnt see one.
understand that the real name or username is set when you synchronize. So if a member is already in both db tables then performing a synchronization will not work for that member.
The question is if a new user registered shows username or real name.
I didn't actually get the "sync username" and "sync real name" options initially...I got the "VERIFY" option which when clicked didn't produce any errors.
I reinstalled now and actually see the correct options.
I've clicked "sync usernames" and it produces the following error:
Joomla/Mambo[0] / SMF[673] inserted Failed :
Is this a problem? 673 being the number of members I have on this particular Joomla install. However, the users seem to be ported over the forum fine as I can see them all there.
EDIT: Ive tried the converter script again...Seems I am getting closer to fixing this. One thing I am hoping you can shed some light on...
After running the script it works as it should bringing everything over, but it seems to knock out the avatar setup.
The avatar/pic the user chose in CB was displayed on the forum, but now the avatar in the forum is broke, its looking at:
Unsure why its removed whatever was there that was connecting the avatar with CB. When clicking on View Profile in SMF though, it does go to the users CB profile.
« Last Edit: September 12, 2006, 12:10:46 PM by Tom »
welllllllllll..... thats because I haven't added avatar sync when you click sync unames or sync realnames. I simply ran out of time and wanted to get JSMF 2.0 Beta out before I started job searching(got laid off). You are running 2.0 right(even though this is in the 1.1.x forum)? That will be the first thing I fix in the next version. I will also probably make the avatar sync functionality separate as well for users like you who have already sync'd their avatars.
What I meant was, when installing the bridge and not using the converter, the url's of avatars were automatically pointing toward CB's avatar folder...Even if the image was not there/broke image. After running the converter it was pointing at SMF's avatar directory.
It seems to work fine if I change the URL in the SMF admin, point it at the CB Pic/Avatar folder, get the user to reupload the avatar and bingo...Working
I've got a freelance php/mysql coder to take a look at the Real Name issue, he seems to think he can write a little script that will convert the Real Name to Username.
Sorry if it seemed I was badgering you...I didn't mean to come across like that and do appreciate your help
I'll be making a donation for the bridge shortly...Least I can do for all your help really
I didnt' feel you were badgering... simply helping me make the bridge better. The sql script should be pretty straight forward, update smf_members set realName = (select memberName from smf_members sub where smf_members.memberName = sub.memberName)
Everything working great now. One slight problem that has cropped up, since signatures don't work (if updated in CB) yet and a user tries to update their signature in CB...It reverts their username back to Real Name.
I've not been able to establish whether updating other aspects of their profile will result in a revert of the username to real name...I'll test later.
I guess possibly a temp fix will be to have the query run every 30 minutes or something.
no, the fix would be to either adjust the user update from CB so that that doesn't happen or run the same username/realname query on the joomla user table as well.
When I run the same query (with slight alternation) on the Joomla Users table, it converts the real names to Usernames in the Joomla members table...That I dont mind too much...However when it does this is breaks the login. Users are unable to login.
The other solution you said...I am unsure how to stop CB directly from altering this. I posted a thread on their forum but no reply yet.
« Last Edit: September 15, 2006, 11:37:53 PM by Tom »
After playing around with it abit more it still seems to break the login and users are unable to login at all when converting the Real Name field in Joomla to usernames.
Would it cause any issue if I was to set up the query to run every *insert number of minutes* to fix this issue? Is it likely to break anything in the bridge?
So you want to disable Real Names altogether in Joomla? You could probably write a CB plugin to register on the event onBeforeRegistration and then change the realname to the username. Don't write something that runs every X minutes, that is a bad move.
The CB forums should be good help in writing this plugin.
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved. Terms of Use