PEAK XOOPS - hide "coming events" block when no coming events in englishin japanese

hide "coming events" block when no coming events

List posts in the topic

question hide "coming events" block when no coming events

msg# 1
depth:
0
Previous post - Next post | Parent - Children.1 | Posted on 2006/7/13 7:13
fallenturtle  二等兵   Posts: 5
I must say, I've tried all the calendar modules for xoops, and thus far this is the best one... but it's missing one feature. I'd like the "coming events" block (pical_coming_schedule) to only appear when there are events coming up. I see that the block template has "if $block.num_rows == 0", so it can tell that there are no events, but how can I get it to not even display the block at all. I've been trying to mess around with the pical_coming_schedule_show_tpl function from pical_coming_schedule.php since it's (I assume) "return $block;" that actually tells xoops to display it, so I was trying to figure out how to have it check num_rows before returning $block. is it something like this?

	if( $num_rows > 0) {
	return $block ; } 


I'm pretty much faking my way through PHP, so I apolgize if I'm seeming retarded. :/

Thanks!
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!