| Author Link |
|
|
|
This pluging links the author name of the article to Contact item or Author article. 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)) ); ?> <?php JText::printf( 'Written by', ($this->escape($this->item->created_by_alias) ? /* $this->escape*/($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?> |