Quote:
Ace_Armstrong wrote:
Right. Which is the problem. I can't find where in the code it's specifying the pixel width so I can change it to percentages (or at least a smaller pixel width). My main objective at this point is to find that portion of the code so I can make the edits, but like I said: I can't find it anywhere, and I've been through the code line by line.
It is the one thing I don't like about 'web programming' in general, ...... not easy to debug. Coming from an application programming background, it was always _so_ nice to use a debugger, problem solved very quickly. But, with web programming languages, for the mere fact that pages are processed by the server (not local), it does make it a bit hard, for sure.
1. I downloaded Gubed PHP Debugger, which certainly seems to be a good tool, set breakpoints, and step through code, but of course, the PHP code needs to be on a 'local' server, an IP on your LAN somewhere.
2. You could try using
PHPXref, which is a very good cross-ref utility, it is open source, and to see a demo of how it works, there is a site that has all the osCommerce source code, as a demo for PHPXref, see
http://www.oscdox.com/crossx/nav.html?index.htmlI have loaded that locally in the past, takes up a bit of space, because it creates a load of html pages, but it is a very handy tool for finding out where functions and variables are used.
3. The only suggestion I can make to find out _where_ to change the code, is to walk down a path I _may_ take. With the use of Gubed, I'm chewing on loading something like 'phpdev', which is a bundled Apache, PHP, Mysql,etc, and run it on an old Win95b box I have, then I start up the web server locally, run XOOPS, and then look at using Gubed to debug piCal.
Stepping through the source code is really the only way to find how the value '640' got there, I suspect it is in some of the XOOPS functions that handle all the html side of things.
Of course having a (local) Linux box would be easier, but I have been able to get phpdev 4.23 going before, and it was nice to just install everything in one hit, fire it up, and then there is an Apache server running.
We are in the 'same boat', I don't like the way piCal has messed up the table width, it looks messy, and is not in keeping with the rest of the site.
HTH
Peter