Kunena 6.3.0 released
The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3
Question [SOLVED] How to add security to the Birthdate for guests?
Cordel wrote:
In this case it makes no sense to modify the file ../administrator/components/com_kunena/libraries/user.php but, rather, you should modify the files that display these details. This would be ../components/com_kunena/template/view/profile.horizontal.php and ../components/com_kunena/template/view/profile.vertical.php. That gives you a place to start looking.In Kunena, when a user fills out his birthdate, it shows on the summary profile next to, or on top of his post depending on your configuration. I need this to not show for guest users.
You need to add a test to line that reads
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
But I really need this to be in the backend, otherwise I'd have to many themes to modify which is why I'm looking at administrator/components/com_kunena/libraries/user.php as it would carry through all themes.
Allot of these folks downed themes and modified them so would be allot of work.... though maybe I can get payed good
Please Log in or Create an account to join the conversation.
It calls to the file that I listed that produces that Link.. already ahead of you. Thats why I listed it.
Smart enough to find it but ignorant enough that I can't figure out how to deal with it. :pinch:
Ideally it would be nice to pull from the option in Kunena config in the admin panel under the security tab "Allow Guests to see User Profiles" but any hack at this point would suffice. So I might just go ahead and start editing themes. I just thought if I was going to try, try to do it right and give it back.
Please Log in or Create an account to join the conversation.
!KunenaFactory::getUser()->exists()
or
!JoomlaFactory::getUser()->id
I hope that helps.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
If you talk about self-made enhancement of Kunena backend - it's all the same only hack solution. Suppose it is good point for us to make feature request for next releases...Cordel wrote: But I really need this to be in the backend
Altai Mountains - is a fairy tale!
Please Log in or Create an account to join the conversation.
Thank you sozzled. So I'll add this query into the function to create or not create the icons into the themes. Thats almost perfect! Then I'll query the database to check for the option of whether or not the config shows profiles to guests is true or not and put it together to make it appropriate!
As far a feature requests go, it would be to add this so that if option not to show profile to guests is true, then creation of birthdate Icon should be suppressed. And add to it the option to strip the Year off birthdays would be nice in the admin panel.
I'll see if I can figure a good way to word it and put in a feature request. I'll post the patch here of what I have done soon as I have it working on the test server.
Sozzled, is there an API listing somewhere I missed in the Kunena Wiki? How did you manage to find the Kunena function if I may ask so I don't have to ask on the forum dumb questions.
Cheers!
Please Log in or Create an account to join the conversation.
I asked the developers.Cordel wrote: How did you manage to find the Kunena function if I may ask ...
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
migus wrote: Hi Cordel,
I have a custom solution for this issue in:
...home.../components/com_kunena/template/default(or yours)/view/profile.vertical.php
simply use if ( $this->my->id ) statement:Good luckCode:<li class="kpost-smallicons"> <?php echo $this->profile->profileIcon('website'); ?> <?php echo $this->profile->profileIcon('gender'); ?> <?php if ( $this->my->id ) : ?> <?php echo $this->profile->profileIcon('birthdate'); ?> <?php echo $this->profile->profileIcon('location'); ?> <?php echo $this->profile->profileIcon('private'); ?> <?php echo $this->profile->profileIcon('email'); ?> <?php endif ?> </li>
It is a good fix on the issue in the time being hopefully in the future it will become a feature were you can choose the privacy status of your birthdate.
Please Log in or Create an account to join the conversation.
Here is what I came up with:
administrator/components/com_kunena/libraries/user.php
I also added the same code to social Icons in case someone wants to make a custom template to include these on the summery profile beside or on top of posts in the attached file.
Thank you all and maybe this helps someone
Please Log in or Create an account to join the conversation.