Post image for Registered Users Submit a Weblink

Registered Users Submit a Weblink

by Elaine on May 29, 2010

If you setup your site that only Registered users can submit a weblink you will an encounter error.  Once a user logs in and clicks on that menu item to submit a weblink they will get an error that says:

” You are not authorised to view this resource.”

Problem: I’ve tried 2 different scenarios and still get the same error:

  1. Created a menu weblink item and only viewable by Registered users
  2. Changed the Menu weblink item to be viewable by Public, changed the weblink menu module to be registered only.

Solution:

  1. In the backend find the file: /Components/com_weblinks/views/weblink/view.html.php
  2. Find the line: if ($user->get(‘gid’) < 19)
  3. Replace it with: if ($user->get(‘gid’) < 18)

Refresh your page and log in as a registered user.  You will be able to see the submit weblink menu item and a form to submit a weblink.

joomla submit weblink 300x170 Registered Users Submit a Weblink

 Registered Users Submit a Weblink

Elaine

Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

{ 2 comments… read them below or add one }

Jason April 30, 2011 at 5:29 pm

Thanks for sharing your views.

Reply

Kalpana May 8, 2012 at 11:40 am

Registered users want to submit file and need to view the list of submitted files under My account, how to achieve this?

Thanks & Regards
Kalpana S

Reply

Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: