Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Lenny Warren Posted February 9, 2016 Posted February 9, 2016 I'm a bit confused... (doesn't take much) My forum is in /forums and I've placed the home.php script in my root directory, /httpdocs I'm presuming I rename home.php to index.php and the file looks like this... <?php /** * @package Portal * @author <a href='http://www.devfuse.com'>DevFuse</a> * @copyright (c) 2015 DevFuse */ $_SERVER['SCRIPT_FILENAME'] = __FILE__; /** * Path to your IP.Board directory with a trailing / */ $path = './httpdocs/forums/'; $_GET['app'] = 'portal'; $_GET['module'] = 'portal'; $_GET['controller'] = 'portal'; require_once $path . 'init.php'; \IPS\Dispatcher\Front::i()->run(); Or should the path look like: $path = 'http://www.militariacollectors.network/forums/'; Neither seem to wor, tearing my hair out here...
Lenny Warren Posted February 9, 2016 Posted February 9, 2016 I seemed to have managed to get it to work, used $path = './httpdocs/forums/'; and it seemed to work. Occasionally it doesn't though, and seems to load the index.html page instead of the index.php. Would there be any reason for that?
Michael.J Posted February 10, 2016 Author Posted February 10, 2016 On 9/2/2016 at 0:09 PM, Lenny Warren said: and it seemed to work. Occasionally it doesn't though, and seems to load the index.html page instead of the index.php. Is there a reason to keep the index.html file still though? The index.php will just show the Portal all the time.
Lenny Warren Posted February 10, 2016 Posted February 10, 2016 30 minutes ago, Mike John said: Is there a reason to keep the index.html file still though? The index.php will just show the Portal all the time. Not really, but I noticed it was showing my server default page, which made me wonder why that was happening. All seems fine now, so happy. Thanks again @Mike John
B_U_R_I Posted February 10, 2016 Posted February 10, 2016 Does Portal work with 4.1.8.1 now or do you need to do this workaround?
Michael.J Posted February 10, 2016 Author Posted February 10, 2016 2 hours ago, B_U_R_I said: Does Portal work with 4.1.8.1 now or do you need to do this workaround? Yes works, just tested myself while working on something else. B_U_R_I 1
Tribalize Posted February 29, 2016 Posted February 29, 2016 thanks for the portal update. Have 3 boards up with this and no problems.
karld Posted March 1, 2016 Posted March 1, 2016 Hi I have created a new portal block for an advertisement on the left blocks, so created a custom advertisement with key {advertisement="block_side"} I put this in the block and all that's coming up is {advertisement="block_side"} no image or link, any ideas where i'm going wrong please?
Michael.J Posted March 3, 2016 Author Posted March 3, 2016 On 1/3/2016 at 8:14 AM, karld said: Hi I have created a new portal block for an advertisement on the left blocks, so created a custom advertisement with key {advertisement="block_side"} I put this in the block and all that's coming up is {advertisement="block_side"} no image or link, any ideas where i'm going wrong please? Advertisement code like that would need to be included within the Portal template bit itself. What position were you looking to add the ad?
Koby Posted March 3, 2016 Posted March 3, 2016 The portal still pulls and showcases threads that have been hidden.
karld Posted March 3, 2016 Posted March 3, 2016 (edited) 18 hours ago, Mike John said: Advertisement code like that would need to be included within the Portal template bit itself. What position were you looking to add the ad? Hi I wanted to put it in the left panel but not in the default advertisements areas. Prior to upgrading to ipb 4 I used to use the hook custom blocks which you could pull this kind of content or add html etc. Edited March 3, 2016 by karld
Michael.J Posted March 4, 2016 Author Posted March 4, 2016 9 hours ago, karld said: Hi I wanted to put it in the left panel but not in the default advertisements areas. Prior to upgrading to ipb 4 I used to use the hook custom blocks which you could pull this kind of content or add html etc. I haven't had a chance to test this yet but you could setup a php portal block and try something like this. <?php $advertisement = \IPS\core\Advertisement::loadByLocation( 'block_side' ); print $advertisement; ?>
Koby Posted March 6, 2016 Posted March 6, 2016 On 3/3/2016 at 7:33 PM, Koby said: The portal still pulls and showcases threads that have been hidden. Did you miss seeing this post?
Michael.J Posted March 9, 2016 Author Posted March 9, 2016 On 6/3/2016 at 7:51 AM, Koby said: Did you miss seeing this post? You sure it's just not showing you the topic? Just hid a post and logged out and it seems to be hiding the hidden topics.
Koby Posted March 9, 2016 Posted March 9, 2016 2 hours ago, Mike John said: You sure it's just not showing you the topic? Just hid a post and logged out and it seems to be hiding the hidden topics. So the portal is showing me hidden topics because I have the ability to see hidden topics? If that's the case; is there some way to make it not pull them period? Especially since there is no indication it's a hidden topic in the portal.
Michael.J Posted March 10, 2016 Author Posted March 10, 2016 20 hours ago, Koby said: So the portal is showing me hidden topics because I have the ability to see hidden topics? If that's the case; is there some way to make it not pull them period? Especially since there is no indication it's a hidden topic in the portal. Try this. Open applications/portal/modules/front/portal/portal.php Find: $table = new \IPS\Helpers\Table\Content( 'IPS\forums\Topic', \IPS\Http\Url::internal( 'app=portal&module=portal&controller=portal', 'public', 'portal' ), $where, NULL, NULL, 'read' ); Replace With: $table = new \IPS\Helpers\Table\Content( 'IPS\forums\Topic', \IPS\Http\Url::internal( 'app=portal&module=portal&controller=portal', 'public', 'portal' ), $where, NULL, FALSE, 'read' ); Save. Just let me know if it works and will confirm for next version.
Koby Posted March 10, 2016 Posted March 10, 2016 1 hour ago, Mike John said: Try this. Open applications/portal/modules/front/portal/portal.php Find: $table = new \IPS\Helpers\Table\Content( 'IPS\forums\Topic', \IPS\Http\Url::internal( 'app=portal&module=portal&controller=portal', 'public', 'portal' ), $where, NULL, NULL, 'read' ); Replace With: $table = new \IPS\Helpers\Table\Content( 'IPS\forums\Topic', \IPS\Http\Url::internal( 'app=portal&module=portal&controller=portal', 'public', 'portal' ), $where, NULL, FALSE, 'read' ); Save. Just let me know if it works and will confirm for next version. Works! Thanks Mike.
CP Posted March 10, 2016 Posted March 10, 2016 On November 25, 2015 at 9:33 AM, CP said: I have always been a portal type of person. I always had to have a portal. Currently, I am using Mike's portal but have thought about creating my own with Pages because I can do more with it. If there was a portal that could do more and have all the features that ehku suggested with the ability to add up to three columns it would be something I would purchase. But I would want to add these columns anywhere I want. For example, if I could add one column on the top, three columns below that, two below that and so on. It seems I have not received any replies from Mike on this. But everything I said remains the same. Kinda like the Unreal Portal released years ago. That is what I would like to see.
Michael.J Posted March 10, 2016 Author Posted March 10, 2016 18 hours ago, Koby said: Works! Thanks Mike. Thanks, noted for next version. 16 hours ago, CP said: It seems I have not received any replies from Mike on this. But everything I said remains the same. Kinda like the Unreal Portal released years ago. That is what I would like to see. Support for 3 columns is my goal but when I get there is uncertain. This was one of the first if not the first IP.Board 4 application to be upgraded and I've updated it continuously to ensure stability. But right now my focus is still on bug fixing on all my mods before I look to new major features. CP 1
hyprem Posted March 31, 2016 Posted March 31, 2016 (edited) On 22. April 2015 at 6:09 AM, Mike John said: Go to ACP > System Tab > Applications and click the "Set as default app" icon to change which app loads as index. I just did that now I got a blank white page. Not sure why. I have the latest IPB and latest Portal. My Forum is set as offline currently but didnt changed after I changed the settings.... edit: seems resolved I just reinstalled the portal and now it works.... Edited March 31, 2016 by mexopix
Tribalize Posted April 8, 2016 Posted April 8, 2016 I have this portal installed on 3 sites. After the 4.1.10 upgrade on 1 site. got an error with the portal. so i uninstalled then reinstalled it. Still getting the same error. Only happens on one of the sites the other 2 are fine. Any suggestion Please? Errors OutOfRangeException: (0) #0 /public_html/applications/forums/sources/Topic/Topic.php(1763): IPS\Patterns\_ActiveRecord::load(0) #1 /public_html/system/Theme/Theme.php(694) : eval()'d code(296): IPS\forums\_Topic->content() #2 [internal function]: IPS\Theme\class_portal_front_browse->topicRow(Object(IPS\Helpers\Table\Content), Array, Array) #3 /public_html/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #4 /public_html/system/Theme/Theme.php(694) : eval()'d code(45): IPS\Theme\_SandboxedTemplate->__call('topicRow', Array) #5 [internal function]: IPS\Theme\class_portal_front_browse->forumTable(Object(IPS\Helpers\Table\Content), Array, Array, NULL, false) #6 /public_html/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #7 [internal function]: IPS\Theme\_SandboxedTemplate->__call('forumTable', Array) #8 /public_html/system/Helpers/Table/Table.php(472): call_user_func(Array, Object(IPS\Helpers\Table\Content), Array, Array, NULL, false) #9 /public_html/applications/portal/modules/front/portal/portal.php(79): IPS\Helpers\Table\_Table->__toString() #10 /public_html/system/Dispatcher/Controller.php(94): IPS\portal\modules\front\portal\_portal->manage() #11 /public_html/applications/portal/modules/front/portal/portal.php(29): IPS\Dispatcher\_Controller->execute() #12 /public_html/system/Dispatcher/Dispatcher.php(129): IPS\portal\modules\front\portal\_portal->execute() #13 /public_html/index.php(13): IPS\_Dispatcher->run() #14 {main}
Michael.J Posted April 10, 2016 Author Posted April 10, 2016 On 08/04/2016 at 3:07 AM, Tribalize said: I have this portal installed on 3 sites. After the 4.1.10 upgrade on 1 site. got an error with the portal. so i uninstalled then reinstalled it. Still getting the same error. Only happens on one of the sites the other 2 are fine. Any suggestion Please? I can't reproduce this but it seems IPB 4.1.10 did make a change in relation to how the topic post was loaded. I'm going to need board and ftp access to troubleshoot this further but I believe this may be an issue with IPB 4 itself.
Recommended Posts