Menu

#1645 MIME Transformation Imagelink and link - repairs and idea

Next_release
open
nobody
Normal
2015-04-23
2015-04-04
janness
No

Hello. I found some thing when I play with MIME transformations.

1) I found if I use Browser display transformation as 'Text/Plain:Link' and show the table, then click od the link, the link doesn't work properly, because I am redirected to phpmyadmin main page, not to the link page.

2) Would be possible to add new parameter to the 'Text/Plain:Imagelink' and show size of picture in the table?

3) When I am using 'Text/Plain:Imagelink', the base folder is local/phpmyadmin/%1stOption. It's easy to jump to upper folder and than specify project name (%1stOption = '../projectname/...'), but I think it will be better to set base as project folder (local/projectname/%1stOption/) or let the user select which one he want as default, because if I will use it on remote server, i think it will makes problems with path ...

Thanks a lot and I hope I am not wasting your time with my posts :) .

Discussion

  • janness

    janness - 2015-04-05

    4) MIME-type:Preappend :

    I have two tables. advert(advertID,clicksID) and clicks(advertID,clicks)

    In advert table i make column with FK key to clicks ( advert.clicksID -> clicks.advertID [display column clicks]). This works well. Than I set advert.clicksID as Mime-type:Preappend with option '','x'.

    In table of record I set the option 'Relational display column' , the value do not show 'display column - clicks', but it show clicks.advertID.

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    Thanks for you testing and valuable thoughts.

    1) I can reproduce this. I am working on fixing it.
    2) I think it's out of scope of phpMyAdmin to calculate the file size of an external image.
    3) This is suppose to display externally hosted images, for example from 'http://www.example.com/'. The link will start from whatever the value you enter for the first option. However, if you want traverse internal paths it will be relatively to phpmyadmin folder.
    4) When it comes to both relations and transformation defined on the same column, one has to take precedence. Currently transformations take the the priority. If you want to see the relations link, check the 'Hide browser transformation' checkbox in options section.

     
  • janness

    janness - 2015-04-07

    2) I am avarange in PHP, but PHP can calculate it by getimagesize and it can be set by user to display images size in table or not :) .

    3) If I want the internal path into my project image, i must jump into parent folder.To get project folder I must jump to upper folder : '../www/project/images/example.jpg'. But what if the remote server folder structure will be different ? ... I know it's complicated, huh .

    My folder:
    G:/WAMP/www/project/images/example.jpg

     
  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne --> nobody
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.