View Single Post
  #1  
Old 21 Mar 2022, 11:58
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Question Creating a Load More button, Need Some Help.

So this is petty standard feature of most sites today, load more by pressing a button. So what Im trying to do is make an ajax request to a duplicated modified forumdisplay.php to load the next page of threads automatically.

Heres the procedure.
In my forumdisplay template I have created an ajax script:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

loadmore.php is essentially a modified duplicate of forumdisplay.php
the notable changes are:
I have included

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and I have changed the eval template from FORUMDISPLAY to loadmore

the loadmore template ONLY includes $threadbits

loading loadmore.php in browser, this works exactly how I expect it to, with only showing the threadbits of each thread, un-styled due to not being rendered with the head or any other templates. That's ok though because once they are loaded where they are supposed to be, they should be styled.

The problem comes when I hit my button.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Which is placed directly below $threadbits in the forumdisplay template. I am recieving an error.
If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.]]>
I have tried striping as much as I could out of the loadmore.php file but I am not getting anywhere with the error.

Can anyone assist me with getting this to function properly?
__________________
If you need custom work done please use Dirt RIF CustUmz
Owner of vBTeam
vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11.
Reply With Quote