WebSite X5Help Center

 
Kev G.
Kev G.
User

Accordion Text & faq object  en

Autore: Kev G.
Visite 143, Followers 1, Condiviso 0  

Hello, I have just purchased this object (Accordion Text & FAQ object) after struggling with accordions for some time, it seemed to do what I need from viewing the description.

I have found that when inserting formatted HTML there seems to be a limit on the number of lines it will accept. I have tried converting to a 'php' page and using something like -

"<?php include 'code.php'; ?>"

but it doesn't appear to recognise the php tags

Am I doing something wrong, can anyone throw any light on this please.

Thanks, Kev Gray.

Postato il
9 RISPOSTE
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese PL

(It > En) ... if you posted the LINK maybe something could be understood...
... in the meantime try to eliminate the double quotes (") that are seen in your STAMP...

.

ciao

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hello Kev,

Have you tried also to change into the page properties to .PHP to manage correctly PHP code.

Axel

Leggi di più
Postato il da Axel  
Kev G.
Kev G.
User
Autore

Hello Axel, thanks for your reply.

Yes, I often use a 'php' page so it is no problem for me.

I have done a bit of experimenting and found that there seems to be a limit to the amount of code the 'Text' box will allow, it seems to allow about 70 lines of code, after that it is just truncated. There just doesn't seem to be any logic to it.

If I try to add some 'php' code like -

"<?php
include 'code.php' ;
?>"

it throws an error -

Parse error: syntax error, unexpected '>' in /....../htdocs/page-22.php on line 596

so it looks like you can't use any php code at all, which is very frustrating.

Anyone have any more thoughts ??

Leggi di più
Postato il da Kev G.
Kev G.
Kev G.
User
Autore

I do not understand what you are trying to tell me ???

Leggi di più
Postato il da Kev G.
Axel  
Axel  
User

Hello Kev,

Try this one without inverted commas.

<?php include code.php ;
?>

In one of my FAQ object I have this one (it works)

<center><img src=https://www.mywebsite.fr/cool/images/nrlsunset.jpg></img></center>

I found it by chance  smile

Axel

Leggi di più
Postato il da Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese PL
Kev G.
I do not understand what you are trying to tell me ???

(It > En)  ... since the error is reported in ADMIN, maybe you are using an obsolete version of PHP, ... so check on your SERVER which PHP version you are using now...
... or maybe you have inserted reserved special characters or some line breaks in the texts processed by PHP...

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Utente del mese PL

... since you use EXTRA code in PHP, instead of using Accordion TEXT & FAQ, improper for these purposes, ....you could use a simple invention of mine based on my DIV_SINO  script method...
... to have an idea of ​​​​​​​​what it would be you can try the articles of this page used by one of our users with my code...
https://osteopathfabio.com/article-download-file-document-exercise.html#imCell_20

.

Leggi di più
Postato il da  ‪ KolAsim ‪ ‪