By Michael Bevia on Thursday, 31 December 2015
Posted in General
Likes 0
Views 540
Votes 0
Hello,

I am trying to show a link only to profile type id 1 users in the default.php for the frosty/toolbar

I am trying this but it gives me error on the page

<?php if($user->profile_id == '1):?>

<li>link</li>

<?php endif;?>
You cannot use the exact codes that I posted above anywhere If you are adding this into the toolbar, you need to use the following codes,



P/S: You cannot copy the codes above blindly as you need to change the 1 with the appropriate profile id.
·
Friday, 01 January 2016 18:14
·
0 Likes
·
0 Votes
·
0 Comments
·
There is a syntax error with your code Try this instead

·
Thursday, 31 December 2015 12:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark, I tried this:

<?php if ($user->profile_id == 1) { ?>
<li>LINK</li>
<?php } ?>

But its not working. This is important because I need to hide things from the profile for users not to submit jreviews listings. I want to add a link to artists to submit listings only.

I am doing this on themes/frosty/toolbar/default.php
·
Thursday, 31 December 2015 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark! Works perfect. I am starting to learn things thanks to the wonderful support.
·
Friday, 01 January 2016 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Michael
·
Friday, 01 January 2016 23:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post