- Ok that being said, you need to open –
ow_plugins/newsfeed/static/js/newsfeed.js
- Right after “this.$viewMore = this.$(‘.ow_newsfeed_view_more_c’);”
add this code:$(window).scroll(function(){
if($(window).scrollTop()+$(window).height() == $(document).height()){
var btn = self.$viewMore.find(‘.ow_newsfeed_view_more’);
btn.trigger(“click”);
}
});All we have done here is add a scroll function, this is called when the user scrolls. Inside of that we say “if the user is at the bottom of the page” (if the amount scrolled above plus the current window height is the same size as the entire document, we are at the bottom of the page) then we want to trigger the click function for the “view more” button.\
You can take this a step further and do a lot more with it too like add a loading message etc.
(Don’t forget to set”OW_DEV_MODE” to true in your config.php file to reload the js file)
That’s it, let me know if this works for you and any comments/critiques are welcome.
Thank you,
Charles Benson, http://OxwallAccessories.com
Looking for quality OxWall Hosting? Look no further than Arvixe Web Hosting!
– See more here
– See more here
Can you do a video step by step how to create a backup for your Oxwall site in cpanel? I want to update 1.6 but I want the create a backup first in case something go wrong I can go back to 1.5.3 but I don’t know how to create a backup. Please show me thanks.
I will touch on the topic in a future blog. There is a few ways to do it.
Thanks
I tried this code in my demo site, But it didn’t work. DEV_MODE is true. Please help