- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Tracking down a piece of code
- supervinnie40
- Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago #121497
by supervinnie40
Tracking down a piece of code was created 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.
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.
- gabrieljenik
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
8 years 9 months ago #121499
by gabrieljenik
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 .
Replied by gabrieljenik on topic Tracking down a piece of code
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
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.
- supervinnie40
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
8 years 9 months ago #121501
by supervinnie40
Replied by supervinnie40 on topic Tracking down a piece of code
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
8 years 9 months ago #121503
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 Tracking down a piece of code
Hi,
You can try to add an extra class to the group using jquery...
Something like:
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.
- supervinnie40
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
8 years 9 months ago #121510
by supervinnie40
Replied by supervinnie40 on topic Tracking down a piece of code
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 .
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.