mod_joomdle_randomquestion

More
11 years 11 months ago #11 by Antonio Durán
Replied by Antonio Durán on topic mod_joomdle_randomquestion
Hi Rob, thanks for the info.

Can you try changing this at the start of modules/mod_joomdle_randomquestion/tmpl/default.php:
Code:
$_jroot = JURI::base();
By:
Code:
$_jroot = JURI::root();

Please Log in or Create an account to join the conversation.

  • rob kuhlig
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago - 11 years 11 months ago #12 by rob kuhlig
Replied by rob kuhlig on topic mod_joomdle_randomquestion
Hello Antonio

any hints? Thanks Rob

SORRY your hint was allready there- haven't seen the second page :blush: - I'll try it
Last edit: 11 years 11 months ago by rob kuhlig.

Please Log in or Create an account to join the conversation.

  • rob kuhlig
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #13 by rob kuhlig
Replied by rob kuhlig on topic mod_joomdle_randomquestion
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

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic mod_joomdle_randomquestion
Great, thanks for the feedback. I will include your modification for next release.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago - 11 years 10 months ago #15 by Henry Twist
Replied by Henry Twist on topic mod_joomdle_randomquestion
Hi Antonio,

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
Last edit: 11 years 10 months ago by Henry Twist.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #16 by Henry Twist
Replied by Henry Twist on topic mod_joomdle_randomquestion

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.

More
11 years 10 months ago #17 by Antonio Durán
Replied by Antonio Durán on topic mod_joomdle_randomquestion
I have no idea why it does not work for you. Attached is updated package. I tested on my local J2.5 installation and it works fine.

If it does not work for you, you may try checking errors in browser console, to see if there is something there.


File Attachment:

File Name: mod_joomdl...6-01.zip
File Size:7.66 KB

Please Log in or Create an account to join the conversation.

  • rob kuhlig
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #18 by rob kuhlig
Replied by rob kuhlig on topic mod_joomdle_randomquestion
Hi,

in the default template (line 70 and 71) you use
Code:
]<img src="<?php echo $_jroot; ?>/media/joomdle/images/tick.png">
for calling the images.
$_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
Code:
<img src="<?php echo $_jroot; ?>media/joomdle/images/tick.png" alt="" />

Best
Rob

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #19 by Antonio Durán
Replied by Antonio Durán on topic mod_joomdle_randomquestion
Thanks for the info, I will uptade the module with your input for next release.

Please Log in or Create an account to join the conversation.