HTML tags

More
2 years 11 months ago - 2 years 11 months ago #110324 by danika
danika created the topic: HTML tags
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: 2 years 11 months ago by danika. Reason: punctuation

Please Log in to join the conversation.

More
2 years 11 months ago #110329 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: danika

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #110343 by danika
danika replied the 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: 2 years 11 months ago by danika.

Please Log in to join the conversation.

More
2 years 11 months ago #110344 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

More
2 years 11 months ago #110353 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #110358 by Ben_V
Ben_V replied the 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:
<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

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #110364 by DenisChenu
DenisChenu replied the topic: HTML tags
With Ben_V explanation, i better understand now ....

In startpage.pspl : try :
<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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 years 11 months ago by DenisChenu.
The following user(s) said Thank You: Ben_V

Please Log in to join the conversation.

More
2 years 11 months ago #110372 by danika
danika replied the 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

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #110374 by danika
danika replied the topic: HTML tags
For the benefit of those reading the thread, Ben_V's suggestion worked like a charm.

Cheers!
Last Edit: 2 years 11 months ago by danika. Reason: typo!

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #110379 by Ben_V
Ben_V replied the 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: 2 years 11 months ago by Ben_V.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now