MyBB Community Forums
[How To?] Showing Posts on Profile without Plugins - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Showing Posts on Profile without Plugins (/thread-234069.html)



Showing Posts on Profile without Plugins - Waleed B. - 2021-10-21

Any way to pull users posts and show on profile without the use of plugins?

I wanted to do a jquery that'll pull the users posts from the search page but since the search page is a redirect and doesn't include the user's UID in the url this script wont work. Any other solutions?


<div id="posts-on-profile"></div>
<script>
$( "#posts-on-profile" ).load( "search.php?action=finduser&uid={$memprofile['uid']} #tborder" );
</script>


Once redirected to the posts/search result page this is how the url appearsĀ search.php?action=results&sid=842525eaa9ac4f8a37c253d64c14521b. So the code above definitely won't work.


RE: Showing Posts on Profile without Plugins - Taylor M - 2021-10-25

You're going to need a plugin for this.