Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Mała pomoc w dodaniu "lubie to" pod obrazkiem
majdanx92
post 23.09.2011, 09:09:50
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 23.09.2011

Ostrzeżenie: (0%)
-----


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ę
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 1.07.2025 - 01:00