- Posts: 7902
mod_joomdle_randomquestion
- Antonio Durán
-
- Offline
- Moderator
-
Can you try changing this at the start of modules/mod_joomdle_randomquestion/tmpl/default.php:
Please Log in or Create an account to join the conversation.
- rob kuhlig
- Topic Author
- Offline
- New Member
-
- Posts: 15
any hints? Thanks Rob
SORRY your hint was allready there- haven't seen the second page :blush: - I'll try it
Please Log in or Create an account to join the conversation.
- rob kuhlig
- Topic Author
- Offline
- New Member
-
- Posts: 15
now it is working - we had to change some more in modules/mod_joomdle_randomquestion/tmpl/default.php:
var url='index.php?option=com_joomdle&format=raw&task=question.get_correct_answer’;
to
var url='<?php echo $_jroot; ?>index.php?option=com_joomdle&format=raw&task=question.get_correct_answer’;
cu rob
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7902
Please Log in or Create an account to join the conversation.
- Henry Twist
- Offline
- New Member
-
- Posts: 2
I have the same problem above but it's not solved yet. I did as your instruction and others here but it doesn't work. I can only do 1 question and i cannot get the new one. I'm stuck here.
Please help me. my webite: www.ettvietnam.net
I'm using Joomla 2.5x and Moodle 2.2x
Many thanks
Please Log in or Create an account to join the conversation.
- Henry Twist
- Offline
- New Member
-
- Posts: 2
rob kuhlig wrote: servus
now it is working - we had to change some more in modules/mod_joomdle_randomquestion/tmpl/default.php:
var url='index.php?option=com_joomdle&format=raw&task=question.get_correct_answer’;
to
var url='<?php echo $_jroot; ?>index.php?option=com_joomdle&format=raw&task=question.get_correct_answer’;
cu rob
hi Rob,
I just follow what you told but it still not work. Maybe i did something woring in default.php. Could you kindly send me the edited mod. I really appreciate that. Many many thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7902
If it does not work for you, you may try checking errors in browser console, to see if there is something there.
Please Log in or Create an account to join the conversation.
- rob kuhlig
- Topic Author
- Offline
- New Member
-
- Posts: 15
in the default template (line 70 and 71) you use
$_jroot has an including slash at the end, so the URL is built with two slashes here.
Also you should provide an alt-attribute and a self-closing tag here for valid HTML. Our solution here is now
Best
Rob
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7902
Please Log in or Create an account to join the conversation.