Welcome, Guest
Username: Password: Remember me

TOPIC: HTML tags

HTML tags 3 months 3 weeks ago #110324

  • danika
  • danika's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 46
  • Karma: 0
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: 3 months 3 weeks ago by danika. Reason: punctuation
The administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110329

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
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
The administrator has disabled public write access.
The following user(s) said Thank You: danika

HTML tags 3 months 3 weeks ago #110343

  • danika
  • danika's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 46
  • Karma: 0
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: 3 months 3 weeks ago by danika.
The administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110344

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4271
  • Thank you received: 804
  • Karma: 368
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110353

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
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.
The administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110358

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1114
  • Thank you received: 251
  • Karma: 78
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

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...
The administrator has disabled public write access.
The following user(s) said Thank You: danika

HTML tags 3 months 3 weeks ago #110364

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
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 ;)
Last Edit: 3 months 3 weeks ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V

HTML tags 3 months 3 weeks ago #110372

  • danika
  • danika's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 46
  • Karma: 0
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 administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110374

  • danika
  • danika's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 46
  • Karma: 0
For the benefit of those reading the thread, Ben_V's suggestion worked like a charm.

Cheers!
Last Edit: 3 months 3 weeks ago by danika. Reason: typo!
The administrator has disabled public write access.

HTML tags 3 months 3 weeks ago #110379

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1114
  • Thank you received: 251
  • Karma: 78
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

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 months 3 weeks ago by Ben_V.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.220 seconds
Donation Image