I have installed Ajax search.
And after that when I try to manage pictures in Maxigallery (
[!MaxiGallery? &display=`embedded` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/news.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask.png` &pic_mask_bgcolor=`000000` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`false` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`9000`!]
), and click to manage button, it drops me to the search result page.
How I can fix this error?
Thank you
Getting higher! | www.djabuzz.com
Maybe show us your ---> assets/snippets/ajaxSearch/templates/alexLayout.tpl.html
Quote from: mrhaw at Feb 08, 2009, 03:23 PM
Maybe show us your ---> assets/snippets/ajaxSearch/templates/alexLayout.tpl.html
Sure!
<div class="dd" style="">
[+as.showForm:is=`1`:then=`
<form [+as.formId+] action="[+as.formAction+]" method="post">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td valign="top" background="main_imgs/search.png" align="center" valign="middle" style="padding-top:4px;">
<input type="hidden" name="advSearch" value="[+as.advSearch+]" />
<input id="ajaxSearch_input" style="background:none; border:none; display:block; padding-left:10px;" size="16" height="22px" type="text" value="" border="0" name="search" value=""[+as.inputOptions+]>
</td>
<td width="54px" valign="middle">
<input style="background:none; border:none; width:54px; height:22px; background-color:#f8712f; color:#333333; font-size:12px; font-weight:bold;" type="submit" value="Search"></td></tr> </table>
</div>
Getting higher! | www.djabuzz.com
View the html source from the page when manage pictures button is visible and check the starting / ending <form> tags and see that maxigallery form isn’t inside of ajax search form..
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Quote from: doze at Feb 16, 2009, 02:15 AM
View the html source from the page when manage pictures button is visible and check the starting / ending <form> tags and see that maxigallery form isn’t inside of ajax search form..
What do you mean? I’ve take a look at this, but how can I change this?
Maybe this is a template error?
Here is template code:
<!--SearchBar -->
[!AjaxSearch? &ajaxSearch=`0` &AS_landing=`46` &tplLayout=`@FILE:assets/snippets/ajaxSearch/templates/alexLayout.tpl.html`!]
<!--End SearchBar -->
</tr>
<tr height="8px" style="font-size:1px;">
<td> </td><td width="10px"> </td>
<td> </td><td width="10px"> </td>
<td> </td><td width="10px"> </td>
<td> </td><td width="10px"> </td>
<td bgcolor="#f9712f"> </td>
<td> </td><td width="10px"> </td>
</tr>
</table>
</div>
<!--end TOP MENU-->
</td>
</tr>
<tr height="228px">
<td width="1000px" colspan="2">
<!--radio & flashbanner table-->
<table border="0" cellpadding="0" cellspacing="0" width="1000px">
<tr height="228px">
<td width="252px">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width','252','height','228','id','radio','align','middle','src','radio','quality','high','bgcolor','#000000','name','radio','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','radio' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="252" height="228" id="radio" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="radio.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="radio.swf" quality="high" bgcolor="#000000" width="252" height="228" name="radio" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</td>
<td width="748px">
[!MaxiGallery? &id=`gallery` &gal_query_ids=`65` &disable_js_libs=`0` &display=`embedded` &smoothgallery_width=`748` &smoothgallery_height=`228` &max_pic_size=`748` &pic_use_watermark=`1` &pic_watermark_valign=`bottom` &pic_watermark_img=`assets/galleries/gallery.png` &pic_watermark_type=`image` &pic_use_imagemask=`1` &pic_mask_img=`assets/snippets/maxigallery/imagemask/mask2.png` &pic_mask_bgcolor=`141414` &embedtype=`smoothgallery` &smoothgallery_timed=`true` &smoothgallery_embedLinks=`false` &smoothgallery_showArrows=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showInfopane=`false` &smoothgallery_delay=`5000`!]
</td>
</tr>
</table>
<!--end radio & flashbanner table-->
</td>
</tr>
</table>
<!--end header table-->
<!--Body & Content table-->
<table border="0" cellpadding="0" cellspacing="0" width="1000px" bgcolor="#FFFFFF">
<tr height="400px">
<td width="252px" valign="top">
<!--left imgs table-->
<table border="0" cellpadding="0" cellspacing="0">
<tr height="100px"><td width="252px"><a href="#"><img src="news/imgs/left_img_01.jpg" width="252" height="100" /></a></td></tr>
<tr height="100px"><td width="252px"><a href="#"><img src="news/imgs/left_img_02.jpg" width="252" height="100" /></a></td></tr>
<tr height="100px"><td width="252px"><a href="#"><img src="news/imgs/left_img_03.jpg" width="252" height="100" /></a></td></tr>
<tr height="100px"><td width="252px"><a href="#"><img src="news/imgs/left_img_04.jpg" width="252" height="100" /></a></td></tr>
</table>
<!--end left imgs table-->
</td>
<td width="516px" valign="top">
<!--gallery boxes-->
<br>
<div class="tit">[*pagetitle*]</div>
<br>
[!MaxiGallery? &id=`gallery1` &pic_use_watermark=`0` &pic_use_imagemask=`0` &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &bigimg_linkstyle=`slidebox` &smoothgallery_timed=`true` &thumb_use_dropshadow=`1`!]
<br>
<br>
<!--gallery boxes--> </td>
Getting higher! | www.djabuzz.com
When I click manage button, it drops my to managing pictures of search result document (46), but not of my gallery document (40).
Getting higher! | www.djabuzz.com
There is another one problem here. I use 2 maxigalery calls. 1 of them uses watermark. 2 - not. But when I upload pictures to the second one, it also shows watermark.
How can I fix this?
Getting higher! | www.djabuzz.com
One document can have just one gallery. If you want multiple galleries on a single document, you need to:
1. first create the galleries on separate documents
2. Use multiple maxigallery calls on a single document with &view_gallery=`id_of_gallery_doc_here` parameter
3. If you want to manage the galleries from the document that shows multiple galleries, add &manage_target=`id_of_gallery_doc_here` parameter to the calls and &is_target=`1` parameter to the calls in the target documents
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Quote from: doze at Feb 23, 2009, 06:53 AM
One document can have just one gallery. If you want multiple galleries on a single document, you need to:
1. first create the galleries on separate documents
2. Use multiple maxigallery calls on a single document with &view_gallery=`id_of_gallery_doc_here` parameter
3. If you want to manage the galleries from the document that shows multiple galleries, add &manage_target=`id_of_gallery_doc_here` parameter to the calls and &is_target=`1` parameter to the calls in the target documents
I am using separate document for one of the call and I added to this call &gal_query_ids=`65` (id of the separate doc with pics).
The other gallery in this page has the childgalleries and don’t have separate document. I want to be able to edit/add protos from itself. How can I do this? (as I told, I cant do this while using Ajax search on some reason).
I could to this by creating separate doc and &gal_query_ids, but I want to add new childgalleries in it with the easy way.
Sorry but I didn’t quite understand you, how to fix the problem with managing documents (galleries) with ajax search.
Getting higher! | www.djabuzz.com
I’m really just getting more an more confused about what’s the problem..
Have you tried to validate the parsed HTML source of the document when the manage button is rendered to the page? You have posted couple times the document sources, but I don’t mean those, I mean the parsed html source from frontend. Try copy pasting it to w3 validator and see what it says..
But, If you have just a problem on managing some document because ajax search is on the same page, just create a separate document what you use to manage the galleries. You can use that document for all galleries, if they share the same image sizes and all. So create a document that does not have ajax search on the same page and use &is_target=`1` on the call, then in the other calls, use &manage_target=`id_of_the_document_you_created` parameter in every call.. Then when you click manage pictures button, you should be forwarded to that document without ajax search and it will manage the pictures from that gallery where you clicked the button.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."