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

displaying category in the event list

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 .4 .5 .6 | Posted on 2008/9/12 20:05 | Last modified
nitinshah12  ¸àĹ   Posts: 48
The event list option has the following heading currently:

Submitter
Beginning DateTime
Finishing DateTime
Summary
Recur Rules

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.
Votes:11 Average:7.27
Previous post - Next post | Parent - No child | Posted on 2008/9/22 6:11
GIJOE  ÀèǤ·³Áâ   Posts: 4110
I don't remember the assigning rules.

Try <{""|var_dump:$event}> to show it.
Votes:13 Average:9.23
Previous post - Next post | Parent - Children.1 | Posted on 2008/9/25 1:28
nitinshah12  ¸àĹ   Posts: 48
My knowledge about php is very poor, can you please tell me on what to do with

<{""|var_dump:$event}>

As in do i need to search for this in the piCal module folder.
Votes:13 Average:9.23
Previous post - Next post | Parent - No child | Posted on 2008/10/1 12:22
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Quote:

nitinshah12 wrotes:
My knowledge about php is very poor, can you please tell me on what to do with

<{""|var_dump:$event}>
Learn how to edit the templates somewhere
Votes:17 Average:8.82
Previous post - Next post | Parent - No child | Posted on 2009/4/6 5:52
nitinshah12  ¸àĹ   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:17 Average:6.47
Previous post - Next post | Parent - No child | Posted on 2009/4/6 6:32
nitinshah12  ¸àĹ   Posts: 48
Well i thought all my problems are solved, well it seems not entirely.
I also wish to show the category of the event in the coming block event. I thought using the same expression
<{$event.catname}>
will solve my problem but it seems not. The category name displays in the list view for the event after the above said hack but i am still not able to display the event category in the coming event block.
Can some one kindly help me. Pls.......
Votes:14 Average:9.29

none Comfy Ear Plugs

msg# 1.5
Previous post - Next post | Parent - No child | Posted on 2009/11/19 19:41
Guests    Posts: 0
Foam ear plugs offer excellent value for money. Although our cheapest range of ear plugs then offer a noise reduction ratio (NRR) of up to 29 decibels making them ideal for anyone looking for hearing protection for a music concert or within an industrial environment.
http://www.comfyearplugs.com
Votes:12 Average:8.33
Previous post - Next post | Parent - No child | Posted on 2009/11/26 16:08
Guests    Posts: 0
how's the development on your problem now?
have you managed to solve it?

http://www.iva.best-debt-consolidation.co.uk
Votes:7 Average:8.57

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!