Survey ID call

More
1 week 4 days ago #173678 by brewski
brewski created the topic: Survey ID call
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?

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago - 1 week 4 days ago #173682 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 1 week 4 days ago by holch.

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #173684 by brewski
brewski replied the 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;

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173709 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173710 by LouisGac
LouisGac replied the 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?

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173712 by jelo
jelo replied the topic: Survey ID call
The threadstarter seems to try to get the surveyid of the current selected survey in LimeSurvey GUI.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173729 by DenisChenu
DenisChenu replied the 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173733 by holch
holch replied the 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'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
1 week 3 days ago #173735 by brewski
brewski replied the 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.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!