Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 282
Total: 283

Author Topic: Permissions in Profile, not working...  (Read 2667 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Permissions in Profile, not working...
« on: December 10, 2014, 08:12:28 pm »
Hello, I tried to add this PHP argument inside the function template_showPosts() in profile.template.php.

The argument looks like this:

Code: [Select]
if($post['topicsolved'] == 1 && !allowedTo('topic_solved_see') && $context['user']['id'] != $post['owner_id'])
This part !allowedTo('topic_solved_see') isn't registering like it does in topic view. What am I doing wrong here?

I know for a fact that $post['topicsolved'] == 1  and $context['user']['id'] != $post['owner_id'] are correct.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
Re: Permissions in Profile, not working...
« Reply #1 on: December 10, 2014, 10:20:55 pm »
Figured it out.

I had it under as a board permission.

Solved.

 

Related Topics

  Subject / Started by Replies Last post
22 Replies
29180 Views
Last post November 22, 2011, 02:54:39 pm
by Vincent Volmer
1 Replies
4828 Views
Last post December 17, 2007, 02:23:42 am
by RWL
7 Replies
8702 Views
Last post March 03, 2008, 01:41:12 am
by thehawk
3 Replies
5225 Views
Last post April 23, 2008, 09:51:55 am
by $ilver
3 Replies
4473 Views
Last post March 09, 2009, 08:34:55 pm
by Riley

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal