Welcome to the LimeSurvey Community Forum

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

Survey ID call

  • brewski
  • brewski's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173678 by brewski
Survey ID call was created by brewski
I had someone write a custom output to a survey. I'm trying to update a survey, which I did by copying the live survey and making the edits, then activating the new survey.

The challenge is, the DB is called in the code (PHP).

$_GET is used to call the id of the "it" survey.

I can't see in limesurvey anywhere that just "it" is used in the survey name, hence, I don't know what the new survey I've created would be called.

I know this is rather vague, but any thoughts?
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago - 5 years 7 months ago #173682 by holch
Replied by holch on topic Survey ID call
Post the current script here and people might be able to help.

Or you could just ask the person that custom coded this for you. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Last edit: 5 years 7 months ago by holch.
The topic has been locked.
  • brewski
  • brewski's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173684 by brewski
Replied by brewski on topic Survey ID call
This is the pertinent section:
// what surveys are we using (admin,it)
$surveys = array("admin"=>$_GET,"it"=>$_GET);
// get current company's token
$token = $_GET;
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173709 by holch
Replied by holch on topic Survey ID call
This seems to be a very small excerpt of the whole script.

I am not an expert, but I assume that they check if the person is an admin or belongs to the IT department (maybe you have users or user groups called "admin" or "it" in your LS installation)?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 7 months ago #173710 by LouisGac
Replied by LouisGac on topic Survey ID call
please, formulate a question. I read your post thrice, and I see only one question:
"I know this is rather vague, but any thoughts?"

yes, I think it's rather vague.
Now, what is your real question?
The topic has been locked.
More
5 years 7 months ago #173712 by jelo
Replied by jelo on topic Survey ID call
The threadstarter seems to try to get the surveyid of the current selected survey in LimeSurvey GUI.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173729 by DenisChenu
Replied by DenisChenu on topic Survey ID call

jelo wrote: The threadstarter seems to try to get the surveyid of the current selected survey in LimeSurvey GUI.

Yii::app()->getRequest()->getParam('surveyid');

But i don't think it's this $_GET is clearly not related to LimeSurvey …

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.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173733 by holch
Replied by holch on topic Survey ID call

I had someone write a custom output to a survey.


I assume that this someone created a custom script to read out the database to deliver the custom output (report, I guess).

Now the survey ID has changed and the output doesn't work anymore.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • brewski
  • brewski's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #173735 by brewski
Replied by brewski on topic Survey ID call
I appreciate the input folks.
@DenisChenu got me going in the right direction, as he was correct that call is not a call to the limesurvey db.
As I don't have time to unscramble this mess, I'm calling this complete and will post a new question to to the forum.
Thanks again all.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose