Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:Additional Info icons with Community Builder (1 viewing) (1) Guest
Go to bottom Favoured: 25
TOPIC: Re:Additional Info icons with Community Builder
#30536
Re:Additional Info icons with Community Builder 1 Year ago  
What is the exact field name that you used inside of Community builder (not the title). Is it..

cb_gender

or

cb_género

If it is cb_género, I wonder if it is causeing problems because of the tick mark about the e. Since the field name is not visible to the user anways, just make it be cb_gender, and then you can make the title, which is visible Género.

I can't think of anything else...I am stumped without looking at your code or something.
rockandchelle (User)
Fireboard is Cool!
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Static Student Ministries
Logged Logged
 
The administrator has disabled public write access.  
#30549
Re:Additional Info icons with Community Builder 1 Year ago  
Thank you again Rock!

No I left the field names exactly as the instructions said, I just change the values or descriptions to be show, all field names remain in english... (it was easier to copy paste the code in english than writing it again or translate every field name... )

Greetings!

Jorge Luis
jlcampos (User)
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Blogs: Tecnología para Todos Location: México Birthdate: 1971-03-03
Logged Logged
 
Jorge Luis
León, Gto., México
Blogs: Tecnología para Todos! --> http://blogs.versionti.com/
 
The administrator has disabled public write access.  
#30550
Re:Additional Info icons with Community Builder 1 Year ago  
Well, you have me stumped. I am not sure what it could be...I would just double check to make sure you have everything spelled correct. Without being able to see the code I don't know what else to do to help.
rockandchelle (User)
Fireboard is Cool!
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Static Student Ministries
Logged Logged
 
The administrator has disabled public write access.  
#31736
Re:Additional Info icons with Community Builder 1 Year ago  
Hello,

sorry for the later answer... But now here are the modification to show the country-flag next to the users icon. I made this hack a long time ago and didn't noticed the changings. So I hope I don't forget here anythink.

1. The Profile-Flag-Plugin for CB must installed and working! You can get it here.

2. Backup everything (database + Files)

3. open /components/com_fireboard/template/default/view.php and insert the following lines in the same area as the modifications from the user icons

[code:1] if ($cbinfo->$fbConfig['cb_country_field'] != '') {
$userinfo->country = $cbinfo->$fbConfig['cb_country_field'];
}[/code:1]

when find in the same file the following text:

// Begin: Additional Info //

insert after them the following code:

[code:1]if ($userinfo->country != 'None') {
if ($userinfo->country != '') {
$msg_country = 'country).'.gif" border="0" alt="'._FB_MYPROFILE_COUNTRY.': '.$gender.'" title="'._FB_MYPROFILE_COUNTRY.': '.$userinfo->country.'" />';
}
}[/code:1]

Replace here OUR_DOMAIN.??? with you domainname, of course.

Save and close this file.

Now open components/com_fireboard/template/default/message.php

and edit that in this attachment descripe (I can't post it here, because the forum don't show php-things :angry: [file name=foreboard.txt size=352]http://www.bestofjoomla.com/images/fbfiles/files/foreboard.txt[/file]

Save and close this file.

Now open /administrator/components/com_fireboard/language/YOURLanguage.php and insert the following code:

[code:1]DEFINE('_FB_MYPROFILE_COUNTRY', 'Country');[/code:1]

I hope that is all, if something don't work then send me a PM.

And this should be the result :lol: : [img size=161]http://www.bestofjoomla.com/images/fbfiles/images/flag.jpg[/img]

Best wishes,

Roland
roland76 (User)
Junior Boarder
Posts: 69
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Simple-Quality Location: Weißenburg / Germany Birthdate: 0000-12-23
Logged Logged
 
Last Edit: 2007/11/21 05:05 By roland76.
 
The administrator has disabled public write access.  
#34873
Re:Additional Info icons with Community Builder 11 Months, 1 Week ago  
hola, yo realize todas las modificaciones y todo bien pero no me muestra los iconos del perfil debajo del avatar...

y desde que realize las modificaciones no se muestra el numero de post del usuario tambien aparece offline cuando esta conectado algien sabe alguna solucion
Siniestro (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#34875
Re:Additional Info icons with Community Builder 11 Months, 1 Week ago  
English please? Thank you.
grumblemarc (User)
Platinum Boarder
Posts: 3559
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
#34876
Re:Additional Info icons with Community Builder 11 Months, 1 Week ago  
Realize the changes but I do not show the icons below the avatar...

The number of post users puts them at 0 and that this shows the online disconnected ..
Siniestro (User)
Junior Boarder
Posts: 27
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#37530
Re:Additional Info icons with Community Builder 10 Months, 3 Weeks ago  
Am I the only one to not understand Section 2?

Can someone shed some light for me please?

Thanks

Fred
haitao (User)
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Beijing, China
Logged Logged
 
The administrator has disabled public write access.  
#37532
Re:Additional Info icons with Community Builder 10 Months, 3 Weeks ago  
dynamodan wrote:
[quote]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[/quote]

can someone please confirm if this hack works with PHP5. i was playing around today but kept the error experienced by Dan above. Does this happen for everyone on PHP5??
peetree21 (User)
Senior Boarder
Posts: 116
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Australia
Logged Logged
 
Such is Life
 
The administrator has disabled public write access.  
#37547
Re:Additional Info icons with Community Builder 10 Months, 3 Weeks ago  
Not trying to be a smart-ass but it says in the text you quoted This code is not PHP5 compatible:. Is there some other confirmation you're looking for?
grumblemarc (User)
Platinum Boarder
Posts: 3559
graph
User Offline Click here to see the profile of this user
Gender: Male
Logged Logged
 
The administrator has disabled public write access.  
Go to top