Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Remove TABs at the bottom

phpMyEdit General     Remove TABs at the bottom
Odoslať novú tému   Odpovedať na tému    
 
franciscohm     Založený: 08.05.2008   Príspevky: 33  
Príspevok Zaslal: 2008-10-28 22:50
Návrat hore  Odpovedať s citátom     

Hi there,

I would like to remove the TAB line from the bottom of each form (the TAB line at the top of the form should remain).

I hacked phpMyEdit.class.php (from line 1900) but I did it wrong and I got errors.

Does anybody know how to easily do it? What lines to remove?

BTW: I purchased a basic support item service for 1 year. I do not know if this question is included, but anyways I prefer to post in the forum.

THANKS
Francisco

 
cbek     Založený: 25.10.2008   Príspevky: 27  
Príspevok Zaslal: 2008-10-29 18:56
Návrat hore  Odpovedať s citátom     

franciscohm Napísal:
Hi there,

I would like to remove the TAB line from the bottom of each form (the TAB line at the top of the form should remain).

I hacked phpMyEdit.class.php (from line 1900) but I did it wrong and I got errors.

Does anybody know how to easily do it? What lines to remove?

BTW: I purchased a basic support item service for 1 year. I do not know if this question is included, but anyways I prefer to post in the forum.

THANKS
Francisco


I have the same issue ( http://opensource.platon.sk/forum/projects/viewtopic.php?t=167436 ) but not answered yet!

Cyril.

 
franciscohm     Založený: 08.05.2008   Príspevky: 33  
Príspevok Zaslal: 2008-10-29 22:13
Návrat hore  Odpovedať s citátom     

If in line 1943 (or next to that line depending on version) of phpMyEdit.class.php:

Kód:
if ($this->tabs_enabled()) this->display_tab_labels('down');


You change it for

Kód:
if ($this->tabs_enabled()) ;


The lower TAB bar dissappear. The problem being that now everytime we change tab there is an error, since the routine looks for the lower bar to change its look in order to show in what TAB we are.

So the question now is: Where can I hack the script that handles that task? (In order to perform it only over the existing bar)

 
franciscohm     Založený: 08.05.2008   Príspevky: 33  
Príspevok Zaslal: 2008-10-29 22:31
Návrat hore  Odpovedať s citátom     

I think I got it. I tested it for few minutes and it seems to be OK.

STEPS

1) Go to file phpMyEdit.class.php

2) Change line:
Kód:
if ($this->tabs_enabled()) $this->display_tab_labels('down');


for

Kód:
if ($this->tabs_enabled()) ;


This line its at about line 1943

3) In line 896 (or next to that line) change

Kód:
if ($this->nav_down()) {
               echo '
   document.getElementById('.$this->js['prefix'].'cur_tab+"_down_label").className = "',$css_class_name1,'";
   document.getElementById('.$this->js['prefix'].'cur_tab+"_down_link").className = "',$css_class_name1,'";
   document.getElementById(tab_name+"_down_label").className = "',$css_class_name2,'";
   document.getElementById(tab_name+"_down_link").className = "',$css_class_name2,'";';
            }


For
Kód:

if ($this->nav_down()) {}


It should work...

 
cbek     Založený: 25.10.2008   Príspevky: 27  
Príspevok Zaslal: 2008-10-29 23:47
Návrat hore  Odpovedať s citátom     

franciscohm Napísal:
It should work...


Yes !
It's working very well !!!

Thanks,
Cyril.

 
franciscohm     Založený: 08.05.2008   Príspevky: 33  
Príspevok Zaslal: 2008-10-30 00:18
Návrat hore  Odpovedať s citátom     

My pleasure! :-)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov