arrow_back Back to Tickets

Ticket #340f41

completed

Problem

allow users to view category without login. * Browse directory (read-only) Require login for: * Messaging * Posting * Contact info Don’t block exploration.

Priority

1

Project Name

zfrika

Previous Steps

what is preventing the viewing of profile.? find this In code and disable it. 0|zfrika_dev | 2026-03-05T11:22:57: user is not logged in. take them to login page but first tell them why1 0|zfrika_dev | 2026-03-05T11:22:57: GET /zfrikadev/notloggedin 200 16.419 ms - 4578 whis calling calling route '/notloggedin', f public/scripts/index_home.js:42: window.location.href="notloggedin"; routes/signupRoutes.js:207:router.get(BASE_URL+'/notloggedin',(req,res) => { public/sctipt. function : checklogin(category) checks if there is a datatoken, and username. if there is we show them the page. if not, we redirect to notlogged in. who calls checklogin(? each category checks when the user click the button to access the category. <li><a onclick="return checklogin('accountant');" class="category-link hover:underline block py-1" href="<%= BASE_URL_PATH %>/accountant?country=<%= country %>">Accountant</a></li> disabled feature the reply feature unless they are logged in. when user goes to view details, check if they are logged in, if they are not logged , they can not reply tot the post. when user presses the reply button. if they are not logged in redirect them to login so they can reply tot the post. "results_details.ejs" user select reply button and this function is triggered. onclick="toggleModal()" check if the user is logged in (datatoken and username) if they are then show them message modal. if not, then ask them to login.

Ticket Information

Ticket ID: 69a92a23d50c22b7dc340f41
Date Initiated: 3/5/2026, 2:21:00 PM
Date Resolved: 3/5/2026, 3:43:00 PM
Status: completed
Created: 3/4/2026, 11:00:51 PM
Last Updated: 3/5/2026, 3:43:23 PM