Please Log in to join the conversation.
Please Log in to join the conversation.
I've posted for this before but I might not have been real clear in it.
How can I place a call to a new user's profile right after that person registers?
The reason I need the user's profile to be called up right after registration is because I use sh404sef to rewrite the url to a short url such as www.oohya.net/user/ but if someone tries to use the short url before that profile has been called then it returns a 404 error as sh404sef has not yet been able to write the profile to the database.
This is especially an issue from my chat applet as it has to call a profile by username and not userid. With sh404sef on the only format that works from chat is "www.oohya.net/%user%/. Before I started using sh404sef I used www.oohya.net/index.php?option=com_comprofiler&task=userProfile&user='%USER%' but that no longer works with sef on.
I've talked with the creator of sh404sef and here is what he said:
"Actually, they don't even need to display the sef url. They just have to
place a call to the sef function like so :
$dummyURl = sefRelToabs('www.oohya.net/index.php?option=com_comprofiler&task=userProfile&user='%USER%')
(replace sefRelToAbs() by Jroute::_() for Joomla 1.5)....
in the right place in community builder, just after creation of user happens, is enough. The url is created when the sefRelToAbs() function is created....
It should be placed just after cb has created the user in the database. I don't know cb, but the author should be able to tell you very easily."
So first would this string actually do the job? And second, what file should it be placed in and where?
I've tried it in a few spots in the cb.core as well as the comprofiler.php files but nothing I do seems to work.
Does anyone in here know how to do this correctly?
Post edited by: sfraise, at: 2008/10/12 00:22
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.