PEAK XOOPS - Re: displaying category in the event list in englishin japanese

Re: displaying category in the event list

List posts in the topic

none Re: displaying category in the event list

msg# 1.3
depth:
1
Previous post - Next post | Parent - No child | Posted on 2009/4/6 5:52
nitinshah12  Corporal   Posts: 48
I want to add the heading category also. I have gone through the files in pical and know where to add the required code. But i m not able to find the code which will fetch the name of the category.

What i mean is that under the heading submitter the code to display the name of submitter is $event.submitter_info, for summary is $event.summary

in the same way i want the code that will display the appropriate category under the category heading.

Kindly let me know how to do this. 

After playing around with this module this is what i did to get the result

To declare the event added in the piCal/class/pical_xoops.php after line 776 under the option $events[] = array(
the following code
'catname' => $this->text_sanitizer_for_show( $this->categories[ intval( $event->categories ) ]->cat_title ) ,

In the pical_event_list.html the code used to display the title of the category used
<{$event.catname}>

Kindly let me know if this is safe to do as i do not know much about php so am not sure if it can compromise the safety of my website.

Thanks for the module, i just hope somebody takes care of the further development of this module.
Votes:18 Average:6.11

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!