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  »  Slide extension not working for me.

phpMyEdit General     Slide extension not working for me.
Post new topic   Reply to topic    
 
wfajber     Joined: 06 Jul 2006   Posts: 3  
Post Posted: 2006-07-08 19:40
Back to top  Reply with quote     

I have been trying to use the slide extension, but when I can't navigate Prev, or Next, (or any of the buttons for that matter).

My first question is does it work for everyone else or is it broken? I did get the latest from CVS.

I have been trying hard to see where I could go wrong, and I have added many var_dumps and echos. I notice that in the phpMyEdit-slide class, the variable navop does not seem to be set, but it is set when you are not using the extension. Maybe this is a clue.

 
wfajber     Joined: 06 Jul 2006   Posts: 3  
Post Posted: 2006-07-14 19:41
Back to top  Reply with quote     

After staring at the slide extension code for a long time, I could not figure out how the variables that defined the options were being populated. The slide extension looked great, but it would not move prev or next and it appeared to me that the variables

[ext][prev]
[ext][next]

were not getting set on the button operation.

I have rewritten some of that code, and it works now. There was a comment

// TODO: classify this table and cells

where I suspect the parent function was improved, but the slide extension class hadn't caught up.
I have not programmed seriously for 10 years, so my code is quite, ahem, hacky. I will clean it and post it after the weekend.

For interest, the original extension overrode function display_record_buttons()

I got rid of that but overrode
function display_button(),
function form_end() , hack - uggh
var $default_buttons

as well as adding a few variables and hacking execute().

I only mention it because I was so pleased how smoothly the override worked in the end .

 
wfajber     Joined: 06 Jul 2006   Posts: 3  
Post Posted: 2006-07-14 20:06
Back to top  Reply with quote     

I was also able to use the slide extension to extend the -mce-cal extension, so I can edit with pop-up calendars.

 
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