Chcę aby pod obrazkiem prócz buttona share na facebooka był też button lubie to mam w skrypcie tak
  1. <div class="like-this-shit-bitch">
  2. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  3. <a name="fb_share" class="fb-share" share_url="<?php echo $url ?>"><?php echo $config['Site']['facebookButtonText'] ?></a>
  4. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  5.  
  6. <?php
  7. $class = '';
  8. $title = __('Dodaj do ulubionych');
  9. if(isset($post['Favorite'])) {
  10. if( ! empty($post['Favorite']['user_id']) and ! empty($post['Favorite']['post_id'])) {
  11. $class .= ' added';
  12. $title = __('Usuń z ulubionych');
  13. }
  14. }
  15. ?>








Po zrobieniu tak \/




  1. <div class="like-this-shit-bitch">
  2. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  3. <a name="fb_share" class="fb-share" share_url="<?php echo $url ?>"><?php echo $config['Site']['facebookButtonText'] ?></a>
  4. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  5. <iframe src="<?php echo $url ?>"><?php echo $config['Site']['facebookButtonText'] ?>&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
  6.  
  7. <?php
  8. $class = '';
  9. $title = __('Dodaj do ulubionych');
  10. if(isset($post['Favorite'])) {
  11. if( ! empty($post['Favorite']['user_id']) and ! empty($post['Favorite']['post_id'])) {
  12. $class .= ' added';
  13. $title = __('Usuń z ulubionych');
  14. }
  15. }
  16. ?>
  17.  
  18.  
  19.  



Pokazuje mi się małe okienko mojej strony więc jest źle ;p
a może tak





  1. <div class="like-this-shit-bitch">
  2. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  3. <a name="fb_share" class="fb-share" share_url="<?php echo $url ?>"><?php echo $config['Site']['facebookButtonText'] ?></a>
  4. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  5. <?php $url = Configure::read('App.config.BaseHref') . '/' . $post['Post']['id'] . '/' . $post['Post']['slug'] ?>
  6. <iframe src="<?php echo $url ?>"><?php echo $config['Site']['facebookButtonText'] ?>&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
  7.  
  8. <?php
  9. $class = '';
  10. $title = __('Dodaj do ulubionych');
  11. if(isset($post['Favorite'])) {
  12. if( ! empty($post['Favorite']['user_id']) and ! empty($post['Favorite']['post_id'])) {
  13. $class .= ' added';
  14. $title = __('Usuń z ulubionych');
  15. }
  16. }
  17. ?>


niewiem nie próbowałem ale wątpie
moja znajomość takich przeróbek jest zerowa wieć nie śmiać się tongue.gif
Ale jak by mógł ktoś pomóc to zgóry dziękuję