Ötlet: Dinamikusan változtatható szélességű Facebook pluginek

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Gyorstippek

Ez egy ötlet, ami működik, viszont nem vagyok egy Stahl Judit, süti témában annyit tudok, hogy vannak, és lehet használni. Tehát a kockázatok és mellékhatások következményeiről írjon itt a kommentben, vagy kérdezze meg sminkmesterét, sitebuilderét (hopp, fail.. ez én vagyok..)

Probléma a következő: Adott egy manapság oly divatos reszponzív drupal smink. Szépen be van állítva cssből, hogy milyen méretekben, hogyan jelenjen meg. Igenám, de a facebook plugineknek többnyire van egy olyan csúnya paraméterük, hogy "width". Ezt php-ből állítani tudjuk, de szerveroldalon nem tudunk meggyőződni a böngésző szélességéről.

Mi most mégis megcsináljuk, az alapötlet rém egyszerű:

Vegyük a facebook pluginek méretét alapértelmezetten a legkisebbre, ami a reszponzív sminkünk legkisebb felbontás melletti formázásaihoz passzol.

Jqueryvel tegyünk egy hosszúlejáratú sütit a user gépére.

[geshifilter-drupal6](function ($) { Drupal.behaviors.tm_hooks = { attach: function(context, settings) { $.cookie("en_kicsi_kukim", $(window).width(), {expires : 365}); } }; })(jQuery); [/geshifilter-drupal6]

Majd phpvel kiolvasva állítsuk a facebook plugin paraméterét a kívánt értékre a sminkfüggvényünkben, vagy templateben.

Pl 1280-nál kisebb böngészőnél 350pxes, annál nagyobbnál 520px-es plugint kérünk.
És itt kell még egy help: Az a fránya jquery nem igazán a böngésző rendes szélességét adja vissza, legalábbis ami a firefox web developer toolbar méretezését illeti, szóval ez most hogy is van?
[geshifilter-drupal6] $fb['width'] = isset($_COOKIE['en_kicsi_kukim']) && $_COOKIE['en_kicsi_kukim'] > 1263 ? 520 : 350;[/geshifilter-drupal6]

Ebben az esetben mindössze egyetlen alkalommal fog a felhasználónál a legkisebb méretű plugin megjelenni, és még ha át is méretezi a böngészőt, az is korrigálva lesz a következő oldalletöltéskor.

Kérdések:

  1. Mennyire ok, ez módszer, nincs-e benne valami buktató, amit benéztem?
  2. Van-e más lehetőség?
    • Css kilőve, egy likeboxnál még keservesen be lehet jól sminkelni, de egy fb_commentnél már kizárt.
    • Valami jquery vudu, amivel az iframen belül lehet babrálni? Ezzel megint olyan gázt érzek, hogy az fb azért a szélesség paraméter alapján elég sok mindent kiszámol. Szóval ez valahogy a dokumentum betöltése előtt jöhet szóba, tehát nem kizárt.
    • Valami a facebook apiban?

Hozzászólások

I really like your blog..

I really like your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you? Plz respond as I'm looking to construct my own blog and would like to know where u got this from. kudos|

You need to take part in a

You need to take part in a contest for one of the finest blogs online. I will recommend this website!|

This website really has all

This website really has all the information I needed about this subject and didn't know who to ask. |

Aw, this was a very nice

Aw, this was a very nice post. Spending some time and actual effort to make a good article… but what can I say… I put things off a whole lot and never seem to get anything done.|

I am regular reader, how are

I am regular reader, how are you everybody? This paragraph posted at this site is truly nice.|

I know this web site presents

I know this web site presents quality dependent articles or reviews and other material, is there any other web site which presents these kinds of information in quality?|

Excellent write-up. I

Excellent write-up. I absolutely love this site. Thanks!|

hello there and thank you for

hello there and thank you for your info – I have certainly picked up anything new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the website lots of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and could damage your high quality score if ads and marketing with Adwords. Well I am adding this RSS to my e-mail and can look out for a lot more of your respective fascinating content. Ensure that you update this again soon.|

I'm curious to find out what

I'm curious to find out what blog platform you happen to be using? I'm experiencing some small security issues with my latest website and I'd like to find something more safe. Do you have any suggestions?|

If you would like to increase

If you would like to increase your know-how only keep visiting this web site and be updated with the hottest information posted here.|

Hi there, all the time i used

Hi there, all the time i used to check web site posts here in the early hours in the morning, because i like to gain knowledge of more and more.|

I pay a visit every day a few

I pay a visit every day a few web sites and websites to read articles, but this website presents quality based writing.|

Fine way of explaining, and

Fine way of explaining, and fastidious article to obtain information on the topic of my presentation focus, which i am going to present in academy.|

Awesome! Its really

Awesome! Its really remarkable article, I have got much clear idea about from this post.|

Hi there are using Wordpress

Hi there are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you require any coding knowledge to make your own blog? Any help would be really appreciated!|

Your mode of describing the

Your mode of describing the whole thing in this paragraph is genuinely fastidious, all can easily be aware of it, Thanks a lot.|

Hi there are using Wordpress

Hi there are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you need any coding expertise to make your own blog? Any help would be really appreciated!|

Hello colleagues, fastidious

Hello colleagues, fastidious piece of writing and good urging commented at this place, I am actually enjoying by these.|

This design is incredible!

This design is incredible! You most certainly know how to keep a reader entertained.
Between your wit and your videos, I was almost moved to start
my own blog (well, almost...HaHa!) Excellent job.
I really loved what you had to say, and more than that, how you presented it.
Too cool!
Jay's Santa Clarita Tree Removal Kings
26174 Las Lanas Ct, Santa Clarita, CA 91355
661-464-1270
laureljefferson09875 [at] gmail [dot] com

Hello there I am so excited I

Hello there I am so excited I found your web site, I really found you by error, while I was browsing on Yahoo for something else, Anyhow I am here now and would just like to say thank you for a fantastic post and a all round entertaining blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the great b.|

I'm now not positive the

I'm now not positive the place you are getting your info, however good topic.
I must spend some time studying much more or figuring out more.
Thank you for fantastic info I was looking
for this information for my mission.

Heya i'm for the first time

Heya i'm for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to provide one thing again and help others such as you helped me.|

I truly love your website..

I truly love your website.. Excellent colors & theme. Did you build this website yourself? Please reply back as I'm hoping to create my own personal website and would love to know where you got this from or exactly what the theme is called. Thanks!|

What's up it's me, I am also

What's up it's me, I am also visiting this web site regularly, this website is genuinely nice and the people are really sharing pleasant thoughts.

Thank you for the good

Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to far added agreeable from you! However,
how can we communicate?
Jay's Santa Clarita Tree Removal Kings
26174 Las Lanas Ct, Santa Clarita, CA 91355
661-464-1270
laureljefferson09875 [at] gmail [dot] com

You ought to be a part of a

You ought to be a part of a contest for one of the most useful websites online. I most certainly will recommend this site!|

I visited many web sites

I visited many web sites however the audio quality for audio songs existing at this web site is truly marvelous.|

Hello friends, how is the

Hello friends, how is the whole thing, and what you desire
to say about this post, in my view its truly amazing designed
for me.

Undeniably believe that which

Undeniably believe that which you stated. Your favorite justification seemed to be on the net the simplest thing to be aware of. I say to you, I certainly get irked while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks|

It's a shame you don't have a

It's a shame you don't have a donate button! I'd certainly donate to this fantastic blog! I suppose for now i'll settle for book-marking and adding your RSS feed to my Google account. I look forward to brand new updates and will share this blog with my Facebook group. Chat soon!|

Excellent post. Keep posting

Excellent post. Keep posting such kind of info on your blog. Im really impressed by your blog.

Wow, that's what I was

Wow, that's what I was seeking for, what a information! present here at this website, thanks admin of this web page.|

Can I simply say what a

Can I simply say what a relief to discover somebody that truly knows what they're discussing on the net.
You actually realize how to bring an issue to light and make it important.
A lot more people really need to check this out and
understand this side of your story. I was surprised that you aren't more popular
since you surely have the gift.

Hiya very nice site!! Guy ..

Hiya very nice site!! Guy .. Beautiful .. Wonderful .. I will bookmark your website and take the feeds additionally? I am glad to search out numerous useful info right here within the put up, we'd like develop more techniques in this regard, thank you for sharing. . . . . .|

Your style is unique in

Your style is unique in comparison to other people I
have read stuff from. Thank you for posting when you have the opportunity, Guess I will just bookmark
this blog.

Magnificent beat ! I would

Magnificent beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea|

sedhyo 7gk6abc9qx billiga

sedhyo 7gk6abc9qx billiga fotbollströjor e9kg0jn13 zut8aixlgn\n gdbkrit 0j82lv1 billiga fotbollströjor spi0d6u2f xb215p7kr\n x8obqle bge97rxv26 billige fotballdrakter k7utxf zn6ctqd4\n

I know this web site presents

I know this web site presents quality dependent articles and extra material, is there any other web site which offers such stuff in quality?|

Your mode of explaining

Your mode of explaining everything in this article is in fact good, all can easily be aware of it, Thanks a lot.

Nice post. I was checking

Nice post. I was checking continuously this blog and I am inspired! Extremely helpful information specially the ultimate part :) I deal with such info a lot. I was seeking this particular information for a very long time. Thank you and best of luck. |

It's amazing designed for me

It's amazing designed for me to have a site, which is valuable designed for my know-how. thanks admin|

If you desire to grow your

If you desire to grow your knowledge only keep visiting this web site
and be updated with the latest news posted here.

Do you have a spam issue on

Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; many of us have developed some nice practices and we are looking to swap techniques with others, please shoot me an email if interested.|

Hi there, I enjoy reading all

Hi there, I enjoy reading all of your post. I wanted to write a little comment to support you.|

M.E.C Mon Electricien

M.E.C Mon Electricien Catalan
44 Rue Henry de Turenne
66100 Perpignan
0651212596

Electricien Perpignan

I really love your blog.. Excellent colors & theme.

Did you develop this amazing site yourself?
Please reply back as I'm looking to create my own website and would love to learn where
you got this from or just what the theme is named. Kudos!

This is a really good tip

This is a really good tip particularly to those fresh to the blogosphere. Simple but very precise info… Appreciate your sharing this one. A must read post!|

I couldn't refrain from

I couldn't refrain from commenting. Exceptionally well written!

Have you ever thought about

Have you ever thought about publishing an e-book or guest authoring on other websites? I have a blog based upon on the same information you discuss and would really like to have you share some stories/information. I know my visitors would enjoy your work. If you're even remotely interested, feel free to shoot me an e mail.|

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

At this moment I am going away to do my breakfast, later than having my breakfast coming yet again to read
other news.

My partner and I stumbled

My partner and I stumbled over here from a different web address and thought I might as well check things out. I like what I see so now i'm following you. Look forward to looking into your web page for a second time.|

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.