HTML Display more when scrolling down - php

So I have no idea how to ask this. I have a Website with Posts like Twitter. Currently 8 Posts fit on one page, is it easy to implement that when the users scrolls down, 8 additional Posts are revealed? Or is it way easier to make it with pages? Beginner here :)

Its more user friendly to load more content when user reaches the end of the page or by clicking a "View more" Button. using JavaScript.
Check here on how to use JQuery to make this possible:
https://infinite-scroll.com/

Related

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!

Facebook "Like" a photo in a list of photos on single PHP page

What I'm trying to accomplish seems like it should be pretty simple...
I have a gallery of 10-20 photos in a grid, all on a single PHP page.
I want a Facebook "Like" button below each photo. When the "Like" is shared on the user's profile (if they choose), I want it to show the photo they liked, but link to the page with the gallery.
A wireframe image of what I'm trying to accomplish is here: http://i.stack.imgur.com/u3h0E.png
Right now, I'm simply using a simple Facebook Like Button, but I want to tie each Like Button to the respective photo, yet have it all tied back to this gallery page.
Any help or direction is appreciated! Would certainly prefer to stay away from setting up anything complicated with the Graph API, but if that's the only method, let me know!
One quick solution would be to have each photo in the gallery (and its respective like button) render within its own IFRAME. As far as the photo display and LIKE button are concerned, they live in a separate context (and URI). You could then redirect any requests to that URI that don't originate from an AJAX request (i.e. whenever someone tries to access the content that has been "Liked") to the gallery page. This has the added advantage that you can (as your app evolves) use AJAX calls to substitute out and load in new photos, in place of the old ones, with minimal effort (that's a tangent though).

Integrate facebook Like button for a specific element of my website

I have a website where i implement a wall of messages, the idea is to add to each of this wall messages a like button, where clicking on it would immediately post on the user's facebook profile page that he likes THAT SPECIFIC COMMENT.
Is this possible? I just enter this new world of facebook php developers, and as far as I have read here it always talks about adding a Like button for a specific URL. I would like to make the like button apply for the specific post within the messages wall.
I am clueless as where to start, if by the way any one could recommend a detailed tutorial on how to integrate a website to facebook in its different ways, i would really appreciate it.
EDIT:
Looking into #Kaan Soral suggestion of using open graph, I think it is important to add that I dont want each wall post that the user likes to appear in the "Likes and Interests" section of his profile... This wouldn't make sense because he would rapidly have loads of likes of separate wall posts.
Its possible, read this: http://developers.facebook.com/docs/opengraph/
You have to create a URL for every item that will be liked and on that URL there should be META tags for descriptions, image etc

Facebook More Button on the Wall

I would like to create a more button similar to facebook that loads more items on the wall.
Could someone please advice on how I could get this working in PHP. Could you please point me to a resource or let me know a way how I can acheive this.
I think what you seek is called an infinite scroller.
Check out this tutorial on how to create an infinite scrolling gallery on PHP. This one doesn't have the "more" button, it loads more content automatically every time you scroll the page down to the bottom. But it's easy enough to adapt it to work with a "more" button.
Edit: here's another tutorial, this time with the button.

Pagination to viewing on one page

I have a module that displays registered and verified users for my CMS. The module is paginated displaying 10 on each page however I have a button that says "View All Members". What I'd like to know is how it would be possible for me the module to display ALL records on the page when the button is clicked and not sure how that would be possible. I am using PHP as well as jQuery.
You're being pretty vague but how about making your button redirect to url like http://mycms.com/users/all where all is the same page as users without the pagination in place.

Categories