Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:53:25 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21712 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: CurvyCorners  (Read 866 times)
topper

Offline Offline

Posts: 24


« on: October 03, 2010, 06:59:34 PM »

Hello,

Nice plugin and works fine.

Is it possible to use two different set at the same WYSIWYG site ?
I tried to change jquery name and css rules but didnt get it to work.

rgrds topper
Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #1 on: October 03, 2010, 07:20:45 PM »

this is the code in your preset?
Code:
$(".roundedCorners").each(function() {
      $(this).wrap('<div class="rounded" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />');
      //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;
      if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); }
      if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); }
      $(this).hide();
    });
    $('.rounded').ccorner({
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: true,
    });

maybe:
copy the original and paste it below, than change the classes to:

Code:
$(".roundedCorners2").each(function() {
      $(this).wrap('<div class="rounded2" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />');
      //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;
      if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); }
      if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); }
      $(this).hide();
    });
    $('.rounded2').ccorner({
          tl: { radius: 20 },
          tr: { radius: 20 },
          bl: { radius: 20 },
          br: { radius: 20 },
          antiAlias: true,
          autoPad: true,
    });

and give your pics the class roundedCorners2
Logged

topper

Offline Offline

Posts: 24


« Reply #2 on: October 03, 2010, 08:28:38 PM »

thanks again dbs

there is something i cant find out






« Last Edit: October 03, 2010, 09:24:30 PM by topper » Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #3 on: October 03, 2010, 08:49:37 PM »

must work:
look

try 1 preset on 1 site.
preset contains this:
Code:
<!-- position: head -->
    <script type="text/javascript" src="{WB_URL}/modules/jqueryadmin/plugins/CurvyCorners/jquery.curvycorners.min.js"></script>
<!-- position: head -->
    <script type="text/javascript">
    $(document).ready(function() {
    $(".roundedCorners").each(function() {
      $(this).wrap('<div class="rounded" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />');
      //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;
      if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); }
      if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); }
      $(this).hide();
    });
    $('.rounded').ccorner({
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: true,
    });
    $(".roundedCorners2").each(function() {
      $(this).wrap('<div class="rounded2" style="background:url(' + $(this).attr('src') + ') no-repeat center center;" />');
      //width: ' + $(this).width() + 'px; height: ' + $(this).height() + 'px;
      if ( $(this).width() != "" ) { $(this).parent().css("width", $(this).width() + "px" ); }
      if ( $(this).height() != "" ) { $(this).parent().css("height", $(this).height() + "px" ); }
      $(this).hide();
    });
    $('.rounded2').ccorner({
          tl: { radius: 20 },
          tr: { radius: 20 },
          bl: { radius: 20 },
          br: { radius: 20 },
          antiAlias: true,
          autoPad: true,
    });
  });
    </script>
// ----- insert your custom code here -----

i think you have on site 2 forgot this at the end:
Code:
});
« Last Edit: October 03, 2010, 08:55:33 PM by dbs » Logged

topper

Offline Offline

Posts: 24


« Reply #4 on: October 03, 2010, 09:06:42 PM »

fine

i made 2 different presets with 2 names that was wrong one is enough.

thanks a lot again
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!