My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow JCal Client 1.6.xarrow 1.6.x General Discussionarrow SOLVED: Can't see anything in Category View JCal1.6 - J!1.5RC3
Pages: [1] 2
Print
Author Topic: SOLVED: Can't see anything in Category View JCal1.6 - J!1.5RC3  (Read 1261 times)
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« on: December 13, 2007, 12:59:30 PM »

JCalv1.6.176_beta New Install not upgrade
JCal theme: default
J!1.5RC3 English
PHP 5.2.4

Guys - I've just paid for and downloaded your software after hunting around the web for a J!1.5 plug-in. It really is superb. Thanks for a great interface and for the modules. They work exceptionally well. 

My only issue is that when I click on the category view I don't get anything listed even though I have events in the calendar for this month (December), category view is enabled in the settings and I have 6 categories with assigned events in 3 of the categories.

Any ideas...? I'm not sure what else I can give you other than a screen shot. Here's the month view:



Here's the category view:



Here's the source code for the category view - obviously, there isn't anything there:

Code:
<!-- Start standard table -->
<table align="center" width="100%" cellspacing="0" cellpadding="0" class="maintable">
<tr>
<td class="tableh1" colspan="3">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td><h2 class="title">Categories View</h2></td> <td align="right" class="today">Thursday, December 13, 2007</td> </tr>
</table>

  </td>
</tr>
</table>
<!-- End standard table -->

Also, If I click on a category at the bottom of the calendar which has obviously got an event in it e.g. Lectures, I get nothing:



whereas the calendar is correctly colour coding lectures and showing it under the correct category in the backend admin panel.
« Last Edit: December 20, 2007, 11:57:37 AM by V-man » Logged
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #1 on: December 17, 2007, 04:46:38 AM »

Thanks to PepsimanAB, I noticed that there are also a few variables missing from the declaration at the top of theme.php

The key one to get the category listing back is: $template_cats_list
Add this to the list, and the category listing now works. 

However when you click on a category, it stills says there are no items to display...

One step there, one more to go... any further ideas anyone?
« Last Edit: December 17, 2007, 05:47:07 AM by cjcj01 » Logged
PepsimanAB
Moderator
Newbie
*****

Karma: +0/-0
Posts: 43


View Profile Email
« Reply #2 on: December 17, 2007, 05:39:53 AM »

Quote
My only issue is that when I click on the category view I don't get anything listed even though I have events in the calendar for this month (December), category view is enabled in the settings and I have 6 categories with assigned events in 3 of the categories.

The category view is almost the exact same fix as the search issue.

Near the top of /components/com_jcalpro/themes/default/theme.php, where the global variables are being defined, add $template_cats_list to the list of global variables and it seems to fix it for me.  Just in case you're not familiar with editing php, make sure to separate it from the other variables with a ","

Quote
Also, If I click on a category at the bottom of the calendar which has obviously got an event in it e.g. Lectures, I get nothing:

Clicking on the category at the bottom of the monthly view works properly for me on both Joomla 1.0 and 1.5.  Without being able to duplicate it, it'll be hard for me to troubleshoot it.  Sorry.  I'm using the nightly build of Joomla 1.5 from a week or so ago, so if you're using RC3 then maybe it's an issue that was fixed in one of the newer Joomla builds.  Or it could be 1 of 1000 other things...
Logged

Anthony
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #3 on: December 17, 2007, 05:52:32 AM »

Hey PepsimanAB - thanks! I just realised the problem a couple of seconds before your post!! Thanks!

I'll try updating Joomla1.5 and let you know.

I thought there might be an issue with the function theme_cat_events_list but if you're not getting the error also, then as you say, it may be somewhere else.

Thanks again for getting back to me - I really appreciate it.



Logged
PepsimanAB
Moderator
Newbie
*****

Karma: +0/-0
Posts: 43


View Profile Email
« Reply #4 on: December 17, 2007, 06:47:23 AM »

I guess I should've hit refresh before I posted to see if anyone else had.  I've got a bad habit of starting replies and then switching to other tabs to check my email in the meanwhile...

You're right about function theme_cat_events_list being the function that lists out all events in any given category.

If it's showing "There are no events in this category", then it's probably reading the template properly, it's just not finding any data to show in it.

You might try adding
Code:
echo "Results Array is: ";
print_r($results);
to the beginning of that function. 

If it's not getting any data, it will just show "Results Array is: " with nothing after it.

If it's finding data, then it will show something like
Code:
Results Array is: Array ( [0] => Array (
[cal_name] => Main [date] => Wednesday, December 26, 2007 (8:00AM)
[start_date] => 2007-12-26 08:00:00 [next_recurrence_stamp] => 1198674000
[link] => href='http://joomla/index.php?option=com_jcalpro&Itemid=64&extmode=view&extid=2'
[extid] => 2 [title] => Day After Christmas
[description] => This is the main calendar ) )

Is it working with any categories, or is it just 1 or 2 that are giving you problems?  Hopefully someone else that's having this problem might be able to suggest something.  It's hard to troubleshoot when it's working properly for me.
Logged

Anthony
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #5 on: December 17, 2007, 07:17:08 AM »

Yes - It's reading the template properly as, as you say, it's showing no_events: There are no events in this category.

I've tried adding your code and yes, I just get the former result of:

Results Array is:

And then nothing further.  So it's not finding the data. And yes, it happens for all categories.

It almost feels like the problem above where the variable isn't declared.  However in the back-end admin panel all the events are correctly listed in categories as they are in the front end month calendar display.  So the events are sitting correctly categorised in the database.

Out of interest, the following variables from theme.php were also missing from the global list at the top of the code - although they look admin panel related:

$template_calendar_form, $template_cat_form, $template_cat_legend

Thanks again and I'll hunt further.
Logged
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #6 on: December 17, 2007, 07:52:46 AM »

Anthony - I've just done a clean install on 1.5RC3 and the category listing is working once I added: $template_cats_list to theme.php

oh dear - I've got a hunt on my hands now!
Logged
PepsimanAB
Moderator
Newbie
*****

Karma: +0/-0
Posts: 43


View Profile Email
« Reply #7 on: December 17, 2007, 07:57:46 AM »

Good luck, I think you'll need it.
Logged

Anthony
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #8 on: December 17, 2007, 08:23:37 AM »

Good luck, I think you'll need it.

Thanks!  - Uninstalled, deleted jos_jcalpro tables, re-installed, modified theme.php as discussed and all working fine.

Thanks again for your time and pointer to the $variable list.
Logged
V-man
Administrator
Hero Member
*****

Karma: +4/-0
Posts: 1741


Ignorance is curable, stupid is forever.


View Profile
« Reply #9 on: December 20, 2007, 11:57:09 AM »

Great bug fixing folks. This fix will be added to the codebase and subsequently released.
Logged

*** Please read this post before posting in the forum. ***

Support questions via PM will be ignored. Please use the forum for all support-related enquiries.
cbfan
Newbie
*

Karma: +0/-0
Posts: 1


View Profile
« Reply #10 on: December 29, 2007, 01:02:52 PM »

I just relaunched a site with a complete Joomla redesign. We are using JCal for my radio show listings but don't get anything in category view which I want to use as my default view. My programmer is away for the holidays and although I can get around and figure out most coding, I don't want to mess anything up with this one.

I would like to fix this asap but I am not an experienced enough programmer to figure out how to apply the fixes without some step-by-step guidance. Would anyone be able to give me a helping hand?

Thanks
cbfan
Logged
pevo58
Newbie
*

Karma: +0/-0
Posts: 7


View Profile
« Reply #11 on: January 03, 2008, 06:03:03 PM »

Hello,

Joomla 1.5. rc4 / Jcal 1.6

Same problem and I added the $template_cats_list variable to themes.php. Now I can see the categories but clicking on it does not give any event result. Is the solution for this problem a re-install of the component and then changing again the themes.php with $template_cats_list ??

Peter.
Logged
cjcj01
Newbie
*

Karma: +0/-0
Posts: 23


View Profile
« Reply #12 on: January 04, 2008, 04:27:54 AM »

Hello,

Joomla 1.5. rc4 / Jcal 1.6

Same problem and I added the $template_cats_list variable to themes.php. Now I can see the categories but clicking on it does not give any event result. Is the solution for this problem a re-install of the component and then changing again the themes.php with $template_cats_list ??

Peter.

Peter,

See my post here:

http://dev.anything-digital.com/Forum/1.6.x-General-Discussion/2428-Bug-Category-List-View-and-Show-Past-Events/

If you go to your JCalPro settings and change the following setting:

Quote
jCalPro settings > Environment > Show past events

To No instead of Yes then does your category listing work properly now?
Logged
pevo58
Newbie
*

Karma: +0/-0
Posts: 7


View Profile
« Reply #13 on: January 04, 2008, 06:48:40 AM »

Hi,

Yes, it works now. I changed that parameter a few days ago back to 'YES' because at that moment I did not see the diffence. Now I now the diffence  Smiley

Thanks for your help.

Peter.
Logged
guillerone
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #14 on: January 23, 2008, 05:40:46 PM »

cjcj01: Your fix of turning the "Show past events" to NO fixed my problem of not showing the listing

The problem is that I DO want to see the past events, becouse it´s quite important for what I use the calendar for in my site.

Is there any other way to fix this or to bypass it? (like tell the admin settings to not show the past events, but doing it anyway)

Thanks a lot
G
Logged
Pages: [1] 2
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)