0 votes
in SoSci Survey (English) by s137216 (110 points)
closed by s137216

I using the demo (https://github.com/joon-e/OSEM/wiki/File-import) trying to figure out how SoSci works but I get this error when I place code into hub.php and spokes.php:

Warning: The PHP keyword class is not allowed within PHP code.

Warning: The PHP code contains functions or PHP elements that you are not permitted to use in the questionnaire. If you think that the constructs in question are safe to use, please contact the administrator!

Can someone please help?

`<!DOCTYPE html>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sample Hub Page</title>
<link rel="stylesheet" type="text/css" href="sample.css">


<div class="container">
    <header>
        <h1>Sample Hub</h1>
    </header>
    <main>
        <div class="spoke-box osemSpoke" data-osem-spoke="1">
            <img src="1.png">
            <div class="spoke-headline osemClickable">Spoke Link 1</div>
            <div class="spoke-text">This is a spoke link. Only the headline is clickable.</div>
        </div>
        <div class="spoke-box osemSpoke" data-osem-spoke="2">
            <img src="2.png" class="osemClickable">
            <div class="spoke-headline osemClickable">Spoke Link 2</div>
            <div class="spoke-text">This is also a spoke link. Both image and headline are clickable.</div>
        </div>
        <div class="spoke-box osemSpoke" data-osem-spoke="3">
            <img src="3.png">
            <div class="spoke-headline">Spoke Link 3</div>
            <div class="spoke-text">This is the third spoke link. Only the following text is clickable: <span class="osemClickable">read on</span></div>
        </div>
        <div class="spoke-box osemSpoke osemClickable" data-osem-spoke="4">
            <img src="4.png">
            <div class="spoke-headline">Spoke Link 4</div>
            <div class="spoke-text">This is the fourth spoke link. The whole box is clickable.</div>
        </div>
    </main>
</div>


`

closed with the note: htlml/=php
by s033222 (140 points)
Can you please describe in more detail when you encounter this problem. If you are following the demo instructions, you are not supposed to add code to the PHP files.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...