Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Remove TABs at the bottom

phpMyEdit General     Remove TABs at the bottom
Post new topic   Reply to topic    
 
franciscohm     Joined: 08 May 2008   Posts: 33  
Post Posted: 2008-10-28 22:50
Back to top  Reply with quote     

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     Joined: 25 Oct 2008   Posts: 27  
Post Posted: 2008-10-29 18:56
Back to top  Reply with quote     

franciscohm wrote:
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     Joined: 08 May 2008   Posts: 33  
Post Posted: 2008-10-29 22:13
Back to top  Reply with quote     

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

Code:
if ($this->tabs_enabled()) this->display_tab_labels('down');


You change it for

Code:
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     Joined: 08 May 2008   Posts: 33  
Post Posted: 2008-10-29 22:31
Back to top  Reply with quote     

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:
Code:
if ($this->tabs_enabled()) $this->display_tab_labels('down');


for

Code:
if ($this->tabs_enabled()) ;


This line its at about line 1943

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

Code:
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
Code:

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


It should work...

 
cbek     Joined: 25 Oct 2008   Posts: 27  
Post Posted: 2008-10-29 23:47
Back to top  Reply with quote     

franciscohm wrote:
It should work...


Yes !
It's working very well !!!

Thanks,
Cyril.

 
franciscohm     Joined: 08 May 2008   Posts: 33  
Post Posted: 2008-10-30 00:18
Back to top  Reply with quote     

My pleasure! :-)

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy