Author Link Print E-mail

This pluging links the author name of the article to Contact item or Author article.

Author article - is content item from specific Section/Category(s) with the Title defined as author name. Author description article may be automatically created by the Author Link plugin.

Since Joomla 1.5.13 you have to hack a little Joomla core for Author Link Plugin.

NOTE: This hack may decrease security of your site.

1. Find all files that print author name:

# find . -name "*.php" | xargs grep -l "Written by"

./templates/beez/html/com_content/category/blog_item.php
./templates/beez/html/com_content/article/default.php
./templates/beez/html/com_content/frontpage/default_item.php
./templates/beez/html/com_content/section/blog_item.php
./components/com_content/views/category/tmpl/blog_item.php
./components/com_content/views/article/view.pdf.php
./components/com_content/views/article/tmpl/default.php
./components/com_content/views/frontpage/tmpl/default_item.php
./components/com_content/views/section/tmpl/blog_item.php

2. In each file find correspondent line:

<?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>

3. Comment "escaping" of created_by_alias

<?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? /* $this->escape*/($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>

 

Donate

If you find BK extensions useful, please support the development and make a donation. Thank you.

You are here  :