2 arn_b2evo Mar 07, 2008 03:00

In your skins folder you will see a php file called
_item_comment_form.inc.php
Att app line 107 you will find
$Form->text( 'o', $comment_author_url, 40, T_('Website'), '<br />'.T_('Your URL will be displayed.'), 100, 'bComment' )
Removing that should remove the url input.
Remember to back up original files.
Post moved to Templates, Skins etc
Yeah something funny happens when you pick 2.* - every now and then it decides to pretend you picked 1.10.* for some reason. That's one of the reasons it is ALWAYS a good idea to include your link in either your profile or sig file or the body of your message.
So those fields will be found in ... lemme look ... skins/_item_comment_form.inc.php or maybe skins/yourskin/_item_comment_form.inc.php depending on if the second file exists or not. Look around line 100 or so, but then again that may be way off because I have this bad habit of hacking the hell out of my files :)
Thanks, then one more thing, if have submitted a comment, how do I make it back to the main blog page instead of the same adding comment page?
um... click on a link to the blog's main page?
I mean, once the form been submitted, it will bouce back to the same page. I want it to go to the main home page of the blog itself. Possible?
You will have to over-ride the $redirect_to parameter in the file that makes the comments happen. Probably the same file yah? Actually you might be able to just blank out the redirect and reach that goal, and by blank it out I mean make it be equal to '' or "nothing in between a pair of single quotes". Sorry but I don't have the file open at the moment so can't give you better details than that.
Hope it helps!
$Form->hidden( 'redirect_to',
// Make sure we get back to the right page (on the right domain)
// fplanque>> TODO: check if we can use the permalink instead but we must check that application wide,
// that is to say: check with the comments in a pop-up etc...
url_rel_to_same_host(regenerate_url( '', '', $Blog->get('blogurl'), '&' ), $htsrv_url) );
I just posted the coding you mention, taken from _item_comment_form.inc.php file.
like this:
url_rel_to_same_host(regenerate_url( '', '', '', ''), $htsrv_url) );
me: confuse :(
How about :
$Form->hidden( 'redirect_to',
// Make sure we get back to the right page (on the right domain)
// fplanque>> TODO: check if we can use the permalink instead but we must check that application wide,
// that is to say: check with the comments in a pop-up etc...
url_rel_to_same_host( $Blog->get('blogurl'), $htsrv_url) );
¥
Great, it works. Thanks a lot. You guys are so smart! I am learning a lot here.
It seems like I have chosen a wrong version on the top. It is 2.4