R0.22 and earlier: No Longer Supported

[Solved] Auth plugin

More
15 years 9 months ago #21 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
When you say you tried and nothing happened, what do you mean?
Are you sure that $file is empty?
I usually do: echo "XX"; print_r ($file);
So that i am sure that the line is being executed.

Just to be sure: you have enabled the plugin in Moodle right?
The topic has been locked.
More
15 years 9 months ago - 15 years 9 months ago #22 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Hi

Nothing happens. I assume there should be some sort of visible output.

And I would have expected a file called "dump.txt" to appear in the joomdle/mod_joomdle_courses/ directory?

Attaching screenshot of enabled plug in

Last edit: 15 years 9 months ago by tom maguire.
The topic has been locked.
More
15 years 9 months ago - 15 years 9 months ago #23 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
That is way i suggested the echo "XX"; It leaves out possible writting permissions problems...
EDIT: In Moodle we had to do it because it was executing as a web service, and so we dont get to see its output.

Can you test the echo & print? We need to know if the file is coming empty or somthing strange is happening.

Antonio
Last edit: 15 years 9 months ago by Antonio Durán.
The topic has been locked.
More
15 years 9 months ago #24 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
I did add echo "XX" and nothing happened

I assume that should generate screen output?
The topic has been locked.
More
15 years 9 months ago #25 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Let's recap :)

We are in the joomdle courses module.
You see the module with the warning message for foreach.
But you don't get to see the XX you just entered?

Please, post the error message for the module, so i can see number lines, so there is no confussion on what we are looking at :)
The topic has been locked.
More
15 years 9 months ago #26 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Sure. Have to stress I'm a real beginner- and I don't doubt for a minute I am doing something stupid. :blush:

However this is the error message:

Warning: Invalid argument supplied for foreach() in /home/vwgozor/public_html/components/com_joomdle/views/joomdle/tmpl/default.php on line 21

Courses

And this is a screenshot of the error
The topic has been locked.
More
15 years 9 months ago #27 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
Hi. No worries, we will get it to work :)

I thought we said we were testing the module, not the component. That error is from the component.

If you are putting the echo and print in module code, that is the reason nothing shows up.
It is easier to debug the module, so please install and enable it and tell me what you see.
The topic has been locked.
More
15 years 9 months ago #28 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
OK

this is a screenshot of the module manager with another module installed.

Is this right?
The topic has been locked.
More
15 years 9 months ago #29 by Antonio Durán
Replied by Antonio Durán on topic Re:Auth plugin
I dont see any pics.

But i don't need to see the modlue manager. If you have installed and enabled it, you have to see it in Joomla fron-end. If you did not change the name, it is called Joomdle Courses.
Can you see that?If not, maybe you are puttind the module in a position that does not exit in your layout.
The topic has been locked.
More
15 years 9 months ago - 15 years 9 months ago #30 by tom maguire
Replied by tom maguire on topic Re:Auth plugin
Last edit: 15 years 9 months ago by tom maguire.
The topic has been locked.