WebSite X5Help Center

 
Kev G.
Kev G.
User

Accordion Text & faq object  en

Auteur : Kev G.
Visité 150, Followers 1, Partagé 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.

Posté le
9 RéPONSES - 1 UTILES
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois 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

Lire plus
Posté le de  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hello Kev,

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

Axel

Lire plus
Posté le de Axel  
Kev G.
Kev G.
User
Auteur

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 ??

Lire plus
Posté le de Kev G.
Kev G.
Kev G.
User
Auteur

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

Lire plus
Posté le de 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

Lire plus
Posté le de Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois 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...

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Meilleur utilisateur du mois 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

.

Lire plus
Posté le de  ‪ KolAsim ‪ ‪