4169
Comment:
|
← Revision 5 as of 2008-10-03 20:18:36 ⇥
4177
converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
[[TableOfContents]] | <<TableOfContents>> |
Line 25: | Line 25: |
2. There is one front end zip file attachment:comprofiler.frontend.zip which has to loaded into components/com_comprofiler and | 2. There is one front end zip file [[attachment:comprofiler.frontend.zip]] which has to loaded into components/com_comprofiler and |
Line 27: | Line 27: |
3. the other for the backend attachment:comprofiler.backend.zip which has to be loaded ionto administrator/components/com_comprofiler. | 3. the other for the backend [[attachment:comprofiler.backend.zip]] which has to be loaded ionto administrator/components/com_comprofiler. |
Contents
Community Builder
Search
Added a new field in the table #comprofiler_fields
- Added in the Backend "Fields" a new column to turn searchable on and off
- Added in the class the new field
- Added in the frontend the code to dynamically add the field if it is published and also search enabled!
the update can only be done via ftp! Please note if the cb core team does not consider to add this in their core script, you will have difficulties making updates, so following the below mentioned steps is your own risk. But I can say that this hack can be redone really fast.
The steps:
- You need to add a new field in your database. Here is the sql code
Code:
ALTER TABLE `jos_comprofiler_fields` ADD `search` TINYINT( 1 ) DEFAULT '0' NOT NULL AFTER `registration` ;
There is one front end zip file comprofiler.frontend.zip which has to loaded into components/com_comprofiler and
the other for the backend comprofiler.backend.zip which has to be loaded ionto administrator/components/com_comprofiler.
sort by lastname and firstname in user manager
in administrator/coomponents/com_comprofiler/admin.comprofiler.php around line 909, change
$database->setQuery( "SELECT DISTINCT a.*, g.name AS groupname, s.userid AS loggedin,ue.approved,ue.confirmed" . "\nFROM #__users AS a" . "\nLEFT JOIN #__comprofiler AS ue ON a.id = ue.id" . "\nINNER JOIN #__core_acl_aro AS aro ON aro.value = a.id" // map user to aro . "\nINNER JOIN #__core_acl_groups_aro_map AS gm ON gm.aro_id = aro.aro_id" // map aro to group . "\nINNER JOIN #__core_acl_aro_groups AS g ON g.group_id = gm.group_id" . "\n LEFT JOIN #__session AS s ON s.userid = a.id" . (count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : "") . "\nLIMIT $pageNav->limitstart, $pageNav->limit" );
to:
$database->setQuery( "SELECT DISTINCT a.*, g.name AS groupname, s.userid AS loggedin,ue.approved,ue.confirmed" . "\nFROM #__users AS a" . "\nLEFT JOIN #__comprofiler AS ue ON a.id = ue.id" . "\nINNER JOIN #__core_acl_aro AS aro ON aro.value = a.id" // map user to aro . "\nINNER JOIN #__core_acl_groups_aro_map AS gm ON gm.aro_id = aro.aro_id" // map aro to group . "\nINNER JOIN #__core_acl_aro_groups AS g ON g.group_id = gm.group_id" . "\n LEFT JOIN #__session AS s ON s.userid = a.id" . (count( $where ) ? "\nWHERE " . implode( ' AND ', $where ) : "") . "\nORDER BY ue.lastname, ue.firstname" . "\nLIMIT $pageNav->limitstart, $pageNav->limit" );
change "register to read more" link
to use community builder registration some registered content gives a link pointing to, for read more... index.php?option=com_registration&task=register
I need it to point to index.php?option=com_comprofiler&task=registers
apparently needs to be changed in com_content.html.php
zOOm Plugin can not find images after zOOm changes its default image directory
file: components / com_comprofiler / plugin / user / plug_cbzoomtab / zoom.php : line 81:
$ZoomPath = "/images/zoom/";
change to
$ZoomPath = "images/zoom/"; if(file_exists('components/com_zoom/etc/zoom_config.php')){ include_once('components/com_zoom/etc/zoom_config.php'); $ZoomPath = $zoomConfig['imagepath']; }
line 99:
$imgsize=getimagesize($mosConfig_absolute_path.$ZoomPath.$photo->catdir."/".$photo->imgfilename);
change to
$imgsize=getimagesize($mosConfig_absolute_path."/".$ZoomPath.$photo->catdir."/".$photo->imgfilename);
line 106
."<img src=\"images/zoom/$photo->catdir$thumbpath$thumbphoto\" border=\"0\" alt=\"\" title=\"".htmlentities(stripslashes($photo->imgdescr))."\" />"
change to
."<img src=\"$ZoomPath$photo->catdir$thumbpath$thumbphoto\" border=\"0\" alt=\"\" title=\"".htmlentities(stripslashes($photo->imgdescr))."\" />"