Jump to content

Allow Apps To Be Blocked In VNC


Rimi

Recommended Posts

Posted

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&amp;module=search&amp;do=viewNewContent&amp;search_app={$app['app_directory']}&amp;sid={$this->request['_sid']}&amp;search_app_filters[{$this->request['search_app']}][searchInKey]={$this->request[ $this->request['search_app_filters'][$this->request['search_app']]['searchInKey'] ]}&amp;period={$this->request['period']}&amp;userMode={$this->request['userMode']}&amp;followedItemsOnly={$this->request['followedItemsOnly']}" base="public"}'>

{IPSLib::getAppTitle( $app['app_directory'] )}

</a>

</li>

</if>

</foreach>

Posted

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.

Posted

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.

Posted

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.
Posted

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.
Posted

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?

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...