Hide sticky for only logged in user
« on: December 09, 2019, 11:04:55 AM »
Hello,
Please in which folder do i find the sticky in the image below and what line is it codes. I want display it to logged in users only.
« Last Edit: December 09, 2019, 11:12:13 AM by Metalsunny Reloaded »

Marked as best answer by frosticek on December 20, 2019, 10:37:09 AM
*

Jesus

  • ***
  • 38 posts
Re: Hide sticky for only logged in user
« Reply #1 on: December 09, 2019, 02:52:08 PM »
Hello,
Please in which folder do i find the sticky in the image below and what line is it codes. I want display it to logged in users only.

<?php if(osc_is_web_user_logged_in()) { ?>

"code here"

<?php } ?>

try that, if I'm not mistaken in footer.php

Re: Hide sticky for only logged in user
« Reply #2 on: December 09, 2019, 05:09:06 PM »
Its not located in footer.php
I found it in item.php line 466 and applied the code you gave to me and it worked like charm. Problem solved