Welcome to the LimeSurvey Community Forum

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

Tracking down a piece of code

More
10 years 11 months ago #121497 by supervinnie40
Hi all,

For a custom project I need to change a piece of styling. To do this I need to add a class to <div id="group-0">.

The problem is that the number in that class is generated. i.e. on page 1 it says "group-0", on page 2 it says "group-1" etc.etc.
Just above it it says "<!-- START THE GROUP -->".

So I'm trying to find the file where this piece of code is generated.
Any help is much appreciated.
The topic has been locked.
More
10 years 11 months ago #121499 by gabrieljenik
The code you are looking for is on the PHP side, so should be carefull when modifying them.
I gues, that what you are looking for is on the file "application/helpers/SurveyRuntimeHelper.php", line 1019

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The following user(s) said Thank You: supervinnie40
The topic has been locked.
More
10 years 11 months ago #121501 by supervinnie40
I'm well known with php, so editing isn't a problem. The whole survey is temporary also. It only needs to run 1 survey for 1 month and that's it. So no real worry about future updates. I'll check out that file, thanks for the hint.
The topic has been locked.
More
10 years 11 months ago #121503 by Ben_V
Replied by Ben_V on topic Tracking down a piece of code
Hi,
You can try to add an extra class to the group using jquery...
Something like:
Code:
$("#group-0").prop('class','NewClass');

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 topic has been locked.
More
10 years 11 months ago #121510 by supervinnie40
Thanks Gabriel, your advice did precisely what I wanted to do.

That would've been possible too Ben, but Gabriel was a little bit quicker and I got it sorted already :).
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose