Ö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

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

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.

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

Excellent post. Keep posting

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

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.

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.

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

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.

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.

I couldn't refrain from

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

You're so interesting! I do

You're so interesting! I do not believe I've truly read anything like this before.
So good to find another person with some unique thoughts on this subject
matter. Really.. thank you for starting this up.
This site is something that is required on the web, someone with
a little originality!

Great web site you have

Great web site you have here.. It's hard to find
high quality writing like yours these days. I really appreciate people like you!
Take care!!

you are truly a excellent

you are truly a excellent webmaster. The web site loading pace is incredible.
It kind of feels that you're doing any distinctive trick.
In addition, The contents are masterwork. you have performed a excellent job in this topic!

Have you ever thought about

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

Get the very best info on

Get the very best info on native tree providers.

I was wondering if you ever

I was wondering if you ever considered changing the layout of
your blog? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so
people could connect with it better. Youve got an awful lot of text for only having 1 or two images.

Maybe you could space it out better?

I am sure this post has

I am sure this post has touched all the internet users, its really really nice article on building up new website.

Jay's Santa Clarita Tree Removal Kings
26174 Las Lanas Ct, Santa Clarita, CA 91355
661-464-1270
laureljefferson09875 [at] gmail [dot] com

Appreciate this post. Let me

Appreciate this post. Let me try it out.

I’m not that much of a

I’m not that much of a internet reader to be honest but your sites really nice, keep it up!

I'll go ahead and bookmark your site to come back in the
future. Cheers

Fantastic beat ! I wish to

Fantastic beat ! I wish to apprentice while you amend your site,
how can i subscribe for a blog website? The account aided me a
acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear idea

I'm extremely impressed with

I'm extremely impressed with your writing skills and also with the layout on your weblog.

Is this a paid theme or did you customize it yourself?
Either way keep up the nice quality writing, it is rare to see a great blog like this one nowadays.

This is a topic which is near

This is a topic which is near to my heart... Thank you!

Where are your contact details though?

Anaheim Divorce Lawyers in Practice
204 S Illinois St, Anaheim, CA 92805
714-410-5333
sabihafelix09835 [at] gmail [dot] com

Nice post. I was checking

Nice post. I was checking constantly this blog and I'm impressed!
Extremely helpful information particularly the last part :) I care for such info much.

I was seeking this certain information for a very long time.

Thank you and good luck.

It's nearly impossible to

It's nearly impossible to find educated people in this particular
subject, however, you seem like you know what you're talking
about! Thanks

I really like your blog..

I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to do it for
you? Plz answer back as I'm looking to construct my own blog and
would like to find out where u got this from. appreciate it

Anaheim Divorce Lawyers in Practice
204 S Illinois St, Anaheim, CA 92805
714-410-5333
sabihafelix09835 [at] gmail [dot] com

Unquestionably imagine that

Unquestionably imagine that which you said. Your favorite reason seemed
to be at the net the simplest factor to have in mind of.
I say to you, I certainly get annoyed while other people think about
issues that they plainly don't realize about. You managed to hit the nail
upon the highest as neatly as defined out the entire thing with no
need side-effects , people could take a signal. Will probably be back to get more.
Thank you

This is really fascinating,

This is really fascinating, You are an overly professional blogger.
I have joined your feed and look forward to in search of more of your excellent post.
Additionally, I have shared your web site in my social networks

You're so cool! I don't

You're so cool! I don't believe I've truly read anything like that before.
So good to discover another person with genuine thoughts on this
issue. Really.. thanks for starting this up. This web site is one thing that is needed on the
internet, someone with a bit of originality!

Hello! I know this is

Hello! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for
my comment form? I'm using the same blog platform as yours and I'm having difficulty finding one?
Thanks a lot!

I'm not sure exactly why but

I'm not sure exactly why but this web site is loading very slow
for me. Is anyone else having this issue or is it a problem on my end?
I'll check back later on and see if the problem still exists.

I always used to study

I always used to study paragraph in news papers but now as I am a user of internet therefore from now I am using net for articles
or reviews, thanks to web.

I like the valuable

I like the valuable information you provide to your articles.
I'll bookmark your blog and check once more here frequently.
I am quite sure I'll be told a lot of new stuff right right here!
Best of luck for the next!

I am extremely impressed with

I am extremely impressed with your writing skills and also with the layout on your blog.
Is this a paid theme or did you customize it yourself?
Either way keep up the nice quality writing, it is rare to see a nice blog like this one today.

I really like your blog..

I really like your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone to do it for you?
Plz answer back as I'm looking to create my own blog and would like to find out where u got this from.
many thanks

I want services for my

I want services for my business property.

Hello there, There's no doubt

Hello there, There's no doubt that your web site might be having web
browser compatibility problems. When I take a look at your blog
in Safari, it looks fine but when opening in Internet Explorer, it
has some overlapping issues. I just wanted
to give you a quick heads up! Besides that, great blog!

Have you ever thought about

Have you ever thought about writing an ebook or guest authoring on other sites?
I have a blog centered on the same information you discuss and would love to have you share some
stories/information. I know my visitors would appreciate your work.
If you are even remotely interested, feel free to send me an e mail.

This piece of writing gives

This piece of writing gives clear idea in support of the new viewers of
blogging, that genuinely how to do blogging.

always i used to read smaller

always i used to read smaller content that as well clear their motive, and that is also happening with this post which I am reading at this place.

I'm extremely impressed with

I'm extremely impressed with your writing skills and
also with the layout on your blog. Is this a paid theme or did you customize it yourself?
Either way keep up the nice quality writing, it's rare to see a
nice blog like this one nowadays.

Paragraph writing is also a

Paragraph writing is also a fun, if you be acquainted with
then you can write otherwise it is difficult to write.

Thank you for the good

Thank you for the good writeup. It in fact was a amusement
account it. Look advanced to more added agreeable from you!
By the way, how could we communicate?

Do you mind if I quote a few

Do you mind if I quote a few of your articles as long as I provide credit and sources back to your
site? My blog is in the exact same niche as yours and my visitors would really benefit from a
lot of the information you present here. Please let me know if
this alright with you. Appreciate it!

If some one desires expert

If some one desires expert view regarding blogging afterward i recommend him/her to pay a visit this blog, Keep up
the nice job.

Pretty! This was a really

Pretty! This was a really wonderful post. Many thanks
for providing this information.

Heya i am for the first time

Heya i am for the first time here. I came across this board and I find It
truly useful & it helped me out a lot. I am hoping to give something
again and help others like you aided me.

I believe this is among the

I believe this is among the so much significant info for me.

And i'm glad reading your article. However should statement on some common issues, The web site style is great, the articles is really great :
D. Just right job, cheers

Pretty part of content. I

Pretty part of content. I simply stumbled upon your site and in accession capital to claim that I acquire actually loved account your weblog posts.
Any way I will be subscribing to your augment or even I success you get right of
entry to consistently quickly.

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.