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?
Additional Info icons with Community Builder (1 viewing) (1) Guest
Go to bottom Favoured: 19
TOPIC: Additional Info icons with Community Builder
#37576
Re:Additional Info icons with Community Builder 8 Months ago  
ok, great! Everything is working!

Thanks a lot for helping me out.

Fred
haitao (User)
Fresh Boarder
Posts: 14
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.  
#39322
Re:Additional Info icons with Community Builder 7 Months, 3 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
 
The administrator has disabled public write access.  
#43374
Re:Additional Info icons with Community Builder 7 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:

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'];
    }
}





admin.fireboard.html.php:



Code:

[]
[][]
[]
[]
[]
[]
[][]
[]
[]
[]





and language:


Code:

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)');






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.
 
The administrator has disabled public write access.  
#43416
Re:Additional Info icons with Community Builder 6 Months, 4 Weeks ago  
anybody?
oneglory (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
wiiRincontrol.com
Logged Logged
 
The administrator has disabled public write access.  
#46891
Re:Additional Info icons with Community Builder 5 Months, 3 Weeks 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
 
The administrator has disabled public write access.  
#47618
Re:Additional Info icons with Community Builder 5 Months, 2 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)
Senior 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
 
The administrator has disabled public write access.  
#55194
Re:Additional Info icons with Community Builder 1 Month 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
 
The administrator has disabled public write access.  
#55204
Re:Additional Info icons with Community Builder 1 Month ago  
I dont see any reason why this wouldnt work with php 5
blakey87 (User)
Expert Boarder
Posts: 108
graphgraph
User Offline Click here to see the profile of this user
blakey87_1@hotmail.com
Logged Logged
 
 
The administrator has disabled public write access.  
#55205
Re:Additional Info icons with Community Builder 1 Month 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:

    if ($cbinfo->$fbConfig['cb_gender_field'] != '') { 


It returns an error:

Code:

Fatal error: Cannot access empty property in /home/qsobr3/public_html/components/com_fireboard/template/default/view.php on line 531



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.
 
The administrator has disabled public write access.  
#55208
Re:Additional Info icons with Community Builder 1 Month 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
 
The administrator has disabled public write access.  
Go to top
Powered by FireBoard - Creditsget the latest posts directly to your desktop