• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Use of K2 avatars in RSEvenetsPro

Use of K2 avatars in RSEvenetsPro 11 years 3 months ago #20938

  • rene81
  • rene81's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I was searching for a solution of using K2-avatars in RSEventsPro. I couldn't find it in any forum.
Then I decide to fix it myself.

I changed a few things.

Add to the file: /administrator/language/en-GB/en-GB.com.rseventspro.ini the string: RSEPRO_AVATAR_K2="K2"

Add to /components/com_rseventspro/helpers/rsevenetspro.php on line 1473 following code:
case 'k2':
					$db->setQuery("SELECT image FROM #__k2_users WHERE userID='".(int) $id."'");
					$k2avatar = $db->loadResult();
 
					if (!empty($k2avatar)) {
						$html .= '<img class="rs_avatar" src="'.JURI::root().'media/k2/users/'.$k2avatar.'" alt="K2 Avatar" height="64" />';
					}
				break;

Change line 166 to 172 in /administrator/componetns/com_rseventspro/models/settings.php in:
$avatars = array(
		'gravatar' => true,
		'comprofiler' => false,
		'community' => false,
		'kunena' => false,
		'fireboard' => false,
		'k2' => false		
		);

Dear moderator,

Can you please add my "hack" to future updates? Otherwise I have to change it every time I install a new release of RSEvenetsPro

With regeards,
Rene Spit
The administrator has disabled public write access.

Use of K2 avatars in RSEvenetsPro 11 years 3 months ago #20941

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hello,

Thank you for sharing this with us. We will add this K2 avatar integration in our next revision.

Regards.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!