1 kskhater Jan 19, 2007 04:26
3 kskhater Jan 21, 2007 17:14
Do you mean replace the function line with this one you suggested. I don't want to lose the # comments if there are comments.
Thanks,
4 yabba Jan 21, 2007 17:19
No, that code is for your skins _main.php
Basically it works like this :-
<?php $Item->feedback_link( 'comments', '' , '', 'text when there are no comments', 'text when there is one comment', 'text when there is more than one comment and %d will be replaced by the number of comments') // Link to comments ?>
¥
5 kskhater Jan 21, 2007 17:33
Thanks, this is exactly what I want. But is there away to make the link jump to leave comment form?
6 yabba Jan 21, 2007 17:48
Damn, give someone an inch and they want a mile!
You can achieve that by editing /skins/_feedback.php ( or skins/<skinname>/_feedback.php ..... whichever you find this line in ;) ) and moving this line :-
echo '<a id="feedbacks"></a>';
to just above the form (so it looks something like this)
<!-- form to add a comment -->
<?php
echo '<a id="feedbacks"></a>';
$Form = & new Form( $htsrv_url.'comment_post.php', 'bComment_form_id_'.$Item->ID );
¥
7 kskhater Jan 21, 2007 17:56
Thanks for the mile. I know I'm asking too much, but believe me I tried so hard to resolve it before I posted my topic.
8 yabba Jan 21, 2007 18:13
Not a problem, glad you've got it sorted ;)
¥
9 kskhater Jan 21, 2007 18:50
Sorry Y&BB&,
The leave comment goes to the form in my home blog
http://www.alkhater.net/en_blog
with the code you suggested, but if you go to my guest book it does not do that even when I added the line you proposed.
If you take a look at the possible parameters to the function (inc/model/items/_item.class.php about 1,500 lines down the page ...ish), you should be able to set them up to your preferences from inside your _main.php
it'd end up looking something like :-
¥