|
Re:Additional Info icons with Community Builder 1 Year, 3 Months ago
|
|
thank you very much this is really useful.
great job
ah, and something which does not regard this plugin but someone might know - is it possible to show the FB contact list when fully integrated with CB.. i like the FB one more, but don't want users to have 2 profiles - the CB and FB ones, it annoys them 
|
|
|
Logged
|
|
|
Last Edit: 2007/09/28 22:50 By begem0t.
|
|
|
?@>10 40;8 @01>B8 :8@8;8F0B0
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 3 Months ago
|
|
|
Thx a lot for the mod! I worked right out of the 'box'.
|
|
|
Logged
|
|
|
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 3 Months ago
|
|
|
It work perfect!
just one issue:
When user update their profile, they must fill in the data again.
(whenever user update profile, the field form will be blank again)
Is it me only facing this problem or this is a bug?
|
|
|
Logged
|
|
|
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 3 Months ago
|
|
|
Works perfekt! Only one wish, is it possible to calculate the AGE of the user instead of showing his Birtday?
|
|
n0fear (User)
Junior Boarder
Posts: 24
|
Logged
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
|
n0fear wrote:
Works perfekt! Only one wish, is it possible to calculate the AGE of the user instead of showing his Birtday?
Good idea, and how can change date format as d/M/Y ?
|
|
|
Logged
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
|
mobilist wrote:
n0fear wrote:
Works perfekt! Only one wish, is it possible to calculate the AGE of the user instead of showing his Birtday?
Good idea, and how can change date format as d/M/Y ?
Although both of these have been ideas I have thought about, I have yet to actually do these yet. This would require several changes and some PHP coding to move things around and do calculations. Now, don't get me wrong, it would be pretty easy to do, I just haven't really had the chance to try. If I get a free moment sometime, I will see what I can do.
-- Scott
|
|
|
Logged
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
|
rockandchelle,
This code is not PHP5 compatible:
[code:1] if ($cbinfo->$fbConfig['cb_gender_field'] != '') { [/code:1]
It returns an error:
[code:1]Fatal error: Cannot access empty property in /home/qsobr3/public_html/components/com_fireboard/template/default/view.php on line 531
[/code:1]
It's the $cbinfo->$fbConfig construct that seems to be syntactically incorrect in PHP5. I suspect that it was a syntax that was slated for deprecation in an older version of php, but was still supported in PHP4. Well, the PHP folks evidently rolled it off the backend, because when I switched my server to use PHP5 to handle everything, it broke.
There in view.php there are many calls to the $fbConfig from line 531 to 578 that need to be fixed. PHP4 supports the non '$'-preceded calls constructed like this: $cbinfo->fbConfig[...
Thanks and great mod by the way.
Dan
|
|
|
Logged
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
|
Hi! This mod is great!
But I haven't been able to see the gender icon.
I'm using Spanish as my default language, so I created the CB fields in spanish, especially for gender they are:
Gender = Género
Male = Masculino
Female = Femenino
I guess this is why I'm not seeing gender images. I review the files and Mods to see if I could change something but have no success,
I reviewed my spanish.php file to check if the variables _FB_MYPROFILE_MALE and _FB_MYPROFILE_FEMALE were correct, and they are there, I just have to change the spanish definitions to my needs, but they are ready now.
Do you know if there is something else I should check?
All other icons are working ok
Thanks in advance.
|
|
|
Logged
|
|
|
Last Edit: 2007/11/06 19:04 By jlcampos.
|
|
|
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
|
Inside of the components/com_fireboard/template/default/view.php file, you need to change the following items.
[code:1] if ($cbinfo->$fbConfig['cb_gender_field'] != '') {
$gender = $cbinfo->$fbConfig['cb_gender_field'];
if (strcasecmp($gender,"male"«»)==0) {
$userinfo->gender = 1;
}
if (strcasecmp($gender,"female"«»)==0) {
$userinfo->gender = 2;
}
}[/code:1]
The two if statements with the male and female should be changed as needed. In your case they should be changed to Masculino and Femenino, and then it should work. Let me know.
|
|
|
Logged
|
|
|
Last Edit: 2007/11/07 01:28 By rockandchelle.
|
|
|
|
|
|
Re:Additional Info icons with Community Builder 1 Year, 2 Months ago
|
|
Thank you Rock, But I already tried that... let me verify, but guess is not the complete solution...
Verified, it was already done, I have although tried with the first letter capital and without it and ... it didn't work.
Any more ideas? Thanks for your support
Jorge Luis
|
|
|
Logged
|
|
|
|
|
|
|
|
|