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
#59373
Re:Additional Info icons with Community Builder 1 Month, 3 Weeks ago  
I now tried a little myself, I looked into the admin.fireboard.php .

From line 658 on, there is standing something like:

Code:

$lists['cb_profile'] = mosHTML::selectList($yesno, 'cfg_cb_profile', 'class="inputbox" size="1"', 'value', 'text', $fbConfig->cb_profile);


I tried to add the field for the birthday and added a line like this below that:

Code:

$lists['cb_birthday_field'] = mosHTML::selectList($yesno, 'cfg_cb_birthday_field', 'class="inputbox" size="1"', 'value', 'text', $fbConfig->cb_birthday_field);


But that didn't work, I geht the message

Notice: Unknown configuration variable posted.

What did I do wrong? I think, the variables from the code on page 1 have to be added into the admin.fireboard.php, but I'm no programmer, I don't know how to do that. Anybody have an idea?
schmatzler (User)
Schmatzler.de!
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 444438969 Gender: Male schmatzler Schmatzler.de schmatzler schmatzler schmatzler@googlemail.com Location: Germany Birthdate: 1989-09-11
Logged Logged
 
 
The administrator has disabled public write access.  
#59380
Re:Additional Info icons with Community Builder 1 Month, 3 Weeks ago  
Okay, finally I got it....halfway.

Now the fields are written into the database and also located in a file, but the original script does not read the data from them. (NOOO! )

I will explain how I managed the first 50%:

1.

I opened up admin.fireboard.html.php

After these lines:

Code:

<td align = "left" valign = "top"><?php echo _COM_A_COMBUILDER_DESC ?>
                    </td>
                </tr>



I added this code:

Code:

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_BIRTHDAY ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_birthday_field" value = "<?php echo $fbConfig->cb_birthday_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_BIRTHDAY_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_SHOWAGE ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_showage_field" value = "<?php echo $fbConfig->cb_showage_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_SHOWAGE_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_GENDER ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_gender_field" value ="<?php echo $fbConfig->cb_gender_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_GENDER_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_LOCATION ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_location_field" value = "<?php echo $fbConfig->cb_location_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_LOCATION_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_PERSONALTEXT ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_personaltext_field" value = "<?php echo $fbConfig->cb_personaltext_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_PERSONALTEXT_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_ICQ ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_icq_field" value = "<?php echo $fbConfig->cb_icq_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_ICQ_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_AIM ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_aim_field" value = "<?php echo $fbConfig->cb_aim_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_AIM_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_MSN ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_msn_field" value = "<?php echo $fbConfig->cb_msn_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_MSN_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_YIM ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_yim_field" value = "<?php echo $fbConfig->cb_yim_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_YIM_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_SKYPE ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_skype_field" value = "<?php echo $fbConfig->cb_skype_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_SKYPE_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_GTALK ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_gtalk_field" value = "<?php echo $fbConfig->cb_gtalk_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_GTALK_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_WEBSITE_NAME ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_websitename_field" value = "<?php echo $fbConfig->cb_websitename_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_WEBSITE_NAME_DESC ?>
</td>
</td>
</tr>

<tr align = "center" valign = "middle">
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_WEBSITE_URL ?>
</td>

<td align = "left" valign = "top">
<input type = "text" name = "cfg_cb_websiteurl_field" value = "<?php echo $fbConfig->cb_websiteurl_field;?>"/>
</td>
<td align = "left" valign = "top"><?php echo _CB_MYPROFILE_WEBSITE_URL_DESC ?>
</td>
</td>
</tr>



2. Save the file and reupload.

DO NOT GO INTO THE ADMIN PANEL NOW AND TRY TO SAVE THINGS.

I did that and it messed up the whole fb_config-table with an old backup because of errors.

3. To get the backend working, open up fb_config.class.php and after these lines of code:

Code:

var $ebaylanguagecode  = 'en-us';
    var $fbsessiontimeout  = 1800; // in seconds



add this stuff:

Code:

//CB Hack
    var $cb_birthday_field = 'cb_birthday';
    var $cb_showage_field = 'cb_showage';
    var $cb_gender_field = 'cb_gender';
    var $cb_location_field = 'cb_location';
    var $cb_personaltext_field = 'cb_personaltext';
    var $cb_icq_field = 'cb_icq';
    var $cb_aim_field = 'cb_aim';
    var $cb_msn_field = 'cb_msn';
    var $cb_yim_field = 'cb_yim';
    var $cb_skype_field = 'cb_skype';
    var $cb_gtalk_field = 'cb_gtalk';
    var $cb_websitename_field = 'cb_websitename';
    var $cb_websiteurl_field = 'cb_websiteurl';



Now the variables are defined and Fireboard Backend no longer responses any errors (Don't know what I did, but hey, IT WORKS! The data, I put into the fields in backend now, is written into the database.)

4. Remember to rewrite the language file as mentioned on page 1 of this thread.

That's it until now. Now there is just the problem, that the script written for Fireboard 1.0.4 does not work anymore with reading the appropriate data.

Feel free to experiment, I'll try, but I am not a programmer :o)
schmatzler (User)
Schmatzler.de!
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 444438969 Gender: Male schmatzler Schmatzler.de schmatzler schmatzler schmatzler@googlemail.com Location: Germany Birthdate: 1989-09-11
Logged Logged
 
 
The administrator has disabled public write access.  
#59487
Re:Additional Info icons with Community Builder 1 Month, 3 Weeks ago  
How do I make this work using the Default_Ex template? There isn't a view.php in the template directory oddly enough. Any ideas, or is this modification not compatible with the Default_Ex template? Bummer if it isn't
MetalTome (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#60996
This doesn't work with 1.0.5 3 Weeks, 1 Day ago  
There isn't a view.php in the template directory oddly enough

You want to modify the view.php file in the default template. The default_ex template will read view.php from the default template. That said, the modifications don't work with default_ex...

I don't know enough (anything) about programming php or mysql, but I played with the code enough to get rid of the error messages in the added code. The error messages moved to the next line of original code. I only use the cb_personaltext field on my site, so that is the only part of the code I added. Here is a snip of the code I added/modified in view.php:

Code:

//Get userinfo needed later on, this limits the amount of queries
unset($userinfo);
$database->setQuery("SELECT  a.*,b.name,b.username,b.gid FROM #__fb_users as a LEFT JOIN #__users as b on b.id=a.userid where a.userid='$fmessage->userid'");
$database->loadObject($userinfo)

// Start Mod by rockandchelle to add community builder additional info
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_personaltext_field] != '') {
$userinfo->personalText = $cbinfo->$fbConfig[cb_personaltext_field];
}
}
// End Mod

//get the username:
$fb_username = "";



With this code installed on the server, I get an error message for the last line - $fb_username = ""; - I get a parse error that doesn't like the ""... That is as far as I got adding this mod to my upgraded 1.0.5 fireboard installation.

I would love to have someone who knows what they are doing recode this modification for 1.0.5...
shane (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/10/31 07:00 By shane. Reason: corrected code in post
 
The administrator has disabled public write access.  
Go to top