Check out the LimeSurvey source code on GitHub!

Putting Twitter button on end page of survey

More
5 years 10 months ago #57883 by Miriam01
Hi, I'm new to limesurvey, and have little clue what i'm doing!
I managed to get limesurvey installed on my server and created a experiment :)
What I would like to do is put a twitter button on the very last page (the: End Message) so that people can tweet my experiment link.
So, I put the twitter.com button code in the code of my debrief page...

<script src=" platform.twitter.com/widgets.js " type="text/javascript"></script>
<div>
<a href=" twitter.com/share " class="twitter-share-button"
data-url=" dev.twitter.com/pages/tweet_button "
data-via="DrMiriam"
data-text="Participants needed for online facial expressions experiment"
data-related="anywhere:The Javascript API"
data-count="vertical">Tweet</a>
</div>

However, when I save the page. The code is now stored as this....

<sc><x>ript src=" platform.twitter.com/widgets.js" ; type="text/javascript">
<div><a data-ur="" data-via="DrMiriam" data-text="Participants needed for online facial expressions experiment" data-related="anywhere:The Javascript API" data-count="vertical"><x>l=" dev.twitter.com/pages/tweet_button" ; class="twitter-share-button" href=" twitter.com/share" ; _fcksavedurl=" twitter.com/share">Tweet </x></a></div>
</x></sc></span>

So it seems to be putting wierd tags in the middle of the code. Does anyone have any ideas on how to stop this? It might be v.simple, but I've got no idea what i'm doing :unsure:
thanks, Miriam

Please Log in to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #57884 by Ben_V
Hey Miriam,

1st method:
- Go to Administration/ Global Setting (main panel )
- open 'Security tab'
- 'Filter HTML for XSS': Yes
(change the default option 'no')

That's all :)

2nd method:
Changing the default settings '$filterxsshtml' in your config-defaults.php file.... :blink:

Related doc (probably your new gold mine):
"This setting enables filtering of suspicious html tags in survey, group, questions and answer texts in the administration interface"
docs.limesurvey.org/Optional+settings&st...tions+for+LimeSurvey

BenoƮt

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 5 years 10 months ago by Ben_V.

Please Log in to join the conversation.

More
5 years 10 months ago #57885 by Miriam01
Brilliant it worked! Thank you so much! :woohoo:

So simple i s'pose, but only if you have the skill.. I have much to learn :)

Miriam X

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form