Suggestion for Player Description

Status: finished.
This is a bugfix release with a limited set of new features.

Moderator: And_One

User avatar
Lord_Helmchen
.
Posts: 45
Joined: Fri Aug 03, 2007 1:56 pm
Joomleague version: 2.0.x
Location: Germany
Contact:

Suggestion for Player Description

Postby Lord_Helmchen » Fri Dec 23, 2011 2:11 pm

I've changed code in on my site /components/com_joomleague/views/player/tmpl/default_description.php to

Code: Select all

<?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<!-- Team Player Description START -->
<?php
   $description = "";
   if ( isset($this->teamPlayer) && !empty($this->teamPlayer->notes) )
   {
      echo "<!-- Person Description -->";
         $description = JHTML::_('content.prepare', $description );
         $description = $this->teamPlayer->notes;
   }
   else
   {
      if ( !empty($this->person->notes) )
      {
         echo "<!-- Team Player Description -->";
         $description = JHTML::_('content.prepare', $description );
         $description = $this->person->notes;
      }
   }

   if ( !empty($description) )
   {
      ?>
      <h2><?php echo JText::_( 'JL_PERSON_INFO' );   ?></h2>
      <div class="personinfo">
         <?php $description = JHTML::_('content.prepare', $description ); ?>
         <?php   echo stripslashes( $description ); ?>
      </div>
      <?php
   }
   ?>
<!-- Team Player Description END -->


Now i can use all Content-Plugins in the Player Description. I use it with RSS-Plugin to show Playerinfos. Here is an example http://www.evr-fans.de/ev-regensburg/ma ... englbrecht

Maybe others like this?

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3609
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: Suggestion for Player Description

Postby And_One » Mon Jan 09, 2012 8:48 pm

seems to be a good addition. i will add it to the core, thx for the hint!

http://bugtracker.joomleague.at/issues/1209


Return to “1.5.3-karina (Beta 3)”

Who is online

Users browsing this forum: No registered users and 1 guest

cron