Welcome, Guest
Username: Password: Remember me

TOPIC: Putting Twitter button on end page of survey

Putting Twitter button on end page of survey 3 years 5 months ago #57883

  • Miriam
  • Miriam's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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
The administrator has disabled public write access.

Re: Putting Twitter button on end page of survey 3 years 5 months ago #57884

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1069
  • Thank you received: 235
  • Karma: 74
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 3 years 5 months ago by Ben_V.
The administrator has disabled public write access.

Re: Putting Twitter button on end page of survey 3 years 5 months ago #57885

  • Miriam
  • Miriam's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.111 seconds
Donation Image