WebSite X5Help Center

 
Kev G.
Kev G.
User

Accordion Text & faq object  en

Autor: Kev G.
Visited 926, Followers 1, Udostępniony 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
26 ODPOWIEDZI - 4 USEFUL
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

(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

Czytaj więcej
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

Czytaj więcej
Posted on the from Axel  
Kev G.
Kev G.
User
Autor

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

Czytaj więcej
Posted on the from Kev G.
Kev G.
Kev G.
User
Autor

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

Czytaj więcej
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

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
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...

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

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

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hey KolAsim,

I tried to use your code from your demo. laughing

I have added into my demo but, 2 issues.

  • Cells are all opened at loading and not closed.
    Issue with the sticky bar when a faq is opening

Link here for your help:

https://wsx5demo.afsoftware.fr/tests1.html

Axel

Czytaj więcej
Posted on the from Axel  
Axel  
Axel  
User

Found by this added line

<script>
$( document ).ready(function() {
$( ".text-inner *:not(.imHeading1)" ).hide();
nK=0; // div sino by KolAsim;
function chiudiK() { $( ".text-inner *:not(.imHeading1)" ).hide();}
$( "#imCell_4 .imHeading1" ).click(function() { if (nK == 1) {chiudiK();nK=0;} else { nK = 1;chiudiK();$( "#imCell_4 *" ).show();location.href = '#imCell_4';}})

Czytaj więcej
Posted on the from Axel  
Axel  
Axel  
User

Just stiky bar issue.

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... just before the closing tag </script>:
***
});
</script>

... instead of *** paste this code:

$(".imHeading1").click(function(){
/** -- offset Anchor by KolAsim --*/
setTimeout(function(){ //K1>
hK=$("#imStickyBarContainer").height();
scrollK=$(window).scrollTop();
scrollK=scrollK-hK;
$('html,body').animate({ //K2
scrollTop: scrollK
}, 0);//K2<<
}, 0);//K1<<
})

(...+.................................

});
</script> ..............)

...........................................

.... if you put values ​​​​​​in place of zero (0) in thousandths, you will slow down the offset effect...

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hello KolAsim.

almost .... smile

- For Demo 0 sticky bar not displayed .
- For demo 1 & 2 sticky is displayed but normal bar not restored after closing. yell

idea ?

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... puis remplacez :
hK=$("#imStickyBarContainer").height();
... avec:
hK=$("#imHeader").height();

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

almost...almost foot-in-mouth

Demo 0 is OK, but Demo 1 & 2 no bar and no sticky !

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

...pour moi, le code précédent est meilleur...
...et peut-être que ce serait encore mieux sans stykbar, ou avec un en-tête fixe bien conçu à cet effet...

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Oui tu as raison. On va laisser comme cela. C'ets déjà très bien ! winktongue-out

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... OK ... ... J'ai été ravi de voir que vous avez pu l'utiliser correctement et facilement, également très utile pour php-include...

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Nicholas V.
Nicholas V.
User

I just bought this object "Accordion Text & FAQ".

Yes, every block is limited to 3.000 characters.

Useless for me.

Why don't they tell us about the limitations before?

Czytaj więcej
Posted on the from Nicholas V.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Nicholas V.
I just bought this object "Accordion Text & FAQ". Yes, every block is limited to 3.000 characters.  ... ... ... 

(It > En) ... I can't try, but it seems strange to me...
... STAFF could give more information...
... anyway I noticed that in the Marketplace object it would be possible to add more than 3000 characters with the EXTRA code in all slide accordions...
... in this case it would always be better to open your own Topic, also posting your real online reference LINK...

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Nicholas V.
Nicholas V.
User

@KolAsim: Thank you for your feedback. I have read the complete ticket, but I can not see where the solution can be found. Can you please give me an additional hint?

What ist STAFF?

What is "EXTRA code"?

Best, Nicholas

Czytaj więcej
Posted on the from Nicholas V.
Kev G.
Kev G.
User
Autor

Hi Nicholas V

I have found a work-around, it's a bit compicated but if you want I could tel you. It might take me a day or so.

Kev Gray

take a look at

http://www.slotcarsatleicester.co.uk/summer2024.php

for an example

Czytaj więcej
Posted on the from Kev G.
Nicholas V.
Nicholas V.
User

Hi Kev,

thanks a lot for your offer.

But I want do keep it simple. The 20 Credits are gone... bad luck.

You know, my trust in X5 is a little reduced since the former Accordeon-Objekt is deprecated... and this will lead to problems in comming X5-versions.

By the way: I was astonished, that I found the "deprecated"-status by chance, instead of X5 warning me when I load the project.

So I personaly will not invest too much time in workarounds.

Have a nice weekend!

Czytaj więcej
Posted on the from Nicholas V.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Nicholas V.
@KolAsim: Thank you for your feedback. I have read the complete ticket, but I can not see where the solution can be found. Can you please give me an additional hint? ... ... ... 
(It > En) ... gladly, if we see each other again in your Topic with your LINK with Accordion to be able to evaluate, and also to implement my EXTRA code that is reduced to a single copy/paste...
... ...unfortunately, since Kev G. ...has not responded to the suggestions provided, I'm leaving this Topic and we'll meet again elsewhere... 
‪ KolAsim ‪ ‪
... ... ... ... in this case it would always be better to open your own Topic, also posting your real online reference LINK... ... ... ... 
Nicholas V.

... ... ... What ist STAFF? ... ... ...

... the STAFF are the employees of Incomedia who develop the WebSiteX5 Program and manage the assistance in this Forum...

Nicholas V.

... ... ... What is "EXTRA code"? ... ... ...

... the EXTRA code are small pills of EXTRA code that I invent from time to time to solve small problems or to implement small tricks not yet foreseen in the Program but that could arrive after a certain time...

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪