- Posts: 49
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
HTML tags
- danika
- Topic Author
- Offline
- Senior Member
Less
More
9 years 10 months ago - 9 years 10 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
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 10 months ago by danika. Reason: punctuation
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
9 years 10 months ago #110329
by DenisChenu
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.
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
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago - 9 years 10 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!
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 10 months ago by danika.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
9 years 10 months ago #110344
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
9 years 10 months ago #110353
by DenisChenu
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.
Replied by DenisChenu on topic HTML tags
I think there are a lack of explanation here ...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 .
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
9 years 10 months ago #110358
by Ben_V
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)
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:
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
9 years 10 months ago - 9 years 10 months ago #110364
by DenisChenu
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.
Replied by DenisChenu on topic HTML tags
With Ben_V explanation, i better understand now ....
In startpage.pspl : try :
PS: it's not the browser tab : but the page title.
PS2: Benoit : you never remind to use EM before JS
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 10 months ago by DenisChenu.
The following user(s) said Thank You: Ben_V
The topic has been locked.
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
- danika
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
9 years 10 months ago - 9 years 10 months ago #110379
by Ben_V
...
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)
Replied by Ben_V on topic HTML tags
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.danika wrote: Ben_V's suggestion worked like a charm.
...
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!DenisChenu wrote: ...you never remind to use EM before JS.
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 10 months ago by Ben_V.
The topic has been locked.