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
#59373
Re:Additional Info icons with Community Builder 3 Months, 1 Week 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: 22
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
 
 
 
#59380
Re:Additional Info icons with Community Builder 3 Months, 1 Week 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: 22
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
 
 
 
#59487
Re:Additional Info icons with Community Builder 3 Months, 1 Week 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
 
 
#60996
This doesn't work with 1.0.5 2 Months, 1 Week 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)
Need this to work with CB
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Gender: Male PhilmontForum Location: Somewhere in the USA Birthdate: 2067-00-00
Logged Logged
 
Last Edit: 2008/10/31 07:00 By shane. Reason: corrected code in post
 
 
#63167
Re:Additional Info icons with Community Builder 2 Weeks, 1 Day ago  
hi everyone !


so yes it works now with Fireboard 1.0.5 RC and J! 1.5

i made modification and simplification (but you always have to set the same configuration in CB : Tab, Fields), for those who are using this plugin before you just have to modifiate one file

File Attachment:
File Name: Additional_Info_icons_with_Community_Builder.zip
File Size: 136407


Code:

############################################################## 
## MOD Title: Additional Info icons with Community Builder
## MOD Author (Original For Fireboard 1.0.4, J!1.0 and J!1.5): rockandchelle http://www.bestofjoomla.com/component/option,com_fireboard/func,fbprofile/task,showprf/Itemid,38/userid,5911/
## MOD Author (Upgrade For Fireboard 1.0.5 RC2 and J!1.5): Baboon http://www.bestofjoomla.com/component/option,com_fireboard/func,fbprofile/task,showprf/Itemid,38/userid,13316/
## MOD Description: Additional Info icons with Community Builder.
## MOD Version: 1.1 
## Installation Level: Intermediate
## Installation Time: 10 Minutes 
## Files To Edit: 1
## components/com_fireboard/template/default/view.php
## Tab to create in CB : 1
## Fields to create in CB : 13
############################################################## 
## For Security Purposes, Please Check: http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/catid,68/id,34011/
## For the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your Fireboard Forum. 
##############################################################
## Author Notes: 
## 
## I have tested this MOD whit Fireboard 1.0.5 RC2, Joomla 1.5.8 and MySQL Database 5.0.27, Php 5.2.0
## 
## All the files join are already modifiate so you can copy them with no need to modifiate by yourself,
## but if you hard code your own file you have to do yourself the modification list above.
## 
###############################################################
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD 
############################################################## 
## Instructions Before modifiate file and upload: 
## 
## A:Setup Community Builder new Tab
## 
## 1. Login to the Administrator Panel Backend
## 
## 2. Select Components >> Community Builder >> Tab Management
## 
## 3. Select the New Tab Option (this only needs to be done if you want to add the fields to a new tab, which is what I recommend)
## 
## 4. Set the Title to whatever you want (I recommend something like Personal Info)
## 
## 5. Set Publish to Yes
## 
## 6. Set Position to Main Area (Below left/middle/right)
## 
## 7. Set Display Type to Tabbed Pane
## 
## 8. Set everything else as desired
## 
## See the image below for more details: 
## http://www.staticsm.com/images/procedures/TabSetup.jpg
## 
## B:Setup Community Builder Fields
## 
## 1. Select Components >> Community Builder >> Field Management
## 
## 2. Add the following fields with the following parameters
## 
## See the image below for more details:
## http://www.staticsm.com/images/procedures/FieldTable.jpg
## 
## * At the bottom of the screen, after selecting Drop Down (Single), Press the Add a Value button until two fields are available. Enter the two values listed.
## ** At the bottom of the screen, after selecting Web Address is a type box, Select the Value listed in the Type Box
##
## 3. At the Field Management screen Set the Required, Profile, Registration, Published and Ordering as desired. 
## 
## See the image below for more details:
## http://www.staticsm.com/images/procedures/FieldSetup.jpg
## 
############################################################## 
## This MOD is released under the GPL License. 
## Intellectual Property is retained by the MOD Author(s) listed above 
## Copyright:      ©2008 Additional Info icons with Community Builder 1.1
############################################################## 
## MOD History: 
##
##   2007-09-14 - Version 1.0
## - First Version Public For Fireboard 1.0.4, J!1.0 and J!1.5
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/id,21793/catid,58/limit,10/limitstart,0/#22689
##   2008-12-24 - Version 1.1
## - Version Public For Fireboard 1.0.5 RC2 and J! 1.5
## http://www.bestofjoomla.com/component/option,com_fireboard/Itemid,38/func,view/catid,58/id,21793/limit,10/limitstart,80/#63167
############################################################## 
## IMPORTANT !!!!! Before Adding This MOD To Your Forum, You Should Back Up you DATABASE and All Files Related To This MOD 
############################################################## 

#
#-----[ Open ]------------------------------------------
#

components/com_fireboard/template/default/view.php


#-----[ FIND near line 500]------------------------------------------ 


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


#-----[ AFTER, ADD ]------------------------------------------ 
#


// Start Mod by rockandchelle and baboon 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->cb_gender != '') {
        $gender = $cbinfo->cb_gender;

        if (strcasecmp($gender,"male")==0) {
            $userinfo->gender = 1;
        }
        if (strcasecmp($gender,"female")==0) {
            $userinfo->gender = 2;
        }
    }
    if ($cbinfo->cb_personaltext != '') {
        $userinfo->personalText = $cbinfo->cb_personaltext;
    }
    if ($cbinfo->cb_icq != '') {
        $userinfo->ICQ = $cbinfo->cb_icq;
    }
    if ($cbinfo->cb_location != '') {
        $userinfo->location = $cbinfo->cb_location;
    }
    if ($cbinfo->cb_birthday != '') {
        $userinfo->birthdate = $cbinfo->cb_birthday;

        if (strcasecmp($cbinfo->cb_showage,"no") == 0 ) {
            $userinfo->birthdate = substr($cbinfo->cb_birthday,5,5);
        }
    }
    if ($cbinfo->cb_aim != '') {
        $userinfo->AIM = $cbinfo->cb_aim;
    }
    if ($cbinfo->cb_msn != '') {
        $userinfo->MSN = $cbinfo->cb_msn;
    }
    if ($cbinfo->cb_yim != '') {
        $userinfo->YIM = $cbinfo->cb_yim;
    }
    if ($cbinfo->cb_skype != '') {
        $userinfo->SKYPE = $cbinfo->cb_skype;
    }
    if ($cbinfo->cb_gtalk != '') {
        $userinfo->GTALK = $cbinfo->cb_gtalk;
    }
    if ($cbinfo->cb_websiteurl != '') {
        $userinfo->websiteurl = $cbinfo->cb_websiteurl;
    }
    if ($cbinfo->cb_websitename != '') {
        $userinfo->websitename = $cbinfo->cb_websitename;
    }
 }
// End Mod



#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 

# EoM 

baboon (User)
Junior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/12/24 21:30 By baboon. Reason: file
 
 
#63172
Re:Additional Info icons with Community Builder 2 Weeks, 1 Day ago  
Thank you!

This works like a charme.
schmatzler (User)
Schmatzler.de!
Junior Boarder
Posts: 22
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
 
 
 
#63215
Re:Additional Info icons with Community Builder 1 Week, 5 Days ago  
Thank you for making this work with 1.0.5. I do have a question about the icons and online status, specifically ICQ. Shouldn't the icon show green when the person is online through ICQ? Maybe I am expecting too much. Or did I miss a step. How can I get this to work?

Thanks again,

Jaysen
jaysenjohnson (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 490576427 Gender: Male JaysenJohnson Jaysen Johnson mstrmnd1980 jaysenjohnson jaysen@jaysenjohnson.net MstrMnd1980 Birthdate: 1980-04-07
Logged Logged
 
 
#63216
Re:Additional Info icons with Community Builder 1 Week, 5 Days ago  
did you have a grey one like this when you are on line ? :


baboon (User)
Junior Boarder
Posts: 41
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#63244
Re:Additional Info icons with Community Builder 1 Week, 4 Days ago  
Yes, mine stays gray and I recently noticed a blue square around mine. It stays that way when I am both online and offline. I am not sure why the blue square is there. It wasn't when I first did the mod.

Jaysen
jaysenjohnson (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 490576427 Gender: Male JaysenJohnson Jaysen Johnson mstrmnd1980 jaysenjohnson jaysen@jaysenjohnson.net MstrMnd1980 Birthdate: 1980-04-07
Logged Logged
 
 
#63248
Re:Additional Info icons with Community Builder 1 Week, 4 Days ago  
Ok this is now solved, It helped to have the "Allow others to view my online/offline status from the web" option turned on in my privacy settings. What a fool I am.

However, still having the blue box around the icon issue. Seems like this only occurs with the clickable icons.
jaysenjohnson (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 490576427 Gender: Male JaysenJohnson Jaysen Johnson mstrmnd1980 jaysenjohnson jaysen@jaysenjohnson.net MstrMnd1980 Birthdate: 1980-04-07
Logged Logged
 
 
Go to top