WebSite X5Help Center

 
Kev G.
Kev G.
User

Accordion Text & faq object  en

Автор: Kev G.
Просмотрено 152, Подписчики 1, Размещенный 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.

Размещено
9 Ответы - 1 Полезно
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца 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

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hello Kev,

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

Axel

Читать больше
Размещено От Axel  
Kev G.
Kev G.
User
Автор

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

Читать больше
Размещено От Kev G.
Kev G.
Kev G.
User
Автор

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

Читать больше
Размещено От 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

Читать больше
Размещено От Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца 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...

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца 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

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪