Menu

#463 (ok 3.3) Full/partial text links (big T)

closed-accepted
None
1
2010-03-07
2009-04-01
No

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

Discussion

  • nullbarriere

    nullbarriere - 2009-04-02

    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

     
  • nullbarriere

    nullbarriere - 2009-04-02

    modified @version $Id: display_tbl.lib.php 12214 2009-01-27 18:26:30Z lem9 $

     
  • Marc Delisle

    Marc Delisle - 2009-06-05

    Moved to patches.

     
  • Marc Delisle

    Marc Delisle - 2009-06-05
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2009-06-06

    Thanks. I based my patch on yours, handling also the $cfg['ModifyDeleteAtRight'] case. Also I preferred one "if" instead of many conditionals.

     
  • Marc Delisle

    Marc Delisle - 2009-06-06
    • priority: 5 --> 1
    • summary: Please show "Full Texts" link as in earlier versions --> (ok 3.3) Full/partial text links (big T)
    • status: open --> open-accepted
     
  • Marc Delisle

    Marc Delisle - 2010-03-07
    • status: open-accepted --> closed-accepted
     
MongoDB Logo MongoDB