Jump to content

Andr3Ace

Members
  • Posts

    27
  • Joined

  • Last visited

3 Followers

Contact Methods

Profile Information

  • Location
    jakarta
  • Activity
    Other

Andr3Ace's Achievements

Newbie

Newbie (1/14)

7

Reputation

  1. UPDATE: just for confirmation. vekia was always right from the begining!!! it was my mistake... so sorry. turn out i already have that {return true;} & it's at the bottom of the code. that's why it's still work when i didn't add the {return true;} & goes blank when i add public static function isCleanHtml($html, $allow_iframe = false) // i was adding the {return true;} here. my mistake !!! { $events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange'; $events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend'; $events .= '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove'; $events .= '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel'; $events .= '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart'; $events .= '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange'; $events .= '|onselectstart|onstart|onstop'; //if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) // return false; if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) return false; return true; } sorry for the trouble. silly me. you're the best. lessons learned. thank you
  2. anyone? or someone just tell me if it is not possible while i also found an unanswerd-similiar question from old-post thanks
  3. hello prestalover, i was wondering.. is it possible to make sub-category image or link still showed up on every page of relevent-product list even after clicked? i have only 2 main-categories with 2 sub-categories each. & i want to the link or img still there even after clicked. considering as a sub-categories filters on categories page i'm using PS1.5.6.1 thanks in advance
  4. i dont know about ps1.6. but my case with ps1.5.6.1 is editing product-list.tpl & product_list.css
  5. aiyayayya. so simple solution from you & it also work the best way. because the hover effects still work with your methode. thanks again for the future-vekia now
  6. oke problem solved by another topic from the past i put a 124x124px-60%-white-transparant image layer as if it was a "SOLD" ribbon not sure if it's the ultimate way but hey it work for me for now. another thanks for the past-vekia here's the code i use: <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span>{/if} <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> {if $product.quantity==0}<img src= "http://domain/img/out-of-stock.png" style="position:absolute; right:0px; top:0px;" /> {/if} </a>
  7. thanks vekia for your quick reply now all my product image is grey. here's my code after changed: <div class="center_block"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> {*<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />*} <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'htmlall':'UTF-8'}{else}{$product.name|escape:'htmlall':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} class="{if (!$product.allow_oosp || $product.quantity <= 0)}graypicture{/if}" /> </a> add this in product_list.css .graypicture { filter: alpha(opacity=30); opacity: 0.3;} & this question is already asked in your article about grey picture hover effects, you know
  8. hi all, noobs question.... does anyone know how to make image in product list turn to grey when the product out of stock? i mean just like 'buy' button anyhelp really appreciated
  9. HIGHLY RECOMMENDED SELLER!!! Ternyata ada solusi yg sedang dipersiapkan untuk para buyer pasca pembelian paket sebelumnya.. Ditunggu gan upgrade-tool nya Untuk para calon pembeli paket prestanesia basic 1.5.6.1 (3colums standard theme), jangan ragu bt beli karena paket ini pun sebenernya sudah sangat memuaskan tapi untuk penggemar Metro style (+ 2clolumns style) spt saya, sangat disarankan membeli paket selanjutnya di v1.6.x.x... cuantik sekaleee...
  10. bro gonebdg yth, kalo sy ingin upgrade prestanasia 1.5.6.1 ke 1.6.x.x (prestanasia ataupun offcial), apakah ada step2 tuts yg aman? sy dah coba 1click upd di localhost pk 1.5.6.1 official/raw (+modifikasi2 bt coba2) ke official 1.6.0.6. spt nya cm bbrp module mang hrs install ulang/upgr. tp ga ada masalah berarti sih. mohon pencerahannya. thanks
  11. hi vekia, but in my case it's the same result with the original code. it only shows the featured product. same with if i add the url manually with .../modules/feeder/rss.php?n=10&orderway=0&orderby=date_add. i have already followed other topics with the same case since 2010 . but nothing works they always go to featured products catalogue. is it possible to make the rss feed go the new products area? thanks in advance **UPDATE** Solution came from the past for me http://www.prestashop.com/forums/topic/57484-rss-feed-to-show-new-products/page-2?do=findComment&comment=604139 funny, i read this post before & didn't work. now work like a charm
  12. Great, glad I can share. But all credits goes to vekia. Now u have to make sure it work just like the tuts said and just like u want
  13. it happened to me bfore. all i had to do was removed the { return true; } in the public static function isCleanHtml($html, $allow_iframe = false) i don't know why. but it's just worked with my ps1.5.6.1 also. but vekia confirmed me that that might cause error when u want to save that mofidified cms page which not hapenned to me. strange here's the link http://www.prestashop.com/forums/topic/244614-solved-need-a-little-help-cant-seem-to-get-fancybox-to-work-in-cms-1541/?do=findComment&comment=1654301
  14. nah itu dia, suhu di list available hook mobile ane cm ada displaymobileheader & displaymobiletopsitemap lho mangkanya ane nanya cm pk info 2hook yg ada aja displaymobileheader & displaymobiletopsitemap DisplayMobileIndex bs ditambahin di list available hook? terimakasih
  15. thx bt reply nya ternyata lieeer jg ya mastah.. kesimpulannya karena content yg pengen di hook ada di head to head tags maka sangat tidak di anjurkan ya karena header = tempat awal komando ke browser menjalankan css, script dll sepertinya berlaku jg untuk di displaymobiletopsitemap nya ya oke kl gitu saya ganti pertanyaaan aja: gimana spy default firstpage di mobile site di arahkan lsg ke new/special product spy cust bs lsg liat produk2 baru/special yg kita tawarkan? kynya kl hal ini tidak perlu modify hook ya. toh di footer nya jg kluar list our offer & sitemap. trima kasih sebelumnya
×
×
  • Create New...