Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
Rimi Posted February 1, 2012 Posted February 1, 2012 My specific example is that I don't want "Pages" to show up in the VNC.
Brett L Posted February 1, 2012 Posted February 1, 2012 Open the newContentView template and remove the following<foreach loop="apps:$this->registry->getApplications() as $app"> <if test="appIsSearchable:|:(IPSLib::appIsSearchable( $app['app_directory'], 'vnc' ) || IPSLib::appIsSearchable( $app['app_directory'], 'active' ) ) AND !in_array( $app['app_directory'], array('core','forums','members') )"> <li <if test="appIsSearched:|:$this->request['search_app'] == $app['app_directory']">class='active'</if>> <a href='{parse url="app=core&module=search&do=viewNewContent&search_app={$app['app_directory']}&sid={$this->request['_sid']}&search_app_filters[{$this->request['search_app']}][searchInKey]={$this->request[ $this->request['search_app_filters'][$this->request['search_app']]['searchInKey'] ]}&period={$this->request['period']}&userMode={$this->request['userMode']}&followedItemsOnly={$this->request['followedItemsOnly']}" base="public"}'> {IPSLib::getAppTitle( $app['app_directory'] )} </a> </li> </if> </foreach>
Rimi Posted February 1, 2012 Author Posted February 1, 2012 Hello. I'm well aware of that and I consider it to be a silly and ineffective solution. Ignoring the fact that I would still like to have Galley show in the VNC your template edit would also require the VNC link to default to the forum app regardless of which app it is clicked in.
Michael Posted February 1, 2012 Posted February 1, 2012 You can stop certain applications from being shown in the VNC page pretty easily, but it does require a single file edit. In the application's /extensions/search/config.php file, you can set the $CONFIG['can_viewNewContent'] value to 0.
Rimi Posted February 1, 2012 Author Posted February 1, 2012 You can stop certain applications from being shown in the VNC page pretty easily, but it does require a single file edit. In the application's /extensions/search/config.php file, you can set the $CONFIG['can_viewNewContent'] value to 0.Hello. I am on IPS hosting so I cannot perform file edits hence the suggestion.
Brett L Posted February 1, 2012 Posted February 1, 2012 Hello. I'm well aware of that and I consider it to be a silly and ineffective solution. Ignoring the fact that I would still like to have Galley show in the VNC your template edit would also require the VNC link to default to the forum app regardless of which app it is clicked in. Hello. I am on IPS hosting so I cannot perform file edits hence the suggestion. If you don't have access to your file system what you describe can still be done via the templates it's just a slightly buggier/less efficent hack. In the foreach loop just ad an if statement to only show the link if it is gallery. In your global template find the VNC link and put an if-statement essentially saying if you are on this app make the link go here (remove the 'app=' part as it will default to forums); Else make it go to the default spot.
Rimi Posted February 1, 2012 Author Posted February 1, 2012 Hello. I know how to edit templates. I was just making a suggestion that would simplify things. If you want to block a forum from the VNC you can do that in the ACP. You could also skin it, but clearly the former is much easier. Is it so wrong to make a suggestion?
Michael Posted February 2, 2012 Posted February 2, 2012 It's not wrong to make a suggestion, we're just trying to give you ways to accomplish what you want if your suggestion doesn't get immediately implemented.
Rimi Posted February 2, 2012 Author Posted February 2, 2012 Ok well thank you for that but I already know of those techniques. I just think the software will be better this way.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.