1 gixxi Jan 31, 2008 07:42
3 gixxi Jan 31, 2008 12:40
sorry bout that, twas hopin it was a common setting i messed up :) wishful thinkin
I am using the Blue Wheelz by Andrew Hreschak that i got off the skin section. I have not modded it in anyway.
Heres my general blog
http://www.shotsofwisdom.com/Blog/index.php?blog=2
the one comment by "everett" was from an unregistered user. the one below it that says "test" is from me with a registered user and it is what all registered members posts look like.
4 edb Jan 31, 2008 22:10
Okay it's a skin-specific problem, as is evidenced by http://www.shotsofwisdom.com/Blog/index.php?blog=2&skin=custom&title=website&more=1&c=1&tb=1&pb=1#comments showing the names of both commenters. I'm supposed to be acting like an adult, but maybe I'll download that skin and see what's wrong with it.
Edit: here's a nice little clue: http://www.shotsofwisdom.com/Blog/index.php?blog=2&disp=comments
So the problem is in the skins/skinname/_feedback.php file but I don't know exactly where other than generally between line 121 and line 138.
5 edb Jan 31, 2008 22:42
Okay that wasn't so bad. First back up the file I'm going to ask you to edit because my thing here is untested and therefore ... you know ;)
Crack open skins/wheelz_blue/_feedback.php and dig on lines 123 to 138:
case 'comment': // Display a comment:
echo T_('Comment from:').' ';
// check to see if they put in a URL
if ( strstr($Comment->author_url,'http://') )
{
echo '<a rel="nofollow" href="'.$Comment->author_url.'" title="External: '.$Comment->author_url.' ">'.$Comment->author.'</a>'; // their link if so
}else{
if ( isset($Comment->author_user_ID) && $Comment->author_user_ID==1 )
{
echo '<span>'.$Comment->author().'</span>'; // if comment by the Admin (might have more tests if you have more users, we don't)
}else{
echo '<span>'.$Comment->author.'</span>'; // comment from a visitor without a link
}
}
$Comment->msgform_link( $Blog->get('msgformurl') );
break;
For some reason the whole thing looks screwy to me, and especially the line that says "// if comment by the Admin (might have more tests if you have more users, we don't)" :roll:
So change it. Change the whole thing. We'll try to link commenters to their URL if they provided one, and include names of non-members and members who aren't The Admin if the comment didn't include a URL. Replace the block above with this:
case 'comment': // Display a comment:
$no_name_yet = true;
echo T_('Comment from:').' ';
// check to see if they put in a URL
if ( strstr($Comment->author_url,'http://') ) {
echo '<a rel="nofollow" href="'.$Comment->author_url.'" title="External: '.$Comment->author_url.' ">'.$Comment->author.'</a>'; // their link if so
$no_name_yet = false;
}
if( $no_name_yet ) {
if ( isset($Comment->author_user_ID) ) {
echo '<span>'.$Comment->author().'</span>'; // if comment is by a registered member
} else {
echo '<span>'.$Comment->author.'</span>'; // comment from a visitor without a link
}
}
$Comment->msgform_link( $Blog->get('msgformurl') );
break;
Grown up stuff is totally over-rated, but the above suggestion might fail horribly so please backup your work before you test this out. Testing should verify that The Admin and any other registered member get their name on their comment AND that visitors (non-members) who have a URL and don't have a URL in their comment also get their names shown.
6 gixxi Feb 01, 2008 01:13
You my friend...are awesome!
Works great now :D If i could bake id so make you a pie or something!
Thanx for all your help B)
7 onmillertime Jan 10, 2009 14:15
Hello friend,
I am new member in this forum.I read your contant. Your post was nice.
Thanks for sharing your information as expert. I will try it.
*edit* my unimaginative spam crap removed
What skin are you using? Have you modified it in any way? Got a link where we can see this happening?