I have a blog page that uses ajax to call different article from PHP files once the relevant link is clicked. The problem is that when the PHP loads the Facebook plug-ins don't work. If I open the PHP files using the URL directly in the address bar on the browser then they work fine. I am including links to my page so that you can see it in action. If you replace blog.html with blog1.php you will see what I mean. I would really appreciate any help. Thanks. http://www.tagwebsites.com.au/blog.html
I managed to sort this out with the help of Facebook. The issue was as simple as adding the BFML tag to the html tag at the top of each page. It works great now. Thank you to everyone that sent messages through. I really appreciate your help.
Related
I'm doing some school homework right and am creating a PHP site. I'm using an HTML template demo as my template, however, after some editing, certain pages won't load bootstrap properly unlike the others. Here are screenshots of the site:
While on another page they load properly.
Also, before I sign in, my modal had no container.
It will be a great pleasure for me if anyone would be able to help me.
Thanks in advance!
edit: i didnt know what or where it went wrong so i upload my whole project here : https://github.com/ch182/spp
i have check about this question. But still stuck, I am using wordpress and want to insert it in some page or post.
So i have searched and see this code http://jsfiddle.net/akhurshid/NuwE6/ but when i transfer to html or insert in http://liveweave.com/8PQ77Q and nothing happen?
Any idea?
Thanks for your help
You probably don't have jQuery included in your page. For instance, on LiveWeave, you need to add jQuery as a library to see your code working. Just check you have jQuery loaded on your Wordpress website.
I am working on a site that was previously developed by someone else.
You can see the site here: http://www.pivotalevents.com/nonametag/index.html
Having issue on this page here: http://www.pivotalevents.com/nonametag/introduce.php
I have coded in a CAPTCHA on the contact page and used some PHP, making the page a PHP extension file 'introduce.php'. Previously it was 'introduce.html'.
The problem: When going from any page on the site, to the contact page, the entire contact page jumps around. The page expands, then collapses back to it's normal width. If you look at the logo, you can see it jump out, then back in.
When I change the page back to .html extension, it doesn't do this.
Why is this happening? Is it because the site's main wrapper is a table?
Any direction would be greatly appreciated! :)
Yes this could be because the site's main wrapper is in a table...
I re-wrapped the site in div tags and now the page does not jump. Seems there was a problem related to the tables and switching from HTML to PHP.
I have been working on ajax for quite a while. I know about the hashtag and hashbang. Recently I have started using Code Igniter framework. Lets say I am in a page - http://domain.com/media, and there is a link called 'audio'.
When I click on this audio link, I send an ajax request, fetch the contents and display the content dynamically. But in such case the URL still remains the same (i.e.,) http://domain.com/media.
Now, is it possible to change the url to http://domain.com/media/audio when I click on the audio link and I still want to have the ajax functionality. I dont want to do it the usual way of the code-igniter (/controller/method).
Any help would be appreciated. Thanks in advance.
If it is not possible in Code Igniter, is it possible in any other framework?
You can use the pushState to achieve this.
Here's an example of my own site using it for browsing given images; no reloading occurs. I've also added support for each gallery image and it's loaded url, so that you can share the url with anyone without problems. The fallback is that if pushState is not supported, you will simply browse as you always do.
On my site, I have google adsense in my right hand side nav bar. The problem I find is because the adsence code is placed before the actual webpage content, as I use includes in php to pull my site template in, I find that it loads the adsence code first and can cause everything else to load after it.
Does anyone know of a good way that I can force it to loads after the actual webpage loads?
Hi i managed to solve it. I found this: How to make Google Adsense load last after the rest of page and someone replied with a link to show how to do it. Solved. Thanks :)
http://www.plus2net.com/php_tutorial/sleep.php
Something like this?
Or use a javascript settimeout and display an ajax loader gif whilst it loads.
More info on AJAX preloaders: http://blog.twostepmedia.co.uk/jquery-ajax-gif-preloader/
If you can edit your site's template, then you should be able to edit the Adsense loader. Find where it is being included on your template and move it down, to just before the closing </body> tag.