- Posts: 33
R0.22 and earlier: No Longer Supported
[Solved] Course list
- Graham Nelmes
- Topic Author
- Offline
- Junior Member
-
Less
More
15 years 9 months ago - 15 years 9 months ago #1
by Graham Nelmes
[Solved] Course list was created by Graham Nelmes
Help please - I have made some progress with installing and can get tit to display the courses in moodle however when I selct a course I get this.
course_info; $itemid = JoomdleHelperContent::getMenuItem(); ?>
Category:
Summary:
Start Date: 01-01-1970
Enrolment duration: Unlimited
Topics:
Course Topics
Course Grading System
Course Teachers
clicking on course topics/teachers produces no results even though the details are there - any ideas?
course_info; $itemid = JoomdleHelperContent::getMenuItem(); ?>
Category:
Summary:
Start Date: 01-01-1970
Enrolment duration: Unlimited
Topics:
Course Topics
Course Grading System
Course Teachers
clicking on course topics/teachers produces no results even though the details are there - any ideas?
Last edit: 15 years 9 months ago by Antonio Durán.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Course list
Hi. That looks really strange. You are seeing bits of code instead of actual output.
Also, the data is not showing up (category,summary...).
I don't know what is happening, but first, I would try to reinstall the joomdle component, to check if there was some kind of file corruption...
You mention you made some progress.. what difficulties did you have installing?
Antonio
Also, the data is not showing up (category,summary...).
I don't know what is happening, but first, I would try to reinstall the joomdle component, to check if there was some kind of file corruption...
You mention you made some progress.. what difficulties did you have installing?
Antonio
The topic has been locked.
- Graham Nelmes
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago #3
by Graham Nelmes
Replied by Graham Nelmes on topic Re: Course list
I uninstalled the Joomdle component and then reinstalled but I still have the same output.
I didn't have any particular trouble when I first installed just need to find the right settings.
I didn't have any particular trouble when I first installed just need to find the right settings.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Course list
Ok, then we will have to investigate more 
First: you say that the component is showing the course list correctly?
When you click on a course, you get the error. Can you give me the url you go to following the link? (domain not needed).
Antonio
First: you say that the component is showing the course list correctly?
When you click on a course, you get the error. Can you give me the url you go to following the link? (domain not needed).
Antonio
The topic has been locked.
- Graham Nelmes
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago - 15 years 9 months ago #5
by Graham Nelmes
Replied by Graham Nelmes on topic Re: Course list
Yes this is it.
joomla/index.php?option=com_joomdle&view=detail&course_id=2&Itemid=
Thanks
joomla/index.php?option=com_joomdle&view=detail&course_id=2&Itemid=
Thanks
Last edit: 15 years 9 months ago by Graham Nelmes.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Course list
I can't understand what is happening.
The file joomla/components/com_joomdle/views/detail/tmpl/default.php starts like this:
--
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
...
--
So, the only way I can imagine to get your output is messing this file so the php tags are wrong....
Can you please check your file and see if there is any error?
Antonio
The file joomla/components/com_joomdle/views/detail/tmpl/default.php starts like this:
--
<?php defined('_JEXEC') or die('Restricted access'); ?>
<?
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
...
--
So, the only way I can imagine to get your output is messing this file so the php tags are wrong....
Can you please check your file and see if there is any error?
Antonio
The topic has been locked.
- Graham Nelmes
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
15 years 9 months ago #7
by Graham Nelmes
Replied by Graham Nelmes on topic Re: Course list
<?
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
Yes I did have this but there is a php missing. This corrected the problem.
Thanks
<?php
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
Yes I did have this but there is a php missing. This corrected the problem.
Thanks
<?php
$course_info = $this->course_info;
$itemid = JoomdleHelperContent::getMenuItem();
?>
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7861
15 years 9 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic Re: Course list
That is very strange, as the code is full of <? tags and not <?php, and other views are working... no idea why this one is not.
Also, no one reported this problem before.
If you find anything else about this issue, please share, as it might help others.
Antonio
Also, no one reported this problem before.
If you find anything else about this issue, please share, as it might help others.
Antonio
The topic has been locked.