New #tab after poll.

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

New #tab after poll.

Postby andreask » 08 May 2011, 09:00


User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: New #tab after poll.

Postby tumba25 » 08 May 2011, 09:28


andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 09 May 2011, 11:25

@tumba25 Ok i did it thanks!

Now im trying to make the permisions for my mod...

So i added f_prod_rev in phpbb_acl_options with 1,0,0
command line


i have read here http://wiki.phpbb.com/Tutorial.Permissions lots of times.
But i must be an idiot cause i cant make it work! :(

Could someone explain to me how to create permisions?
I want it to be like 'polls'.

I'm sorry for the trouble!

andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 12 May 2011, 08:56


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby RMcGirr83 » 12 May 2011, 10:25

Are you making a forum permission (f) a user permission (u) or a moderator permission (m)?

andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 12 May 2011, 11:29

forum permission.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby RMcGirr83 » 12 May 2011, 11:50

forum permissions are usually for things like can read a forum ('f_read') you seem to be wanting to make a user/group permission to be able to display your product panel to a user as it does not matter what forum the user is in?

andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 12 May 2011, 11:58

Hmmm, you'r probably right!

What i want to do is, to be able to allow or disallow users/groups to post product reviews.

I only set it to f_ because i took as example 'polls'.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby RMcGirr83 » 12 May 2011, 12:06

f_ allows polls to display within certain forums, u_ allows users/groups to respond to those polls that are allowed within forums. I think you want a u instead of a f or a combination of the two similar to how it is for attachments and polls. ;)

andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 12 May 2011, 12:39

So what do i have to do to appear a tab with this permissions:?:

Lets say, first on forum permisions.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby RMcGirr83 » 12 May 2011, 13:26

Attachments
Noname.png

andreask
New member
New member
Posts: 13
Joined: 05 May 2011, 19:00
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby andreask » 12 May 2011, 14:18


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: New #tab after poll.

Postby RMcGirr83 » 12 May 2011, 14:46

You need a module php file and html file to be able to add your own tabs/categories.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 2 guests