By Joroslav on Friday, 27 April 2018
Posted in General Issues
Likes 0
Views 638
Votes 0
How best to add a checkbox with your privacy policy?
I mean both in the module and in the component when asking a question.
Hi Joroslav,

Currently this is not possible. Only the TnC is available in the ask page.

For the module, TnC is not available unless you modify the codes.
·
Friday, 27 April 2018 12:06
·
0 Likes
·
0 Votes
·
0 Comments
·
What is TnC?
Where can I change module code? It can be done rewriting the template?
·
Friday, 27 April 2018 15:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joroslav,
What is TnC?
It stands for Terms and Conditions: http://take.ms/Cko5a
Where can I change module code? It can be done rewriting the template?
If you are referring to the 'Quick question' module, you can take a look at the following file.
JoomlaFolder/modules/mod_easydiscuss_quickquestion/tmpl/default.php
·
Friday, 27 April 2018 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
modifying the module I understand.
·
Friday, 27 April 2018 17:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Alright Joroslav.

In case you cannot find it, the TnC settings are located at Settings>General>General.
·
Friday, 27 April 2018 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, I've already found it
·
Friday, 27 April 2018 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome Joroslav and glad to know you found it.

Regards.
·
Friday, 27 April 2018 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
I would still need to insert a text HTML code in the TnC to link them.
How do I do that?
·
Friday, 27 April 2018 23:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Currently that is not possible to insert HTML code into TnC field from backend.

For now you can modify on this file -> JoomlaFolder/components/com_easydiscuss/themes/wireframe/comments/dialogs/comment.term.php

Under this line of code replace back your custom content.


<?php echo nl2br($this->config->get('main_tnctext')); ?>


We will fix this in next release version so user can able to insert HTML code in this section.

But remember backup your TnC content before you update in next release version.
·
Saturday, 28 April 2018 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm sorry, I do not understand exactly.
I found the code but I do not understand "Under this line of code replace your custom content."
·
Saturday, 28 April 2018 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
It okay, you can take a look of my attached file.
·
Saturday, 28 April 2018 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
I already understood it and this is how it is:

<content>
<p class="mb-10">
<?php //echo nl2br($this->config->get('main_tnctext')); ?>
Souhlasím s <a href="index.php?option=com_content&view=article&id=15:souhlas&catid=2:uncategorised" class="jcepopup" data-mediabox="1" type="text/html" data-mediabox-width="1200" data-mediabox-height="800">podmínkami ochrany osobních údajů</a>
</p>

<form data-form-response method="post" action="<?php echo JRoute::_('index.php');?>">
<?php echo JHTML::_('form.token');?>
</form>
</content>


I already understood it and this is how it is:
but it reports the error ajax. Try it at https://www.eshop-diochi.cz/index.php?option=com_easydiscuss&view=ask&Itemid=1123

But it would not be necessary to change this, but just tagged the text and the link indicated in the picture.

I tried this by transcribing the language, but the changes made to COM_EASYDISCUSS_TERMS_CHECKBOX will not be reflected.
·
Saturday, 28 April 2018 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
That was strange, i copied your exact code and paste into my locally, it seems fine.

Can you update your Joomla backend and FTP access so i can better have a check?
·
Saturday, 28 April 2018 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
you see that I do not.
It is true that somewhere I still use mootools.

But I think it would be better to resolve this by transcribing the existing text that is shown in the picture. I would then get better control over it.

Where do I enter your access data?
·
Sunday, 29 April 2018 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
now it reports an ajax error even when I return the original code.
·
Sunday, 29 April 2018 04:43
·
0 Likes
·
0 Votes
·
0 Comments
·
You can put your site backend and FTP access at http://stackideas.com/dashboard/site , this section only our moderators and your can able to access only.
·
Sunday, 29 April 2018 09:44
·
0 Likes
·
0 Votes
·
0 Comments
·
The login information is entered.

It is good to fix this error, but it would be much better for me to use a language solution. why does not language transcription work?
·
Sunday, 29 April 2018 16:33
·
0 Likes
·
0 Votes
·
0 Comments
·
jde to udělat přes přepsání jazyka a změnou kódu v /components/com_easydiscuss/themes/wireframe/ask/default.php¨

COM_EASYDISCUSS_I_HAVE_READ_AND_AGREED="Souhlasím s"
COM_EASYDISCUSS_TERMS_AND_CONDITIONS="podmínkami na ochranu osobních údajů"


change code from line


<div class="o-checkbox o-checkbox--inline t-mr--md">
<input type="checkbox" name="tnc-ask" id="tnc-ask" data-ed-ask-tnc-checkbox <?php echo ED::tnc()->hasAcceptedTnc('question') ? 'checked="checked"' : '' ?>/>
<label for="tnc-ask">
<?php echo JText::_('COM_EASYDISCUSS_I_HAVE_READ_AND_AGREED');?>
<!--<a href="javascript:void(0);" style="text-decoration: underline;" data-ed-ask-tnc-link>-->
<a href="index.php?option=com_content&view=article&id=15:souhlas&catid=2:uncategorised" class="jcepopup" data-mediabox="1" type="text/html" data-mediabox-width="1200" data-mediabox-height="800">
<?php echo JText::_('COM_EASYDISCUSS_TERMS_AND_CONDITIONS');?>
</a>
</label>
</div>


How to make sure that updates are not changed?

see at https://www.eshop-diochi.cz/index.php?option=com_easydiscuss&view=ask&Itemid=1123
·
Sunday, 29 April 2018 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joroslav,

If you want to keep your changes in "../components/com_easydiscuss/themes/wireframe/ask/default.php", you will have to copy the file and paste this as a template override file into the following directory(create directory if it does not currently exist).
JoomlaFolder/templates/current_template/html/com_easydiscuss/ask/default.php

template override documentation
·
Monday, 30 April 2018 13:10
·
0 Likes
·
0 Votes
·
0 Comments
·
I did it so I created a new theme of diochithemes.
Can it also be this way?
·
Monday, 30 April 2018 15:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joroslav,

Not sure what you mean here.

If you are using 'Eximium' template in Easydiscuss pages, then you would have to create the template override file in
JoomlaFolder/templates/eximium/html/com_easydiscuss/ask/default.php
·
Monday, 30 April 2018 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I have created a theme diochitheme from the theme wirefeame, which I edited and chose in easydicuss -> themes chosen as the default.
So I did not translate the template, but I created a new theme.
·
Monday, 30 April 2018 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joroslav,

Ah I understand now. You created a new custom theme then edited the theme file in that new theme.

Yes using this method to edit the file is fine, which means you do not need to apply template overrides in the template, and the changes is protected from future updates.

But do note that when new updates apply changes, fixes, or even new features to the theme files, only Stackideas themes will be updated, not custom themes.
·
Monday, 30 April 2018 17:12
·
0 Likes
·
0 Votes
·
0 Comments
·
that is clear to me.
I still have to consider what is better.
In my created theme, I can make changes that I can not overwrite in the template.
·
Monday, 30 April 2018 20:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Keep us update if you need any further assistance on this.
·
Monday, 30 April 2018 22:55
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you
·
Monday, 30 April 2018 23:39
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Monday, 30 April 2018 23:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post