Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: PiCal 0.7 -- Remove GMT from detailed event view?
by peterr on 2005/11/23 0:53:20

You may also want to uncomment some lines; the author has used the var_dump() function in various places.

Here are the lines to uncomment (but you will get o/p of course, like an echo):

/modules/piCal/index.php - line 190
/modules/piCal/class/piCal.php - line 3923
/modules/piCal/class/piCal_xoops.php - line 978

Obviously line 190 in ../index.php may help a lot, just uncomment that.

There is also a dump() function in the file:

/modules/piCal/include/patTemplate.php , which doesn't appear to be called anywhere, but as it dumps template info, may be very handy.

In the file /modules/piCal/class/piCal.php , after line 729

le="color: #000000"><?php require_once( "$this->base_path/include/patTemplate.php" ) ;


try adding this ............

le="color: #000000"><?php dump();


and see what is displayed.

HTH
Re: PiCal 0.7 -- Remove GMT from detailed event view?
by peterr on 2005/11/23 0:08:34

Quote:

Ace_Armstrong wrote:
Actually, I had alrady found those when I posted and changed them. It did not affect the output.


If you simply changed the templates, then of course nothing will change, because XOOPS gets the template code from the db, you would have to change the appropriate rows in the db.

HTH
Re: PiCal 0.7 -- Remove GMT from detailed event view?
by peterr on 2005/11/23 0:06:57

Quote:

Ace_Armstrong wrote:
I have no idea how to do any of that. I'm a design guy, not a programmer.


Then you may have to possibly hire someone to debug it and fix it ?
Re: PiCal 0.7 -- Remove GMT from detailed event view?
by Ace_Armstrong on 2005/11/22 13:50:34

Quote:

peterr wrote:
Quote:

Ace_Armstrong wrote:
I can't find any reference to "640" or "630" anywhere in the code. I have gone through literally every file in the module and every file in the "common" directory.


Have a look at the db, the table name is "xoops_tplsource", and there are several occurances of '640' there. If I look in the corresponding table called "xoops_tplfile", the template files that have those values (in the db) are:

* pical_print.html
* pical_event_list.html

Sometimes the template row in the db is not the same as the template sitting in a path on the server.


Actually, I had alrady found those when I posted and changed them. It did not affect the output.

*sigh*
Re: PiCal 0.7 -- Remove GMT from detailed event view?
by Ace_Armstrong on 2005/11/22 13:49:34

Quote:

peterr wrote:
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.html

I 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.


I have no idea how to do any of that. I'm a design guy, not a programmer.

Who's Online

210 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits