WebSite X5Help Center

 
Kev G.
Kev G.
User

Accordion Text & faq object  en

Author: Kev G.
Visited 153, Followers 1, Shared 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.

Posted on the
9 ANSWERS - 1 USEFUL
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month 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

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hello Kev,

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

Axel

Read more
Posted on the from Axel  
Kev G.
Kev G.
User
Author

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

Read more
Posted on the from Kev G.
Kev G.
Kev G.
User
Author

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

Read more
Posted on the from 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

Read more
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month 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...

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month 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

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪