Yes, because you had only slidebox scripts in the template.
I have to insert the following lines in the templates to make function the snippet:
<SNIPPED SLIDEBOX CODE>
If I change the parameter &big_img_linkstyle=`slidebox` by &big_img_linkstyle=`lightboxv2`, I do not obtain anything any more on the increased images.
You can’t have all slidebox/lightbox/popup scripts at the template at the same time, because slidebox/lightbox share the same class and id names, etc.
If I add the following lines in the template:
<SNIPPED SLIDEBOX AND LIGHTBOX AND OTHER SCRIPTS MIXED>
I obtain a posting of the lightbox but with a bad application of the style.
But if I want to return to the intitiaux parameters, that does not function any more.
If I remove the last lines, I find a correct operation.
Slidebox uses AJAX to get the picture title/descriptions, so I wonder if there’s something needed to be done with it what you guys did with the "FlexSearchForm with Ajax" snippet.. I’m not going to take a look at it, because I’m not able to test it, but if someone wants to do something with it, that’s great. I’m happy to hear that the character encodings are working ok at the php side of the snippet now. Thanks alot for doing the tests and for reporting your findings!
[[MaxiGallery?display=`embedded` &embedtype=`slidebox`]]
I tested with UTF-8 and EUC-JP. Results of both encodings are identical.
Windows client browser Firefox(1.5.0.2) and IE6SP1 OK.
Mac OSX client browser Firefox(1.5.0.2) and safari(1.3.2) not displayed both caption and description.
I wonder that a result does not change even if I input English words to both.
I think that the snippet is not the culprit here.. It says on the error that "MySQL server has gone away", maybe the mysql server is overloaded at your enviroment or something? Don’t know..
And, I often received error message below.
MODx encountered the following error while attempting to parse the requested resource:
≪ Execution of a query to the database failed - MySQL server has gone away ≫
SQL: SELECT sc.id,sc.parent FROM `modx`.modx_site_content sc LEFT JOIN `modx`.modx_document_groups dg on dg.document = sc.id WHERE (sc.id=46 ) AND (sc.privateweb=0) LIMIT 1
("disclaimer": beware, there might be some bugs, post your issues if you come across any)
)


// call like [!MaxiGallerySolo? &galID=`yourID`!]
// &galID has to be the id of the page you are calling yor [!MaxiGallery!] from...
$path_to_gal = "/assets/galleries/".$galID."/";
$pics=$modx->getIntTableRows("*","maxigallery", "gal_id='" . $galID . "'","pos,date","DESC");
$i=0;
for($i = 0; $i < count($pics); $i++) {
$pic = $pics[$i];
$file = $path_to_gal . $pic['filename'];
$tn_file = $path_to_gal . "tn_" . $pic['filename'] ;
$returnstring .= "<a href=\"$file\" rel=\"lightbox[".$galID."]\" title=\"<b>".htmlentities(stripslashes($pic['title']))."</b><br />".htmlentities(stripslashes($pic['descr']))."\">".
($i > 0 ? "" : "<img src=\"$tn_file\" class=\"thumbnail\">" ) .
"</a>";
}
return $returnstring;
This discussion is closed to further replies. Keep calm and carry on.