Facebook like button? - php

For the last few days i've had an issue with the like button it's no longer working? I've been told it's due to fb:app_id is now required (so looks like i gotta edit over 17,000 pages to add this tag!) so i tried it on just one page however it still doesn't appear?
It has also now stopped the Tweet button appearing yet twitter is nothing to do with the iframe like button?
The page is this: link - please let me know if i'm missing something here..
It's kinda annoying if i have to use fb:app_id aswell now as i got over 17,000 pages that i'll need to edit to add the fb:app_id tag.
Also my other site doesn't have an app or a page so how would i use fb:app_id on that? I was using fb:admin before...

On the page you link to, your FB:Like button code is commented out with <!-- --> so of course it won't appear.
Also, you have two <div id="fb-root"> 's on your page and this will cause errors. You need to make sure there is only one of those divs.

Thanks everyone above for your help i just remembered what a silly person i was and i remember i put this in my css file:
iframe {
display: none;
}
so that's why it wasn't working, my bad! thanks everyone above anyway. (how can i close this as resolved?)

Related

CakePHP-Ask about the logo and other affections?

Sorry I have to make new question like this, because I don't know the keywords to ask for this problem.
I am studying CakePHP. When I make the page to query the list user from DB and I make the page navigation inside. Everything was ok but when I add my logo into the top of website. It will ok if I stay on my page, but when I click to navigation page. It will disappear (look like the link of image is broken).
This one is ok when I don't click to navigation page.
And this one is broken.
My question is: how to fix this problem. Because not only this logo, but also some things else have the same problem too, I want it that wil be appeared on everypage or action. Can anybody help me about this.
Update: I have find the way to solve this problem. We use the helper to make the img. Instead, we use HTML tag for show the img. We use the helper in CakePHP like:
<?php
echo $this->Html->image
(
'CakeIcon.jpg',
array
(
'alt'=>'td-cakephp',
'height'=>'50px',
'width'=>'50px'
)
);
?>
I update for someone research this situation that can be solved more easily.

Blank space at the bottom of page when using BACK with CHROME

Not sure how to ask this question properly.
If you go on the website I'm currently working on:
My Website
The page loads fine, but if you go to another page or link afterwards and then hit BACK, the same page loads with a huge blank space at the bottom. If you refresh the page, it fixes itself. The website pcgamer.com seems to have the same problem.
Here is my HTML/PHP and CSS:
Source Code
EDIT 1: Removing the facebook plugin seems to solve the problem, but how can I use the plugin without having this issue ?
disable facebook like plugin and check it will fix your problem
I just check your web and I think I got your problem. You set .bodymainwrap to has height of 2100px. Please delete the css height:2100px; at .bodymainwrap selector. I'm sure it'll work.

CSS PHP that i am struggling with

I am having a hard time figuring out what's going on with a theme for a new script that i just bought.
My site is azngirls.com (don't worry it's not pornographic hahah) and if you go to the frontpage you will see that there is a nav bar on top or header bar that shows Login - Register (Forgot Password) and etc. and that bar is supposed to be on top without any gap but if you go to other parts of the site like for example http://azngirls.com/tos - you will see that there is a gap between that nav bar and the actual top of the website which makes it look awkward when you scroll down. This problem occurs everytime i edit the smallest things inside the php file, as in even if i change a single word or letter it suddenly shows that gap.
Another problem that I am having is that on the same page - on the side bar to the right there is a "Show me" button for Browser Plugins but when i click the link it takes me to a 404 page, but when i click the Tools link in the footer menu it takes me to a page that works.
Thanks alot for any help you guys can give! Really appreciate it!
you have a huge empty line filled with whitespace between <body> and <meta> tags. and you included a <meta> tag inside a body, as it should be in the <head> tag.
As #tpaksu suggested, your html is totally messed up. And there is a easy fix to your problem, just add the following code to your style sheet.
.content-infobox {
top: 0;
}
use this code on the respective ID
#id{
margin:0px;
}

Facebook App: User should first click like button to use the app

I have seen this in many apps where user is first asked to click like button and then redirected to the main app. How can I achieve this?
I am using php.
Adding a like button on top of the app pages doesn't attracts much likes.
Any help is appreciated!
-Sandy
There are so many solution already for this. Basically you just need a javascript script to hide the main page , and a php script to show the page so that until the user cliks like, then you show it.
A simple searching gave alot of code.
check this ones on stack, or this one and also, this one
Basically, you have to use jquery to hide the page
hope this helps!

IE 9 is posting to facebook wall twice when like button is clicked and a comment is added to like

Stack:
Any idea what could be causing this? It seems like a IE ?9? problem. Basically, I'm using the XFBML facebook like button. And while I've been testing with it, I've noticed that if I "like something" and then write a comment in the like button popup that appears, the post appears on my facebook wall twice. It appears once looking like I just clicked "like" and didn't add a comment, then it appears again with the comment.
Any ideas as to how to fix this? I don't want IE users not liking my content out of fear that they will spam their facebook wall.
To be honest it actually makes sense that it would add one as like and the other as comment because it is divided up just like that!
To delve a little deeper, does this action vary between browsers, if so 1.) how and 2.) can you provide an example for us to see?

Categories