Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

HTML tags

  • danika
  • danika's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago - 9 years 8 months ago #110324 by danika
HTML tags was created by danika
Hi,

I've noticed that html tags placed in the survey title show up in browser tabs. To increase the size of the title I tagged it with the <h2></h2> tags, and they now show in the browser tab. If there is a suggested work around I would be interested in hearing it? Version is 2.05+ and browser is FF 30.0.

Cheers
Last edit: 9 years 8 months ago by danika. Reason: punctuation
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago #110329 by DenisChenu
Replied by DenisChenu on topic HTML tags
Hi,

Really don't understand. What is the browser tab ? To increse heigth of the title, you can update the template directly : grouptitle.pstpl for example.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: danika
The topic has been locked.
  • danika
  • danika's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago - 9 years 8 months ago #110343 by danika
Replied by danika on topic HTML tags
Hi Denis,

I suspected it was there somewhere, but didn't know where exactly to look. Will have a look and see what we can do. However, applying HTML directly to text elements should not be, and ordinarily are not, interpreted this way. This might be considered a minor 'bug' for the developers to look at.

To answer your question about what is a browser tab, there is a good technical description of tabs, their history and development found here .

Thanks kindly!
Last edit: 9 years 8 months ago by danika.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago #110344 by tpartner
Replied by tpartner on topic HTML tags
You cannot use HTML tags in the survey title. If you need to change the way it is displayed, you can modify the template files - template.css and/or startpage.pstpl.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago #110353 by DenisChenu
Replied by DenisChenu on topic HTML tags

danika wrote: To answer your question about what is a browser tab, there is a good technical description of tabs, their history and development found here .

I think there are a lack of explanation here ...

For LS admin part ? For LS public part (taking survey).

What do you want to change ?

Please provide some screenshot or mockup.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
9 years 8 months ago #110358 by Ben_V
Replied by Ben_V on topic HTML tags
Hi,

As said by Tony and Denis, there is no difficulty in applying styles directly somewhere in the template

There is no good reason to use html tags in the title.... excepting for <sup></sup> and <sub></sub>, but as you have already noticed, those tags will appear in the browser title....

People really needing some survey title like: " Survey about CO2 ",
can try to use <sub></sub> tags in the survey name and control browser title using javascript:
Code:
<script type="text/javascript" charset="utf-8">
var newtitle = " Survey about CO2 ";
function ChangeTitle() { document.title = newtitle; } ChangeTitle();
</script>

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: danika
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago - 9 years 8 months ago #110364 by DenisChenu
Replied by DenisChenu on topic HTML tags
With Ben_V explanation, i better understand now ....

In startpage.pspl : try :
Code:
<title>{strip_tags(SURVEYNAME GROUPNAME)}</title>

PS: it's not the browser tab : but the page title.
PS2: Benoit : you never remind to use EM before JS ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 8 months ago by DenisChenu.
The following user(s) said Thank You: Ben_V
The topic has been locked.
  • danika
  • danika's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #110372 by danika
Replied by danika on topic HTML tags
Thanks everyone for the several suggestions. I am sure that along with this I'll be able to resolve the issue of style tags displaying in the browser tabs.

Best -

Dani
The topic has been locked.
  • danika
  • danika's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago - 9 years 8 months ago #110374 by danika
Replied by danika on topic HTML tags
For the benefit of those reading the thread, Ben_V's suggestion worked like a charm.

Cheers!
Last edit: 9 years 8 months ago by danika. Reason: typo!
The topic has been locked.
More
9 years 8 months ago - 9 years 8 months ago #110379 by Ben_V
Replied by Ben_V on topic HTML tags

danika wrote: Ben_V's suggestion worked like a charm.

Thanks for the feedback but for people using a version ≥1.92 and just wanting to remove html tags and not to change the page title, Deni's solution is better.

...

DenisChenu wrote: ...you never remind to use EM before JS.

The problem is not exactly to "remind" but rather to know/discover all the fantastics EM functions available. It's easiest for someone with strong and extensive prior PHP knowledge; For other mortals, like me, it needs more time!
Hopefully, LS forum it's a very good place to go further ;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 9 years 8 months ago by Ben_V.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose