- Posts: 214
COMMUNITY FORUM
[SOLVED] retrieve the counter of k2 items, k2 users
- George Nasis
- Topic Author
- Offline
- Elite Member
Less
More
10 years 2 months ago #129990
by George Nasis
[SOLVED] retrieve the counter of k2 items, k2 users was created by George Nasis
hallo there!
i would like to know if there is any module to display the total number of k2 items, k2 authors and k2 comments. or if it is not possble can i take that number from the database to create a custom html module??
thank you very much
i would like to know if there is any module to display the total number of k2 items, k2 authors and k2 comments. or if it is not possble can i take that number from the database to create a custom html module??
thank you very much
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #129991
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: retrieve the counter of k2 items, k2 users
Sadly no. You should create a custom module.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George Nasis
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 214
10 years 2 months ago #129992
by George Nasis
Replied by George Nasis on topic Re: retrieve the counter of k2 items, k2 users
thanx for the response Krikor!
yes i could not find so i made one. ;)
here is the code
yes i could not find so i made one. ;)
here is the code
Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #129993
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: retrieve the counter of k2 items, k2 users
Hello George,
I think you should use a module for this, not custom code, or at least use a high value for caching.
I think you should use a module for this, not custom code, or at least use a high value for caching.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George Nasis
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 214
10 years 2 months ago #129994
by George Nasis
Replied by George Nasis on topic Re: retrieve the counter of k2 items, k2 users
hallo krikor,
as you said i don`t know any module to do this job. a use a module called "flexi custom code" with which you can write your code.
what do you mean by using a high value for caching?can you explain me what should i add in the code?
thank you
as you said i don`t know any module to do this job. a use a module called "flexi custom code" with which you can write your code.
what do you mean by using a high value for caching?can you explain me what should i add in the code?
thank you
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 2 months ago #129995
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: retrieve the counter of k2 items, k2 users
No need to add anything in your code.
In your global configuration enable caching and use a value like 15 - 20 mins.
In your global configuration enable caching and use a value like 15 - 20 mins.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George Nasis
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 214
10 years 2 months ago #129996
by George Nasis
Replied by George Nasis on topic Re: retrieve the counter of k2 items, k2 users
oh that you mean.
yes of course
thank you a lot
yes of course
thank you a lot
Please Log in or Create an account to join the conversation.
- laweffect
- Offline
- Junior Member
Less
More
- Posts: 23
10 years 2 months ago #129997
by laweffect
Replied by laweffect on topic Re: retrieve the counter of k2 items, k2 users
Don't forget that the K2 tools module allows you to add custom code, including PHP.
Please Log in or Create an account to join the conversation.
- Giovanni Ciavarelli
- Offline
- New Member
Less
More
- Posts: 9
9 years 5 months ago #143167
by Giovanni Ciavarelli
Replied by Giovanni Ciavarelli on topic [SOLVED] retrieve the counter of k2 items, k2 users
Hello!
Sorry .. I am not able to do this! I installed flexy and Copy/Pasted the code but on the frontend it's showing the code ... not the result! :-(
Sorry .. I am not able to do this! I installed flexy and Copy/Pasted the code but on the frontend it's showing the code ... not the result! :-(
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 5 months ago #143179
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic [SOLVED] retrieve the counter of k2 items, k2 users
Try using the K2 Tools module and enable the PHP related setting.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.