[Solved] VM product link open in _top instead of wrapper?

  • Michelle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago - 14 years 11 months ago #1 by Michelle
Hey everyone!

I've been working LONG and HARD trying to get everything working with Joomla, Joomdle, Moodle, and Virtuemart. It's been fun and I can't say how grateful I am that this program is available!

Just a quick question:

I have Moodle opening in a wrapper in Joomla. This is fine, except that when I click on the product link on the course page (that will take me to Virtuemart's product page for that course), it opens in the wrapper as well.

Is there any sort of code I can add to the "enrol_joomdle_message" in Administration>Courses>Enrollments>Joomdle that will open the links in "_top"?

This is what I have currently:
Code:
<h1>Register Now!</h1>You can purchase the course via this link: <br> BUY_COURSE_URL

I've tried adding this:
Code:
<h1>Register Now!</h1>You can purchase the course via this link: <br> <a href=BUY_COURSE_URL target=_top>BUY_COURSE_URL</a>

But that doesn't work.

Anyone know how I can open these links in _top rather than the wrapper? Otherwise I might have to ditch the wrapper...

Thank you!

-Michelle
Last edit: 14 years 11 months ago by Chris.

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

More
14 years 11 months ago #2 by Antonio Durán
Hi there.

Thanks for the tip. I will try to replicate it locally later today and try to come back with a fix.

Antonio

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

More
14 years 11 months ago #3 by Antonio Durán
Hi again.

Took some minutes to look into this. I already fixed it for next release, which will be out this week.

Anyway, if you want to fix it now, edit:
moodle/enrol/enrol.html

Look for this:
$url = "<a href=\"$url\">$url</a>";
Change by:
$url = "<a target='_top' href=\"$url\">$url</a>";

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

  • Michelle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 11 months ago #4 by Michelle
Awesome! It worked fantastically!

The file is in Moodle>Enrol>Joomdle>enrol.html

:)

Blessings,

Michelle

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