Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
NeedlessDM Posted June 30, 2018 Posted June 30, 2018 Hello, I want to create forums directly from a Laravel page (Laravel 5.6) and I'm getting redirected to forum's 404 page (Sorry, we couldn't find that!). If i'm using this code bellow in a simple php file is working, if I'm using it from a Laravel Model it redirects me to the forum saying that the page is not found. My test code from Forum model is: <?php namespace App; use Illuminate\Database\Eloquent\Model; require_once ('/../../forum/initdata.php'); require_once ('/../../forum/admin/sources/base/ipsRegistry.php'); class Forum extends Model { public static function test_forum () { $reg = \ipsRegistry::instance(); $reg->init(); $member = \IPSMember::load( 1 ); return $member; } } Is there a way to solve this?
NeedlessDM Posted June 30, 2018 Author Posted June 30, 2018 Yes, my users doesn't like IPB 4... I've solved using custom ipsconnect functions.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.