Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #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
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Board Optimization Deny Unregistered Users When Load Is High - Load Deny (*Nix) Jafo232 vBulletin 3.6 Add-ons 46 30 Dec 2009 21:34


Tags
error, loadmore


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:42.

Layout Options | Width: Wide Color: