Keyword

Only hide specific authors

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 10 months ago #90683 by Odin Mayland
Only hide specific authors was created by Odin Mayland
I am new to K2.
Is there a way to hide specific authors?

For example, as the super admin, I am the one adding 99% of the content.  I do not want my name plastered all over the site.  When the site is launched, then I do want all 13 others employees names to appear as authors on their own additions to the site.

I do not want to have to manually Hide the Author in 100's of articles as I create them.

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 10 months ago #90684 by Odin Mayland
Replied by Odin Mayland on topic Only hide specific authors
Does anyone have at least a yes or no answer?

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

More
13 years 10 months ago #90685 by william white
Replied by william white on topic Only hide specific authors
This can be done with a custom override for the proper view, item or category, where it displays span class = itemauthor.
It will require php decision making.

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 10 months ago #90686 by Odin Mayland
Replied by Odin Mayland on topic Only hide specific authors
sounds over my head.

i will just manually change the author settings on specific items.

i'm surprised this isn't a common requested enhancement.

If not, then how do other webmasters deal with this issue?

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

More
13 years 10 months ago #90687 by william white
Replied by william white on topic Only hide specific authors
The code in the attached item.php on lines
64, 65, and 74
will do what you want it to

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

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
13 years 10 months ago #90688 by Odin Mayland
Replied by Odin Mayland on topic Only hide specific authors
William White said:The code in the attached item.php on lines 64, 65, and 74
will do what you want it to


I replaced the item.php in /components/com_k2/controllers with yours but the page now just shows a blank white page.

The site has only one working page at: thebrainpro.com/test/index.php?option=com_k2&view=item&layout=item&id=126&Itemid=428

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

More
13 years 10 months ago #90689 by william white
Replied by william white on topic Only hide specific authors
Send me your email address in pm

modernmagic said:
William White said:The code in the attached item.php on lines 64, 65, and 74 will do what you want it to


I replaced the item.php in /components/com_k2/controllers with yours but the page now just shows a blank white page.

The site has only one working page at: thebrainpro.com/test/index.php?option=com_k2&view=item&a...

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

More
13 years 10 months ago #90690 by william white
Replied by william white on topic Only hide specific authors
Fixed item.php
it uses this - > item - > created_by != 62
that would be for default administrator
replace the 62 (in line # 67) with whatever you are using as superadmin

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


Powered by Kunena Forum