Accordion Text & faq object
Author: Kev G.
Visited 925,
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
(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
Hello Kev,
Have you tried also to change into the page properties to .PHP to manage correctly PHP code.
Axel
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 ??
Author
I forgot to post a link to show a testing page -
http://www.slotcarsatleicester.co.uk/page-22.php
Thanks, Kev.
... errore PHP:
...!... http://www.slotcarsatleicester.co.uk/admin/
Parse error: syntax error, unexpected '[' in /freeola/users/2/0/sr2622202/htdocs/res/x5engine.php on line 5282
.
Author
I do not understand what you are trying to tell me ???
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
Axel
(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...
.
... 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
.
Hey KolAsim,
I tried to use your code from your demo.
I have added into my demo but, 2 issues.
Issue with the sticky bar when a faq is opening
Link here for your help:
https://wsx5demo.afsoftware.fr/tests1.html
Axel
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';}})
Just stiky bar issue.
... 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
.
Hello KolAsim.
almost ....
- For Demo 0 sticky bar not displayed .
- For demo 1 & 2 sticky is displayed but normal bar not restored after closing.
idea ?
... puis remplacez :
hK=$("#imStickyBarContainer").height();
... avec:
hK=$("#imHeader").height();
.
ciao
.
almost...almost
Demo 0 is OK, but Demo 1 & 2 no bar and no sticky !
...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...
.
Oui tu as raison. On va laisser comme cela. C'ets déjà très bien !
... OK ... ... J'ai été ravi de voir que vous avez pu l'utiliser correctement et facilement, également très utile pour php-include...
.
ciao
.
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?
@Nicholas
uses the KolAsim code describbed before . it works fine and no limit
here the demo with this code
https://wsx5demo.afsoftware.fr/faqs.html
Axel
(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...
.
@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
Author
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
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!
... ...unfortunately, since Kev G. ...has not responded to the suggestions provided, I'm leaving this Topic and we'll meet again elsewhere...
... ... ... What ist STAFF? ... ... ...
... the STAFF are the employees of Incomedia who develop the WebSiteX5 Program and manage the assistance in this Forum...
... ... ... 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
.