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

This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 2.0, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.

Solved Editing Profile Information Options

More
11 years 8 months ago - 11 years 8 months ago #1 by KiSUAN
I want to edit the fields, options for profile information, and icons for profile display and so on. I have no PHP, CSS, Joomla or whatever skills, education or knowledge you can say. But I have will and a brain also, or I would like to think so.

So far I´ve identified the files responsible for the fields, options and more, or I think so. And I been trying to add the field for Google+ (or Plus as is "coded") while deleting the one from YIM. But when I test the new field, it doesn't work, the information isn´t saved. So I suspect there is something wrong in what I´ve done (the "coding") or I'm missing something (some other coding I suspect), but as much as I search, think and try I can´t get pass it.

So anyone can help me?, all I need is to be pointed in the right direction, what file, code or whatever I'm missing, were I've go wrong? Or I'm trying to do something impossible and I don´t realize it as I don't know squat?

Thanks in advance to any kind soul...


Relevant Edited Files

\components\com_kunena\controllers\user.php

Line 166 to 197
Code:
} if (! empty ( $DelProfileInfo )) { $user->personalText = ''; $user->birthdate = '0000-00-00'; $user->location = ''; $user->gender = 0; $user->icq = ''; $user->aim = ''; $user->plus = ''; $user->msn = ''; $user->skype = ''; $user->gtalk = ''; $user->twitter = ''; $user->facebook = ''; $user->myspace = ''; $user->linkedin = ''; $user->delicious = ''; $user->friendfeed = ''; $user->digg = ''; $user->blogspot = ''; $user->flickr = ''; $user->bebo = ''; $user->websitename = ''; $user->websiteurl = ''; $user->signature = ''; $user->save(); $this->app->enqueueMessage ( JText::_('COM_KUNENA_MODERATE_DELETED_BAD_PROFILEINFO') ); } elseif (! empty ( $DelSignature )) { $user->signature = ''; $user->save(); $this->app->enqueueMessage ( JText::_('COM_KUNENA_MODERATE_DELETED_BAD_SIGNATURE') ); }

Line 367 to 391
Code:
protected function saveProfile() { $this->me->personalText = JRequest::getVar ( 'personaltext', '' ); $this->me->birthdate = JRequest::getInt ( 'birthdate1', '0000' ).'-'.JRequest::getInt ( 'birthdate2', '00' ).'-'.JRequest::getInt ( 'birthdate3', '00' ); $this->me->location = trim(JRequest::getVar ( 'location', '' )); $this->me->gender = JRequest::getInt ( 'gender', '' ); $this->me->icq = trim(JRequest::getString ( 'icq', '' )); $this->me->aim = trim(JRequest::getString ( 'aim', '' )); $this->me->plus = trim(JRequest::getString ( 'plus', '' )); $this->me->msn = trim(JRequest::getString ( 'msn', '' )); $this->me->skype = trim(JRequest::getString ( 'skype', '' )); $this->me->gtalk = trim(JRequest::getString ( 'gtalk', '' )); $this->me->twitter = trim(JRequest::getString ( 'twitter', '' )); $this->me->facebook = trim(JRequest::getString ( 'facebook', '' )); $this->me->myspace = trim(JRequest::getString ( 'myspace', '' )); $this->me->linkedin = trim(JRequest::getString ( 'linkedin', '' )); $this->me->delicious = trim(JRequest::getString ( 'delicious', '' )); $this->me->friendfeed = trim(JRequest::getString ( 'friendfeed', '' )); $this->me->digg = trim(JRequest::getString ( 'digg', '' )); $this->me->blogspot = trim(JRequest::getString ( 'blogspot', '' )); $this->me->flickr = trim(JRequest::getString ( 'flickr', '' )); $this->me->bebo = trim(JRequest::getString ( 'bebo', '' )); $this->me->websitename = JRequest::getString ( 'websitename', '' ); $this->me->websiteurl = JRequest::getString ( 'websiteurl', '' ); $this->me->signature = JRequest::getVar ( 'signature', '', 'post', 'string', JREQUEST_ALLOWRAW ); }

\administrator\components\com_kunena\libraries\user\user.php

Line 506 to 542
Code:
} public function socialButton($name, $gray = false) { $social = array ('plus' => array ('url' => 'https://plus.google.com/u/0/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_PLUS' ), 'nourl' => '0' ), 'twitter' => array ('url' => 'http://twitter.com/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_TWITTER' ), 'nourl' => '0' ), 'facebook' => array ('url' => 'http://www.facebook.com/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_FACEBOOK' ), 'nourl' => '0' ), 'myspace' => array ('url' => 'http://www.myspace.com/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_MYSPACE' ), 'nourl' => '0' ), 'linkedin' => array ('url' => 'http://www.linkedin.com/in/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_LINKEDIN' ), 'nourl' => '0' ), 'delicious' => array ('url' => 'http://delicious.com/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_DELICIOUS' ), 'nourl' => '0' ), 'friendfeed' => array ('url' => 'http://friendfeed.com/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_FRIENDFEED' ), 'nourl' => '0' ), 'digg' => array ('url' => 'http://www.digg.com/users/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_DIGG' ), 'nourl' => '0' ), 'skype' => array ('url' => '##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_SKYPE' ), 'nourl' => '1' ), 'aim' => array ('url' => '##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_AIM' ), 'nourl' => '1' ), 'gtalk' => array ('url' => '##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_GTALK' ), 'nourl' => '1' ), 'msn' => array ('url' => '##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_MSN' ), 'nourl' => '1' ), 'icq' => array ('url' => 'http://www.icq.com/people/cmd.php?uin=##VALUE##&action=message', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_ICQ' ), 'nourl' => '0' ), 'blogspot' => array ('url' => 'http://##VALUE##.blogspot.com/', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_BLOGSPOT' ), 'nourl' => '0' ), 'flickr' => array ('url' => 'http://www.flickr.com/photos/##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_FLICKR' ), 'nourl' => '0' ), 'bebo' => array ('url' => 'http://www.bebo.com/Profile.jsp?MemberId=##VALUE##', 'title' => JText::_ ( 'COM_KUNENA_MYPROFILE_BEBO' ), 'nourl' => '0' ), ); if (! isset ( $social [$name] )) return; $title = $social [$name] ['title']; $value = $this->escape ( $this->$name ); $url = strtr ( $social [$name] ['url'], array ('##VALUE##' => $value ) ); if ($social [$name] ['nourl'] == '0') { if (! empty ( $this->$name )) return '<a href="' . $this->escape ( $url ) . '" class="kTip" target="_blank" title="' . $title . ': ' . $value . '"><span class="kicon-profile kicon-profile-' . $name . '"></span></a>'; } else { if (! empty ( $this->$name )) return '<span class="kicon-profile kicon-profile-' . $name . ' kTip" title="' . $title . ': ' . $value . '"></span>'; } if ($gray) return '<span class="kicon-profile kicon-profile-' . $name . '-off"></span>'; else return ''; }

\components\com_kunena\views\user\view.html.php

Line 429 to 430
Code:
$this->social = array('plus','twitter', 'facebook', 'myspace', 'skype', 'linkedin', 'delicious', 'friendfeed', 'digg', 'aim', 'gtalk', 'icq', 'msn', 'blogspot', 'flickr', 'bebo');

\components\com_kunena\template\blue_eagle\html\user\default_social.php


Line 15 to 40
Code:
<div class="kiconrow"> <?php echo $this->profile->socialButton('twitter', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('facebook', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('myspace', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('linkedin', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('skype', $this->showUnusedSocial); ?> </div> <div class="kiconrow"> <?php echo $this->profile->socialButton('delicious', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('friendfeed', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('digg', $this->showUnusedSocial); ?> </div> <div class="clr"></div> <div class="kiconrow"> <?php echo $this->profile->socialButton('plus', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('aim', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('gtalk', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('icq', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('msn', $this->showUnusedSocial); ?> </div> <div class="kiconrow"> <?php echo $this->profile->socialButton('blogspot', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('flickr', $this->showUnusedSocial); ?> <?php echo $this->profile->socialButton('bebo', $this->showUnusedSocial); ?> </div>

I've also modified some lines in the files that I list below, but as I understand this are pure "cosmetics" for the template so I won't post them unless someone needs them.

\components\com_kunena\template\blue_eagle\css\kunena.forum-min.css
\components\com_kunena\language\en-GB\en-GB.com_kunena.templates.ini
\administrator\components\com_kunena\language\en-GB\en-GB.com_kunena.libraries.ini
\components\com_kunena\template\blue_eagle\media\iconsets\profile\default\default.png
Last edit: 11 years 8 months ago by KiSUAN.

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

More
11 years 7 months ago - 11 years 7 months ago #2 by KiSUAN
Solved, I wasn´t doing anything wrong per se, it was a database table thing.
Last edit: 11 years 7 months ago by KiSUAN.

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

More
11 years 7 months ago #3 by R4ziel
Hey dude, I am having a similar problem on my side and I just wanted to know if your tooltips show the right information.

For instance I replaced GTALK with an Origin ID field and that works well.

But When I hover over it it says "GTALK : Playername" instead of saying "Origin ID : Playername"

Do you perhaps know where I would change those titles?

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

More
11 years 7 months ago - 11 years 7 months ago #4 by KiSUAN
Hello R4ziel, as I explained I don´t know much, all I do is of sheer will and it´s a pity this community, if you can call it that, isn´t supportive at all, so I will try and see if I understand what you are saying as I'm not native english also.

As I mentioned at the end of my first post the "cosmetics" or "skinning" aspects for modifying this options are contained in the files listed under it. To be more precise what you want is located in the file "en-GB.com_kunena.libraries.ini".

There you will find this line COM_KUNENA_MYPROFILE_GTALK="GTalk", as I understand you only changed the url for the field, so all you need to do is replace the GTalk with Origin.
Last edit: 11 years 7 months ago by KiSUAN.

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

Time to create page: 0.623 seconds