Skip to Content Skip to Menu

ListTab "Table Mod"

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 7 months ago #33056 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
when i want a fourth choice, that only members with the access status: "Premium" are able to see a tab.
Which query i had to write in the plugin?

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #33057 by mikko
Replied by mikko on topic Re:ListTab "Table Mod"
You can check tab ids from
-your database
-your HTML source
-by trial and error

I changed the plugin to use tab names instead of ids.

For the custom query, any query which returns 1 or nothing.
The format is:
[code:1]
select 1 from {some tables} where {the condition to be filled if the user is premium} limit 1
[/code:1]

-mikko

Please Log in or Create an account to join the conversation.

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 7 months ago #33058 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
have you uploaded the new (with tab name) policy plugin on you server?

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #33059 by mikko
Replied by mikko on topic Re:ListTab "Table Mod"
Yes.

mikko

Please Log in or Create an account to join the conversation.

  • dennisth19
  • dennisth19
  • OFFLINE
  • Posts: 52
  • Thanks: 0
  • Karma: -1
17 years 7 months ago #33061 by dennisth19
Replied by dennisth19 on topic Re:ListTab "Table Mod"
on your server is the policy file with the time 11:54
but you changed it by a few minutes?:silly:

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #33062 by mikko
Replied by mikko on topic Re:ListTab "Table Mod"
It is updated automatically if I touch the files on the server -> always the most recent version.

mikko

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum