Форумы / Cotonti / Extensions / Users Wall

I think its a bug.

tensh
#22482 31.01.2010 00:38
I still post comments to pages when I try to either rate or comment on my own wall :(

OK, I found out why. This plugin comes in conflict with User's Latest Pages plugin. To make it work as expected, you've got to edit userpages.php and userpages.ajax.php:

userpages.php: delete these parts:

$item_code = 'p'.$row['page_id'];
list($comments_link, $comments_display, $comments_count) = sed_build_comments($item_code, $row['page_pageurl'], TRUE);
list($ratings_link, $ratings_display) = sed_build_ratings($item_code, $row['page_pageurl'], TRUE);

and delete this:

					"UP_COMMENTS" => $comments_link,
					"UP_COMMENTS_DISPLAY" => $comments_display,
					"UP_COMMENTS_COUNT" => $comments_count,
					"UP_RATINGS" => $ratings_link,
					"UP_RATINGS_DISPLAY" => $ratings_display

in userpages.ajax.php, delete as above. Now you should be able to post in your wall and so on...

This is a dirty fix, I don't know how to make these plugins fully cooperate... but standard userpages skin don't use these tags anyway as a default, so it's not a big loss.
Отредактировано: tensh (31.01.2010 04:16, 15 лет назад)