1 newguy Apr 29, 2010 04:16
3 yabba Apr 29, 2010 19:31
admin > users > edit user > add a nickname ;)
¥
4 yabba Apr 29, 2010 19:34
BushLeagueCritic wrote:
but I would like to avoid login names being seen.
...
$Item->author( array(
'before' => T_('By').' ',
'after' => ' ',
'link_to' => 'a_blonde_bimbo',
) );
...
You never know, it might just work ;)
¥
*edit
"linked" not "seen" ... I'm crap at copy paste :P
5 bushleaguecritic Apr 29, 2010 20:51
You never know, it might just work
It worked beautifully, thanks!
admin > users > edit user > add a nickname
However, setting a nickname does not solve the problem of a users login name being available to public viewing.
Go [url=http://www.bushleaguecritic.com/2010/04/28/promising-rothfuss-news]here[/url] and click on the post author's name and see it in action.
Thanks for the assistance. ;)
6 yabba Apr 29, 2010 22:01
Looks like you need to edit _profile.disp.php ... either in skins/ or skins/your_skin/ and remove the login line ... not a good data leak though
¥
7 bushleaguecritic Apr 29, 2010 22:30
Got it!
The file to edit is _user.disp.php instead of _profile.disp.php.
I think I'm still going to remove the link from the author's name so user info pages don't get indexed by search engines.
Thanks.
8 newguy Apr 30, 2010 01:00
Thanks for working this out. :lol: I see how it works, and I know the file to edit now. :)
9 gcasanova May 09, 2010 15:37
Hi ¥åßßå:
Today I created a new topic about this problem, I wasn't aware this had been treated before. Now, I wonder if something different can be done, please read what I wrote:
I don't know if it's is a new feature, at least I hadn't noticed it. But why does the author's name in a post have to link to a page that includes his login and other information such as if he is an administrator and his level...?
I'd rather have no link or at least a link to a page with his Bio or an index of his postings. In no case do I want to see his login there.
How can I change this to any of these options:1. No Link
2. Link to a page with his biography
3. Link goes to a page with list of all that he has published
Thanks!
10 bushleaguecritic May 09, 2010 18:27
Shouldn't be too difficult. ;)
Everything happens in the '_item_block.inc.php' file. Copy it from the '/skins' folder to the '/skins/your-skins-folder' folder before you hose it all up.
1. No Link
Asked and answered in the above comments
2. Link to a page with his biography
This one hard-codes the url and would only work for a single user blog. I don't know how you would get it to work with multiple users each having their own bio page. :-/ It all takes place in the 'before' and 'after' parameters.
<?php
if( ! $Item->is_intro() )
{ // Display only if we're not displaying an intro post:
$Item->author( array(
'before' => T_('By').' <a href="/url/to/authors/bio-page">',
'after' => '</a> ',
'link_to' => '',
) );
3. Link goes to a page with list of all that he has published
Again... it's all in the 'before' and 'after' parameters. Somebody would have to pretty up the category header title, but it would work with multiple authors.
<?php
if( ! $Item->is_intro() )
{ // Display only if we're not displaying an intro post:
$Item->author( array(
'before' => T_('By').' <a href="/?author='.$Item->get('creator_user_ID').'">',
'after' => '</a> ',
'link_to' => '',
) );
The above code all works for me on 3.3.3, but I'm an idiot... so you might want to wait on an expert's opinion. B)
11 bushleaguecritic May 11, 2010 04:32
Oops! Found an easier, cleaner way to change the Post Author link to something other than the user profile page.
$Item->author( array(
'before' => T_('By').' ',
'after' => ' ',
'link_to' => 'userurl',
) );
The 'userurl' parameter will make it use whatever is in the URL field on the author's profile page for the link. You'd have to make the same changes in the '_item_block.inc.php' and the 'single.main.php'
Could very easily be used for this:
2. Link to a page with his biography
Man, some of these parameters are hard to track down. B)
b2evo 3.3.3 too.
I'm struggling with this as well. I'm not really freaked about security, but I would like to avoid login names being seen. My main beef is that search engine bots are following the Post Author link and indexing my user profile page (and ranking it very high!).
I'd like to modify the skin (a hacked up evocamp copy) and make the Post Author display as text only (not a link), but I don't know enough about the $Item->author array parameters.
I'm focusing on this section of the _item_block.inc.php file.
If I nail that portion down, I should be able to do the same for the Comment Author links.