Any questions about Documents Sellers, post it here .

script

  • bryan keller
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #18863 by bryan keller
script was created by bryan keller
I'm trying to place a google plus badge into the description page for a document so that I can connect it to a Google Plus Page. I could always add the google script at the head of the website itself but I would prefer to use the inline script and just place it within the description.

DS strips out the opening and closing tags for the script. Is there a way to prevent this?

Thanks,

Bryan

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

More
12 years 3 months ago #18914 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: script
Hi Bryan

Maybe you can use the solution below:

1. Open the file administrator/components/com_dms/controller.php

2. Find the code below under save_document function (line 353 if you are using latest version)
Code:
$post = JRequest::get('post', JREQUEST_ALLOWHTML);
3. Change it to :
Code:
$post = JRequest::get('post', JREQUEST_ALLOWRAW);

After that, you should be able to insert the script into description of Document.

Regards,

Tuan

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

  • bryan keller
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #19248 by bryan keller
Replied by bryan keller on topic Re: script
Unfortunately that did not do it. Let me show you an example of what it does: I was planning to use rich snippets to markup my html so that google will find the reviews, descriptions, etc. Well here is the html that I put into the document seller product description:

<div itemscope itemtype=" schema.org/SoftwareApplication ">

So, then I save the document and immediately upon looking at the html has been changed to this:

<div itemscope=" schema.org/SoftwareApplication ">

You see how it has stripped out the itemscope?

There has to be some way to prevent this from happening.

Thanks,

Bryan

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

  • bryan keller
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #19249 by bryan keller
Replied by bryan keller on topic Re: script
Also I wanted to ask you if there is way to get Document seller to work with jreviews?

Thanks,

Bryan

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