1
katowulf2
Re: Blank page on user.php
  • 2006/8/1 19:28

  • katowulf2

  • Just popping in

  • Posts: 14

  • Since: 2005/1/14


I found a fix for this problem.



2
katowulf2
Re: Blank page on user.php
  • 2006/8/1 19:16

  • katowulf2

  • Just popping in

  • Posts: 14

  • Since: 2005/1/14


I posted a detailed description of this problem on the author's website.

The problem occurs when viewing userinfo.php while the page attempts to render all of the posts by this user. Specifically, when it tries to display any calendar events that this user has entered in the piCal module.

The problem can be worked around by changing the call to mysql_fetch_object($rs) to mysql_fetch_array($rs).

Then, all calls in the while() { ... } loop must be changed from object to array references:
$event->start_date becomes $event['start_date']
$event->allday becomes $events['allday']
etc..

See the link above for more info. Hopefully the author will reply with a more elegant solution.



3
katowulf2
Re: mass avatar load?
  • 2005/4/13 17:42

  • katowulf2

  • Just popping in

  • Posts: 14

  • Since: 2005/1/14





4
katowulf2
Re:Integrate phpicalendar?
  • 2005/1/14 18:30

  • katowulf2

  • Just popping in

  • Posts: 14

  • Since: 2005/1/14


I was able to get xCal running on my box (http://www.zentrack.net), and it looks great.

I fixed the rss links by hacking xCal/functions/init.inc.php:

<?php 
// jared-2002.10.30, I want to make sure my published calendars are world-read/writeable
// so I have this making sure they all are. This should be commented out/deleted
// for shipping versions. This is a convenience so when I commit, changes are made and
// I don't get errors.
//chmod(BASE.'calendars/School.ics',0666);

// uncomment when developing, comment for shipping version

if (!defined('BASE')) define('BASE''./');
if( !isset(
$xoopsModuleConfig) ) {
  require(
BASE"../../mainfile.php");
}
if( !isset(
$xoopsModuleConfig) ) {
  
$url_arr explode('/',strstr($_SERVER['REQUEST_URI'],'/modules/'));
  
$module_handler =& xoops_gethandler('module');
  
$xoopsModule =& $module_handler->getByDirname($url_arr[2]);
  
$config_handler =& xoops_gethandler('config');
  
$xoopsModuleConfig =& $config_handler->getConfigsByCat(0$xoopsModule->getVar('mid'));
}




TopTop



Login

Who's Online

115 user(s) are online (51 user(s) are browsing Support Forums)


Members: 0


Guests: 115


more...

Donat-O-Meter

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

Latest GitHub Commits