Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:Additional Info icons with Community Builder (1 viewing) (1) Guest
TOPIC: Re:Additional Info icons with Community Builder
#37576
Re:Additional Info icons with Community Builder 1 Year ago  
ok, great! Everything is working!

Thanks a lot for helping me out.

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
 
 
#39322
Re:Additional Info icons with Community Builder 11 Months, 4 Weeks ago  
is this hack still working uner 1.0.4?
n0fear (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#43374
Re:Additional Info icons with Community Builder 11 Months ago  
This seems to be the only place that has something similar to what I'm trying to do


I wrote this code based on the code in this thread:

view.php

[code:1]if ($fbConfig['fb_profile'] =="cb" && $fbConfig['cb_profile'] && $fmessage->userid > 0)
{
unset($cbinfo);
$database->setQuery("SELECT * FROM #__comprofiler where user_id='$fmessage->userid'"«»);
$database->loadObject($cbinfo);

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



admin.fireboard.html.php:



[code:1][]
[][]
[]
[]
[]
[]
[][]
[]
[]
[][/code:1]



and language:


[code:1]DEFINE('_CB_MYPROFILE_WII_CONSOLE_NUMBER', 'Wii Console Number');
DEFINE('_CB_MYPROFILE_WII_CONSOLE_NUMBER_DESC', 'This is where users enter their Wii Console Number (Friend Code)');[/code:1]




Now my real question is, I want to get the number that is entered by users in their profile into the user info box in the left pane (where the avatar is)

whats the easiest way to go about doing this?

I know its down near the additional info section in the view.php
oneglory (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
wiiRincontrol.com
Logged Logged
 
Last Edit: 2008/02/08 09:48 By oneglory.
 
 
#43416
Re:Additional Info icons with Community Builder 11 Months ago  
anybody?
oneglory (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
wiiRincontrol.com
Logged Logged
 
 
#46891
Re:Additional Info icons with Community Builder 10 Months ago  
Same code for 1.0.4 version?

This hack should be integrated to Fireboard core.... or be realeased as plugin once it works with CB.


If I upgrade fireboard tomorrow, do i have to do the work again?

tks!
paulo.nesso (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#47618
Re:Additional Info icons with Community Builder 9 Months, 3 Weeks ago  
Yes it does work in 1.04 but obviously you have to use the view.php file from template you are using.
Andy (User)
Junior Boarder
Posts: 59
graphgraph
User Offline Click here to see the profile of this user
Gender: Male JoomlaPlazza Location: SCOTLAND
Logged Logged
 
joomlaplazza.comSocial Networking Resource center
 
 
#55194
Re:Additional Info icons with Community Builder 5 Months, 1 Week ago  
Is there any way to make this work in PHP5?
coffeedaze (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#55204
Re:Additional Info icons with Community Builder 5 Months, 1 Week ago  
I dont see any reason why this wouldnt work with php 5
blakey87 (User)
Senior Boarder
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
blakey87_1@hotmail.com
Logged Logged
 
 
 
#55205
Re:Additional Info icons with Community Builder 5 Months, 1 Week ago  
blakey87 wrote:
I dont see any reason why this wouldnt work with php 5

I noticed this post by another member...

[quote]dynamodan wrote:
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]

I get the error as well using PHP5. I have no idea how to convert the original mod code over to make it PHP5 compatible though.
coffeedaze (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/08/04 23:30 By coffeedaze.
 
 
#55208
Re:Additional Info icons with Community Builder 5 Months, 1 Week ago  
I am not actively working on this code anymore, but my guess would be that if you change all of the

Code:

$cbinfo->$fbConfig[...]


to

Code:

$cbinfo->fbConfig[...]


It would probably work fine then.
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
 
 
Go to top