Jump to content

Andr3Ace

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by Andr3Ace

  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. sorry for the late reply & sorry for bringing this topic to the forum 'cause i know what i'm trying to do is something maybe not ethical for the original designer & you so,i tried making a little modification that turn the module into something like social network tab/slider . all is paid-modules i tried to make tabs of social network in one of the column (left or right). i must admit that i saw that in nemops webpage (sorry nemo ) and i searched everywhere looking a free-module or tutorial related to that matter. and didn't find it. so i modified your rightcolumn.tpl (i don't have skills to make a new module from scratch. shame on me) and this is what i want to achieve and here the code i tried to modified (clone from product.tpl) <div > <ul id="more_info_tabs" class="idTabs idTabsShort clearfix"> <li><a href="#idTab9">Facebook</a></li> <li><a href="#idTab77">Twitter</a></li> <li><a href="#idTab89">G+</a></li> </ul> <div id="more_info_sheets" class="sheets align_justify"> <div id="idTab9" > <iframe src="//www.facebook.com/plugins/likebox.php?href={$likebox.likeboxfree_fanpageurl}&width={$likebox.likeboxfree_width}&height={$likebox.likeboxfree_height}&colorscheme={$likebox.likeboxfree_colorscheme}&show_faces={$likebox.likeboxfree_showfaces}&show_border=false&stream={$likebox.likeboxfree_showstream}&header={$likebox.likeboxfree_showheader}&appId=112465995526913" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:{$likebox.likeboxfree_width}px; height:{$likebox.likeboxfree_height}px;" allowTransparency="true"></iframe> </div> <div id="idTab77"> <a class="twitter-timeline" href="https://twitter.com/WWG_JKT" data-widget-id="478588480394506240">Tweets by @WWG_JKT</a> </div> <div id="idTab89"> <div class="g-page" data-width="220" data-href="https://plus.google.com/u/0/108214763474865760432" data-rel="publisher"></div> </div> </div> </div> it works but only in product pages where the original tab-codes is from lol. other than that page, the tab is just not working. tried to copy the css file to module-css file. didn;t work. i tried to make sense the js script but only made my head exploded dont expect me to implement that to back-office. way of my league lol thank you
  3. hi vekia, sorry for the late 'thank' may i ask permission to make a little modification on this module? thx
  4. in the post? the feature image? just delete the <a href=""> & </a> in post.tpl <div itemprop="articleBody"> <div id="lipsum" class="articleContent"> {assign var="activeimgincat" value='0'} {$activeimgincat = $smartshownoimg} {if ($post_img != "no" && $activeimgincat == 0) || $activeimgincat == 1} <!-- delete this line --> <a id="post_images" href="{$modules_dir}/smartblog/images/{$post_img}-single-default.jpg"> <img src="{$modules_dir}/smartblog/images/{$post_img}-single-default.jpg" alt="{$meta_title}"> <!-- delete this line --> </a> {/if} </div> @SDS i still can't make the rss blog work. need help & thank you.
  5. anyone? or someone just tell me if it is not possible while i also found an unanswerd-similiar question from old-post thanks
  6. 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
  7. the idea is if the page is tutorial page (like mine for example), readers sometimes need to be clear with what they are following. it can be achieved if we provide them with a clear images/pics. there are 2 ways to do that. first directly with a serial of big or huge pics / images posted in the middle of tutorial. second is with small thumbnails (or spoiler) which can be click or hover or whatever which then show a big pics.that's fancy/light box is for. first methode use alot of space & bandwith yet no extra work. just import, set & done. but imagine if the tutorial needs alot of steps second methode need more work but save alot of space & use bandwith only if they are clicked. not to mention they will be looked more organized & neat. right now, i only can make a popup or open image in new tab example here. it only 20 steps tutorial with 10 image. thank you for listening & sorry for asking too much for this free contribution but this blog-module is almost too good to be true for me with SEO & marketing need. that's all regards
  8. i'm so happy. finally can make it work the way i want with 2columns-blog & 3columns-product page. hopely SDS listen to our suggestion to add fancybox in page with upcoming update 'cause it is crucial for tutorial page with fancybox (at least for me ). & it would make smartblog more-more perfect thanks alot SDS
  9. i dont know about ps1.6. but my case with ps1.5.6.1 is editing product-list.tpl & product_list.css
  10. 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
  11. 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>
  12. 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
  13. 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
  14. so far so good, category image can be disable, please also give that option for individual feature image. comment & captcha working good css for heading title also and please give fancybox script in our blog. i've been struggling with this for a couple days trying to use vekia's tutorial in his article (fancybox gallery in cms page). but my lack of knowledge & everything didn't allow me thanks in advance
  15. i think you should change that 'main blog url' to just like 'smartblog' or 'blog' or 'article' then it would appear like 'www.domain.com/smartblog/page.html or .../blog/page.html then clear cache or rewrote friendly url in preference/seo & urls
  16. 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...
  17. Friendly url need to be rewrote. preference - SEO & URL's - change Friendly URL status - save - change status Friendly URL back - save just found out i got the same problems
  18. i really love these modules. thanks for sharing. works fine with ps1.5.6.1 if i may suggest, maybe you want to add a little feature in BO that let us choose wheather to display feature image or not. but that's just me
  19. 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
  20. great module. thanks for sharing. works perfectly with ps1.5.6.1 one question: how can we update the already attached image on a banner?
  21. thank you for sharing. i will give it a try today NB: it works with ps1.5.6.1. thank you
  22. 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
  23. that's why i love this forum & prestashop powerfull engine. great suppport. thanks vekia.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More