The new "Options" are quite nice to have but require LOTS of extra clicking: Click on Options, check show full texts radiobutton, click on OK. WWouldnt it be easy to have both, the old "Full Texts" link showing "<- T ->" AND the new Options?
Thanks
My working solution
modify line 645 (before insertion) <th <?php echo $colspan; ?>></th> change to <th<?php echo $colspan; ?>><?php echo $Text_Btn; ?></th>
insert before line 557 (uncomment as you like)
//start nullbarriere: make Text_Btn
//$_SESSION['userconf']['display_text']=='F' means we are in FullText mode $in_full_mode=$_SESSION['userconf']['display_text']=='F';
//make button image $src=$GLOBALS['pmaThemeImage'].($in_full_mode?'s_partialtext.png':'s_fulltext.png'); $txt=$in_full_mode?$GLOBALS['strPartialText']:$GLOBALS['strFullText']; $img="<img class=\"fulltext\" style=\"width:50px;height:20px\" src=\"$src\" alt=\"$txt\" title=\"$txt\" />";
//make button URL $url_params['display_text']=$in_full_mode?'P':'F'; $url = 'sql.php' . PMA_generate_common_url($url_params);
//Make button $Text_Btn=PMA_linkOrButton($url, $img, array(), false);
//end nullbarriere
modified @version $Id: display_tbl.lib.php 12214 2009-01-27 18:26:30Z lem9 $
Moved to patches.
Thanks. I based my patch on yours, handling also the $cfg['ModifyDeleteAtRight'] case. Also I preferred one "if" instead of many conditionals.
My working solution
modify line 645 (before insertion) <th <?php echo $colspan; ?>></th>
change to <th<?php echo $colspan; ?>><?php echo $Text_Btn; ?></th>
insert before line 557 (uncomment as you like)
//start nullbarriere: make Text_Btn
//$_SESSION['userconf']['display_text']=='F' means we are in FullText mode
$in_full_mode=$_SESSION['userconf']['display_text']=='F';
//make button image
$src=$GLOBALS['pmaThemeImage'].($in_full_mode?'s_partialtext.png':'s_fulltext.png');
$txt=$in_full_mode?$GLOBALS['strPartialText']:$GLOBALS['strFullText'];
$img="<img class=\"fulltext\" style=\"width:50px;height:20px\" src=\"$src\" alt=\"$txt\" title=\"$txt\" />";
//make button URL
$url_params['display_text']=$in_full_mode?'P':'F';
$url = 'sql.php' . PMA_generate_common_url($url_params);
//Make button
$Text_Btn=PMA_linkOrButton($url, $img, array(), false);
//end nullbarriere
modified @version $Id: display_tbl.lib.php 12214 2009-01-27 18:26:30Z lem9 $
Moved to patches.
Thanks. I based my patch on yours, handling also the $cfg['ModifyDeleteAtRight'] case. Also I preferred one "if" instead of many conditionals.