JD-WIKI 1.0
Broken Trace
Nice wiki component. Just a small problem: the trace (breadcrumbs) is broken. Without the trace, dokuwiki is really hard to navigate. Just to clarify myself, the trace only shows the last visited page, not by default 10 pages.
Answering myself. Just figure out how to make to breadcrumbs work. in components/com_jd-wiki/jd-wiki.php, before the line “breadcrumbs()”, add a line “session_start();”. cheers.
Bad style in media popup
in components/com_jd-wiki/lib/tpl/default/media.php after <?php tpl_metaheaders()?> add:
<link rel="stylesheet" href="<?php echo $mosConfig_live_site.'/templates/vcwi-blue/css/template_css.css' ?>" type="text/css"/>
note vcwi-blue to be changed to current template.
and <body> change to <body style="text-align:left;">.
Bad css style for the buttons
to remove form background behind buttons, add the following to components/com_jd-wiki/lib/tpl/default/design.css:
div.secedit form, form.button { border: none; margin: 0; display: inline; background: transparent; }
Search
The searchbox (when I stay there with the mouse) gives me an "Direct Acces to this locatio is not allowed" message.
Search works now, have update the package. You need to run once components/com_jd-wiki/lib/exe/indexer.php to activate in your footer.html add at the bottom:
<?php tpl_indexerWebBug()?>
Now indexing works and you can search.
Just FYI, the footer.html template is located under /www/joomla/components/com_jd-wiki/lib/tpl/default/
Letterman
Relative URL
Using WYSIWYG editor (tinyMCE), the urls refering to the local documents are cut into relative url. It is no problem on the web, but when sent as an email, these urls do not refer correctly to the web site. solution:
file: components/com_letterman/letterman.php, after line 620 add:
<base href=\"$mosConfig_live_site\">
file: administrator / components / com_letterman / admin.letterman.php, after line 451, add the same.
exclamation mark in emails
Problem: when use phpmail or sendmailfor letterman to deliver mails, The issue is that actually most of these add a ! in the message evan do this is not in the actual message that is written.
Check out: [http://www.experts-exchange.com/Networking/Email_Groupware/Sendmail/Q_21618003.html experts-exchange], it has something to do with sendmail.
file: components/com_letterman/letterman.php, around line 630, before or after the line
$html_message = str_replace( "../../..", $mosConfig_live_site, $html_message );
insert:
$html_message= wordwrap($html_message, 72);
file: administrator / components / com_letterman / admin.letterman.php, around line 462, before or after the line
$html_message = str_replace( "../../..", $mosConfig_live_site, $html_message );
insert:
$html_message= wordwrap($html_message, 72);
zOOm Media Library
The lightbox and eCards functions do not work. Disable them at the backend.
2.5b3: User cant upload. only Admin
All i did after trying everyones hacks is went to line number 209 on the zoom_class.php file and changed:
Code:
if (!isset($my->gid)) {
to Code:
if (isset($my->gid)) {
This is on version 2.5b3
2.5b3: Drap n Drop Java applet doest not work
version 2.5b3 on Joomla
change
if($zoom->_mambotype == 2) { require_once($mosConfig_absolute_path.'/includes/database.php'); } else { require_once($mosConfig_absolute_path.'/classes/database.php'); }
to
/* if($zoom->_mambotype == 2) { require_once($mosConfig_absolute_path.'/includes/database.php'); } else { require_once($mosConfig_absolute_path.'/classes/database.php'); } */ require_once($mosConfig_absolute_path.'/includes/database.php');
2.5b3: Java Upload - default image name
here's a quick fix for providing the real name
goto 'save_dnd.php' line 109 and comment it
should look like this:
//if(isset($setFilename)) $name = $realName; .......
that way you force zoom to take the real name
Remove zOOm Gallery copyright footer
in components / com_zoom / lib / zoom.class.php to remove footer. and components / com_zoom / www / admin / admin.php to remove credits on the management pages.
Update from 2.5beta3 to 2.5RC1
Method number one is the recommended way to upgrade. There were no database changes since version 2.5 beta3. That makes life a lot easier, doesn't it?
In other words: replace ALL the existing (and older) files in your '{joomlaroot}/components/com_zoom' and '{joomlaroot}/administrator/components/com_zoom' with the newer files from the archive. IMPORTANT: before you overwrite any files, please write your current configuration on a piece of paper. After upgrading, update your settings again.
The Changelog file hasn't been updated for a while indeed...if you want to know more about the changes since the previous version, use the CVS DIFF command...
Redirect the zoom module random image links
to redirect these links to a "gallery" menu item instead of showing on the frontpage: in modules / zoom.zml add a parameter for example after line 22:
<param name="menuitemid" type="text" size="10" default="0" label="Associate with menu item (itemid)"/>
in modules/zoom.php after line 66 add:
$menuitemid = $params->def( 'menuitemid', 000 ); if ($menuitemid == 0) { $menuitemid = $Itemid;
}
then in zoom module configuration, set "Associate with menu item" to the itemid of the gallery menu.
2.5RC1: multipage gallery editing/deleting in media manager: wrong key
components / com_zoom / lib / zoom.class.php:
line 2323 and 2328: change "$this->_counter" to "$counter"
Community Builder
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))."\" />"
MambelFish 1.5 and Joomla 1.0.4
Installation
I just want to explain what worked for me, I have Joomla 1.0.4 and PHP 4.4.0... Still I have some warnings, but it works now...
thanks for helping me on this "alexhokamp", everything on this Mini-howto was gave it to me from "alexhokamp"...
1.- Download and Install the new fresh Joomla 1.0.4 on your favorite site, even JSAS for testing
2. Download MambelFish pack from attachment (mambelfish_pack.zip)
3. Install mambelfish component, module and mambot. Publish module and mambot
4. Download patch files from attachment too (Joom104_MF.zip)
5. Replace files from patch zip file:
- /includes/joomla.php
/administrator/components/com_mambelfish/mambelfish.class.php /includes/domit/xml_domit_lite_parser.php
6. Configure Mambel fish and languages files to your needs
attachment:Jom104_MF.zip (51.4 KB - downloaded 154 times.)
attachment:mambelfish_pack.zip (194.09 KB - downloaded 147 times.)
Installation, method 2:
http://forum.joomla.org/index.php/topic,26271.0.html
Search warnings
Warning: array_keys(): The first argument should be an array in /vol/www2/vcwi/htdocs/new/components/com_mambelfish/classes/mambelfish.class.php on line 164 Warning: Invalid argument supplied for foreach() in /vol/www2/vcwi/htdocs/new/components/com_mambelfish/classes/mambelfish.class.php on line 164
As said before I did not really solve it but prevented it from throwing a warning. I just added this line before line 164
if (!isset($rows)) return;
The solution is deeper because that function 'translateList' is called with no $rows specified. I did not investigate the cause that. Since mbf did work OK. There are several liitle flaws within mambelfish as you may have found in the forum. PHP version problems Even the lttle mbf search bot has a flaw. The search results are returned twice. Just by adding DISTINCT right after the SELECT statement will correct it.
The following thread goes deeper into the problems and solutions http://forum.joomla.org/index.php/topic,8785.0.html
I did not go that far and only solved the things that bothered me. For that reason I made the mbf system bot and I use already a different version to be prepared for Joomla.1.1 But for some reason I would be more happy if it was released by Alex to tighten the gap between MBF and Joomla. In general mambelfish works OK
Weblink does not translate
I assumed that this is for the Mambo 4.5.2 and MambleFish 1.5 Released version. Next time include your version please. I works also for Joomla 1.0.4
You have to modify two files to make this work. com_weblinks/weblinks.php and com_weblinks/weblinks.html.php.
1. change entire function listWeblinks in com_weblinks/weblinks.php with these codes:
function listWeblinks( $catid ) { global $mainframe, $database, $my; global $mosConfig_shownoauth, $mosConfig_live_site, $mosConfig_absolute_path; global $cur_template, $Itemid; // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATION GLOBAL VARIABLES global $mosConfig_lang, $mosConfig_mbf_content; // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATION GLOBAL VARIABLES /* Query to retrieve all categories that belong under the web links section and that are published. */ // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY THE QUERY //$query = "SELECT *, COUNT(a.id) AS numlinks FROM #__categories AS cc" $query = "SELECT cc.*, COUNT(a.id) AS numlinks FROM #__categories AS cc" // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY THE QUERY . "\n LEFT JOIN #__weblinks AS a ON a.catid = cc.id" . "\n WHERE a.published='1' AND a.approved='1' AND section='com_weblinks' AND cc.published='1' AND cc.access <= '$my->gid'" . "\n GROUP BY cc.id" . "\n ORDER BY cc.ordering" ; $database->setQuery( $query ); $categories = $database->loadObjectList(); // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATING THE CATEGORIES if( $mosConfig_mbf_content ) { $categories = MambelFish::translateList( $categories, 'categories', $mosConfig_lang); } // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATING THE CATEGORIES $rows = array(); $currentcat = NULL; if ( $catid ) { // url links info for category $query = "SELECT id, url, title, description, date, hits, params FROM #__weblinks" . "\nWHERE catid = '$catid' AND published='1' AND approved='1' AND archived=0" . "\nORDER BY ordering" ; $database->setQuery( $query ); $rows = $database->loadObjectList(); // current cate info // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY THE QUERY //$query = "SELECT name, description, image, image_position FROM #__categories" $query = "SELECT * FROM #__categories" // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY THE QUERY . "\n WHERE id = '$catid'" . "\n AND published = '1'" ; $database->setQuery( $query ); $database->loadObject( $currentcat ); // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATING THE CURRENT CATEGORIES if( $mosConfig_mbf_content ) { $currentcat = MambelFish::translate( $currentcat, 'categories', $mosConfig_lang); } // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - TRANSLATING THE CURRENT CATEGORIES } // Parameters $menu =& new mosMenu( $database ); $menu->load( $Itemid ); $params =& new mosParameters( $menu->params ); $params->def( 'page_title', 1 ); $params->def( 'header', $menu->name ); $params->def( 'pageclass_sfx', '' ); $params->def( 'headings', 1 ); $params->def( 'hits', $mainframe->getCfg( 'hits' ) ); $params->def( 'item_description', 1 ); $params->def( 'other_cat_section', 1 ); $params->def( 'other_cat', 1 ); $params->def( 'description', 1 ); $params->def( 'description_text', _WEBLINKS_DESC ); $params->def( 'image', '-1' ); $params->def( 'weblink_icons', '' ); $params->def( 'image_align', 'right' ); $params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); if ( $catid ) { $params->set( 'type', 'category' ); } else { $params->set( 'type', 'section' ); } // page description $currentcat->descrip = ''; if( ( @$currentcat->description ) <> '' ) { $currentcat->descrip = $currentcat->description; } else if ( !$catid ) { // show description if ( $params->get( 'description' ) ) { $currentcat->descrip = $params->get( 'description_text' ); } } // page image $currentcat->img = ''; $path = $mosConfig_live_site .'/images/stories/'; if ( ( @$currentcat->image ) <> '' ) { $currentcat->img = $path . $currentcat->image; $currentcat->align = $currentcat->image_position; } else if ( !$catid ) { if ( $params->get( 'image' ) <> -1 ) { $currentcat->img = $path . $params->get( 'image' ); $currentcat->align = $params->get( 'image_align' ); } } // page header $currentcat->header = ''; if ( @$currentcat->name <> '' ) { $currentcat->header = $currentcat->name; } else { $currentcat->header = $params->get( 'header' ); } // used to show table rows in alternating colours $tabclass = array( 'sectiontableentry1', 'sectiontableentry2' ); HTML_weblinks::displaylist( $categories, $rows, $catid, $currentcat, $params, $tabclass ); }
2. Change entire function showCategories in com_weblinks/weblinks.html.php with these codes:
function showCategories( &$params, &$categories, $catid ) { global $mosConfig_live_site, $Itemid; ?> <ul> <?php foreach ( $categories as $cat ) { // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY IF STATEMENTS [ catid column has been removed from query ] //if ( $catid == $cat->catid ) { if ( $catid == $cat->id ) { // END MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY IF STATEMENT ?> <li> <b> <?php echo $cat->name;?> </b> <span class="small"> (<?php echo $cat->numlinks;?>) </span> </li> <?php } else { // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - MODIFY LINK [ catid column has been removed from query ] //$link = 'index.php?option=com_weblinks&catid='. $cat->catid .'&Itemid='. $Itemid; $link = 'index.php?option=com_weblinks&catid='. $cat->id .'&Itemid='. $Itemid; // MAMBLEFISH FIX BY AB ZAHRI AB AZIZIS - END MODIFY LINK ?> <li> <a href="<?php echo sefRelToAbs( $link ); ?>" class="category<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php echo $cat->name;?> </a> <span class="small"> (<?php echo $cat->numlinks;?>) </span> </li> <?php } } ?> </ul> <?php }
3. Save both files (upload) and you are done.
Alex I have commented this modification please review and include it as your patch files.
Maybe necessary: includes/joomla.php to make changes to default language as original content
line 79:
$database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
change to:
if (file_exists( 'components/com_mambelfish/mambelfish.php' )) { $mosConfig_mbf_content='1'; // can also go into the configuration - but this might be overwritten! require_once( "administrator/components/com_mambelfish/mambelfish.class.php"); require_once( "components/com_mambelfish/classes/mambelfish.class.php"); } if( $mosConfig_mbf_content ) { $database = new mlDatabase( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); } else { $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); } if ($mosConfig_mbf_content) { $mosConfig_defaultLang = $mosConfig_lang; // Save the default language of the site $iso_client_lang = MambelFish::discoverLanguage( $database ); $_MAMBELFISH_MANAGER = new MambelFishManager();
}