luca90
Total posts: 65
29 Apr 2015 20:32

Hi,

i want to delete pages of user block page such us user/watched and user/rated etc becouse i don't use it.

How can do this?

Last Modified: 14 May 2015

Tags Developer


pepperstreet VIP
Total posts: 3,837
29 Apr 2015 22:58

Hello luca90,

are you talking of User's homepage -> User menu Tabs ?

All related parameters can be found in Markup Layout template:

Your Section -> General Parameters tab -> Templates -> Markup layout (click button "default")

In modal dialog go to:

Section Menu tab -> User menu (scroll down, see on lower left side)

Set NO/YES to hide/show each user menu tab.


cob_sec_markup_layout_user_menu_tabs


luca90
Total posts: 65
30 Apr 2015 07:32

Hi,

thanks. but the page is always visible. i want disabled it (error 404 or similar) to delete it on google search.

How can disable the page?


pepperstreet VIP
Total posts: 3,837
30 Apr 2015 10:09

luca90 thanks. but the page is always visible. i want disabled it (error 404 or similar) to delete it on google search.

Only remove it from Search engines?

You might create a J! MenuItem of type User's homepage, and set the metadata info for "robots": noindex, nofollow
If URLs are already indexed, you can remove them through Google webmaster account.

cob_sec_users_homepage_menuitem_metadata


Or do you want to retrict access for public users/visiters, too?


luca90
Total posts: 65
30 Apr 2015 11:50

Hi,

no, i want a white page on user/expired (for example) if a have disabled this on cobalt setting.


Sergey
Total posts: 13,748
30 Apr 2015 13:03

If you desable there is expired link at all. User cannot even find a link to that page. Please test as a simple registered user. Admin might see something that is switch off in parameters.


pepperstreet VIP
Total posts: 3,837
30 Apr 2015 19:46

luca90 no, i want a white page on user/expired (for example) if a have disabled this on cobalt setting.

Sorry, lost in translation. Don't get your goal and idea.
Can you explain in other words, please?


luca90
Total posts: 65
30 Apr 2015 20:37

Hi,

excuse me.

I have saved the expired records page of user. I have disabled the expired records page link. A user doesn't view the link of expired page but i have saved the link of this and i can access on this page.

I want disable this page also if i have a saved link.

I hope that i have explained the problem.

Thanks


pepperstreet VIP
Total posts: 3,837
30 Apr 2015 23:28

I see. You have removed the "expired" user menu tab,
and you can still access that URL directly, by pasting it in browser bar, right?

I have tested a similar setup and additionally restricted access to view expired records on section list.

Confirmed:
I have tested as guest visiter. If I paste in a URL to a user's homepage with view_what=expired ...
I can view all expired records of that user.

Obviously a general issue with the user's homepage access...

@Sergey ?


Further tests with different User's homepage options! Who can view... set to Only Followers.

As guest visiter and pasting direct URLs, I can see all created records
(except for expired, due to my Section property parameter).

Shouldn't we have a separate Access restriction parameter for User's homepage? Either for Personalization mode or in any case?!?


Sergey
Total posts: 13,748
01 May 2015 03:30

Нуыб right now it only hides tab not manage access.


luca90
Total posts: 65
04 May 2015 10:31

Hi,

if in Cobalt there isn't this option, how can i do this with htaccess or header php?


Sergey
Total posts: 13,748
06 May 2015 09:32

You can create small system plugin onAfterRoute event. The condition is somethign like this.

$app = JFactory::getApplication();
if($app->input->get('section_id') == 2 && $app->input->get('view_what') == 'expired')
{
   $app->redirect(' http://mysitehome.com/ ');
}

luca90
Total posts: 65
13 May 2015 09:00

Hi works,

how can i determinate the url of section?

i want to redict to records of a section.


Sergey
Total posts: 13,748
14 May 2015 13:52
$app->redirect(JRoute::_(Url::records(2)));
Powered by Cobalt