• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

New custom website (dutch)

Started by Boudi, October 01, 2008, 08:21:16 PM  ( Read 34,689 times )

vyni

#25
@Boudi

jo, great. Just something with the fax-nr aswell. Maybe a space within the country-code? Try +31 instead of + 31.
:-D I thought maybe You see it.

But I dont know - maybe it´s just the plug-in which catches tel and mobile, but not fax ??


@Stefek
??......instead of highslide? - YES this would be great. And putting it in the header and You have it WB-wide.

    Ruud

    Quote from: Stefek on October 02, 2008, 03:30:20 PM
    Ruud, did you have see the german thread about the "FancyBox"/"Fancy Image"?

    Yep, seen it.
    I would have to have a better look at the original FancyBox, but it might be doable.
    Select one of 3 zoom engines.

    Ruud

      Stefek

      Quote from: Ruud on October 02, 2008, 03:39:00 PM
      Quote from: Stefek on October 02, 2008, 03:30:20 PM
      Ruud, did you have see the german thread about the "FancyBox"/"Fancy Image"?

      Yep, seen it.
      I would have to have a better look at the original FancyBox, but it might be doable.
      Select one of 3 zoom engines.

      Ruud
      This would be great.

      To me it seems, that the "Lightbox" Fashion is "expired" and outdatet.  :-)
      The Fancybox instead is up to date and comes with a fresh impact.

      The original script uses jQuery.
      http://fancy.klade.lv/

      Regards,
      Stefek

        vyni

        The most benefit would be the exiting zoom, if up-to-date or outdated.

        It´s free as I understood. And with this example of putting the show in the header, it is easy to set this thing to the whole page. Just adding a block (or like here in the header) but accessable through the backend, if You want to use it as galery aswell. Adding the necassary ID for the link can be comfortable done by FCK.

        But we should change the thread......




          Boudi

          @ Stefek

          QuoteThis looks great:
          http://www.telmakelaars.nl/pages/catalog/nietap2.php?cat_id=1&number=0
          Thnq! Appreciate it  :-)

          For further small adjustments within the Catalog mod I will put them in this thread:

          https://forum.WebsiteBaker.org/index.php/topic,1463.60.html

          Greetz
          Boudi

            ...:: Bake the Unbakable ::...

            Ruud

            @Boudi

            One more improvement.. Just in case you can't get enough of it.
            Just did some small test to use the resizer from imageflow in the catalog.

            In /module/catalogs/view.php you need to change the following:
            From line 517 (the 2 lines with thumbnail_pic are added):
            if($num_pics > 0)
            {
               while(
            $element = $query_pics->fetchRow())
                {
                   
            $pic= stripslashes($element['pic']);
                   
            $direction_pic=WB_URL.MEDIA_DIRECTORY."/cat_pics/".$pic;
                   
            $thumbnail_pic=WB_URL."/modules/imageflow/reflect.php?img=/cat_pics/".$pic."&height=1&jpeg=70&newwidth=100&cache=1";
                   
            $smarty->append('pics',array(
                       
            'pic'=>$element['pic'],
                       
            'thumbnail_pic'=>$thumbnail_pic,
                       
            'direction_pic'=>$direction_pic
                   
            ));
                }
            }


            Next in details_elements.tpl the line you changed before to get highslide working

            <a href="{$pics[sec2].direction_pic}" class="highslide" onclick="return hs.expand(this)"><img src="{$pics[sec2].thumbnail_pic}" alt="Highslide JS" title="Click to enlarge" width="100" /></a>


            You could use the same thumbnail trick on the list page too.
            If you need help on doing that, let me know. You might be able to find out yourself looking at the code for the details pages.

            Note: This will work because the imageflow module is installed.
            Don't use this on other sites (without imageflow module)

            Groetjes,

            Ruud

              Boudi

              hi Ruud,

              Just implemented it but it didn't do the trick.

              The view.php was original so there could be no error I think.

              The details_elements.tpl is rather ripped off so may be here could be an error.

              I give you a piece before and after the position where your code should be (this is the current code)

              <?php if ($this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['pic'] != ""): ?>

                    <a href="<?php echo $this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['direction_pic']; ?>
              " class="highslide" onClick="return hs.expand(this)"><img src="<?php echo $this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['direction_pic']; ?>
              " alt="Highslide JS" title="Klik om te vergroten" width="100" /></a>

              &nbsp;<?php endif; ?>


              When changing your code with the piece that is in the middle it does not work  :-(
                ...:: Bake the Unbakable ::...

                Ruud

                The additional ines in view.php will create an extra element (called thumbnail_pic) in the "pics" array.

                You want to use the thumbnail in the <img src=""> part. So your code would become:

                <?php if ($this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['pic'] != ""): ?>

                      <a href="<?php echo $this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['direction_pic']; ?>
                " class="highslide" onClick="return hs.expand(this)"><img src="<?php echo $this->_tpl_vars['pics'][$this->_sections['sec2']['index']]['thumbnail_pic']; ?>
                " alt="Highslide JS" title="Klik om te vergroten" width="100" /></a>

                &nbsp;<?php endif; ?>


                Find the "thumbnail_pic" to see where it changed.

                Ruud


                  Boudi

                  Ok done, Implemented it.

                  But ehm no offense  :oops:, I see no difference? other than what was already there?  :|
                    ...:: Bake the Unbakable ::...

                    Ruud

                    Look at the properties of a thumbnail in a details page.

                    You will see it is now 3kb instead of the 300kb of the original image.
                    A page like http://www.telmakelaars.nl/pages/catalog/de-wilp32.php?cat_id=1&number=0 will load about 2MB less data.

                    Some people (especially with 48kb dial-up modems) will see the difference.

                      Boudi

                      #35
                      Holy steak!

                      Yes now I noticed it (Got a rather fast computer here so I switched to antoher)

                      What a difference!!! It loads in a glimp  :lol:

                      You are right..I try to implement this in the main page too!

                      Great work...again  8-) Thank you for your time in this late hour  :mrgreen:

                      Update: tried some tweaking with the mainpage but unfortunately I only got the image loads faster. The links to the details page got disabled.
                        ...:: Bake the Unbakable ::...

                        \n\n